aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mwlwifi/patches
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2015-10-29 12:11:58 +0000
committerImre Kaloz <kaloz@openwrt.org>2015-10-29 12:11:58 +0000
commitc7b582203107792530c653488260ee470fd8e4c2 (patch)
treef91a986b8ead7a678f444e6dc77951c6b2568ebf /package/kernel/mwlwifi/patches
parent6a5244661f52939c459a4b1022404321bcf87be1 (diff)
downloadupstream-c7b582203107792530c653488260ee470fd8e4c2.tar.gz
upstream-c7b582203107792530c653488260ee470fd8e4c2.tar.bz2
upstream-c7b582203107792530c653488260ee470fd8e4c2.zip
mwlwifi: upgrade to 10.3.0.12
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 47279
Diffstat (limited to 'package/kernel/mwlwifi/patches')
-rw-r--r--package/kernel/mwlwifi/patches/100-drop_old_api.patch (renamed from package/kernel/mwlwifi/patches/100-api_update.patch)23
1 files changed, 16 insertions, 7 deletions
diff --git a/package/kernel/mwlwifi/patches/100-api_update.patch b/package/kernel/mwlwifi/patches/100-drop_old_api.patch
index 09d65d2df3..1ab161544d 100644
--- a/package/kernel/mwlwifi/patches/100-api_update.patch
+++ b/package/kernel/mwlwifi/patches/100-drop_old_api.patch
@@ -1,27 +1,36 @@
--- a/main.c
+++ b/main.c
-@@ -476,7 +476,7 @@ static void mwl_set_ht_caps(struct mwl_p
+@@ -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;
-+ ieee80211_hw_set(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;
-@@ -578,12 +578,13 @@ static int mwl_wl_init(struct mwl_priv *
+@@ -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;
-+ ieee80211_hw_set(hw, SIGNAL_DBM);
-+ ieee80211_hw_set(hw, HAS_RATE_CONTROL);
+-#else
+ ieee80211_hw_set(hw, SIGNAL_DBM);
+ ieee80211_hw_set(hw, HAS_RATE_CONTROL);
+-#endif
- /* Ask mac80211 to not to trigger PS mode
+ /* 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;
-+ ieee80211_hw_set(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);