mwlwifi: upgrade to 10.3.0.12
authorImre Kaloz <kaloz@openwrt.org>
Thu, 29 Oct 2015 12:11:58 +0000 (12:11 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Thu, 29 Oct 2015 12:11:58 +0000 (12:11 +0000)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 47279

package/kernel/mwlwifi/Makefile
package/kernel/mwlwifi/patches/100-api_update.patch [deleted file]
package/kernel/mwlwifi/patches/100-drop_old_api.patch [new file with mode: 0644]

index d8dc067a6c9d85479dad13ad8c1ba38a02eb9007..bec27328bece6c74577935495c1d2c20c0985918 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mwlwifi
-PKG_VERSION:=10.3.0.8-20150819
+PKG_VERSION:=10.3.0.12-20151029
 PKG_RELEASE=1
 
 PKG_LICENSE:=ISC
@@ -17,7 +17,7 @@ PKG_LICENSE_FILES:=
 PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=59e0d3d167a5bc2c03010df4ed54cc0653b5ae58
+PKG_SOURCE_VERSION:=30e6b06de659f1d5e46d1dd3bf590caf3529bb65
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
 
 PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
diff --git a/package/kernel/mwlwifi/patches/100-api_update.patch b/package/kernel/mwlwifi/patches/100-api_update.patch
deleted file mode 100644 (file)
index 09d65d2..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
---- a/main.c
-+++ b/main.c
-@@ -476,7 +476,7 @@ static void mwl_set_ht_caps(struct mwl_p
-       band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_20;
-       band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_40;
--      hw->flags |= IEEE80211_HW_AMPDU_AGGREGATION;
-+      ieee80211_hw_set(hw, AMPDU_AGGREGATION);
-       band->ht_cap.ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K;
-       band->ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_4;
-@@ -578,12 +578,13 @@ static int mwl_wl_init(struct mwl_priv *
-       hw->queues = SYSADPT_TX_WMM_QUEUES;
-       /* Set rssi values to dBm */
--      hw->flags |= IEEE80211_HW_SIGNAL_DBM | IEEE80211_HW_HAS_RATE_CONTROL;
-+      ieee80211_hw_set(hw, SIGNAL_DBM);
-+      ieee80211_hw_set(hw, HAS_RATE_CONTROL);
-       /* Ask mac80211 to not to trigger PS mode
-        * based on PM bit of incoming frames.
-        */
--      hw->flags |= IEEE80211_HW_AP_LINK_PS;
-+      ieee80211_hw_set(hw, AP_LINK_PS);
-       hw->vif_data_size = sizeof(struct mwl_vif);
-       hw->sta_data_size = sizeof(struct mwl_sta);
diff --git a/package/kernel/mwlwifi/patches/100-drop_old_api.patch b/package/kernel/mwlwifi/patches/100-drop_old_api.patch
new file mode 100644 (file)
index 0000000..1ab1615
--- /dev/null
@@ -0,0 +1,36 @@
+--- a/main.c
++++ b/main.c
+@@ -414,11 +414,7 @@ static void mwl_set_ht_caps(struct mwl_p
+       band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_20;
+       band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_40;
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0)
+-      hw->flags |= IEEE80211_HW_AMPDU_AGGREGATION;
+-#else
+       ieee80211_hw_set(hw, AMPDU_AGGREGATION);
+-#endif
+       band->ht_cap.ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K;
+       band->ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_4;
+@@ -520,21 +516,13 @@ static int mwl_wl_init(struct mwl_priv *
+       hw->queues = SYSADPT_TX_WMM_QUEUES;
+       /* Set rssi values to dBm */
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0)
+-      hw->flags |= IEEE80211_HW_SIGNAL_DBM | IEEE80211_HW_HAS_RATE_CONTROL;
+-#else
+       ieee80211_hw_set(hw, SIGNAL_DBM);
+       ieee80211_hw_set(hw, HAS_RATE_CONTROL);
+-#endif
+       /* Ask mac80211 not to trigger PS mode
+        * based on PM bit of incoming frames.
+        */
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0)
+-      hw->flags |= IEEE80211_HW_AP_LINK_PS;
+-#else
+       ieee80211_hw_set(hw, AP_LINK_PS);
+-#endif
+       hw->vif_data_size = sizeof(struct mwl_vif);
+       hw->sta_data_size = sizeof(struct mwl_sta);