aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/348-mac80211-initialize-SMPS-field-in-HT-capabilities.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-02 12:02:22 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-06 12:27:12 +0100
commit649e766a64a0d001f040dfc225c601b3d0af6f40 (patch)
tree6399891552e85e9d511546df07932551f60b7549 /package/kernel/mac80211/patches/348-mac80211-initialize-SMPS-field-in-HT-capabilities.patch
parent91fce81df6e99cec0876b9d4866bd86e7c49820f (diff)
downloadupstream-649e766a64a0d001f040dfc225c601b3d0af6f40.tar.gz
upstream-649e766a64a0d001f040dfc225c601b3d0af6f40.tar.bz2
upstream-649e766a64a0d001f040dfc225c601b3d0af6f40.zip
mac80211: update to wireless-testing 2017-01-31
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/348-mac80211-initialize-SMPS-field-in-HT-capabilities.patch')
-rw-r--r--package/kernel/mac80211/patches/348-mac80211-initialize-SMPS-field-in-HT-capabilities.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/package/kernel/mac80211/patches/348-mac80211-initialize-SMPS-field-in-HT-capabilities.patch b/package/kernel/mac80211/patches/348-mac80211-initialize-SMPS-field-in-HT-capabilities.patch
deleted file mode 100644
index 118f535716..0000000000
--- a/package/kernel/mac80211/patches/348-mac80211-initialize-SMPS-field-in-HT-capabilities.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From: Felix Fietkau <nbd@nbd.name>
-Date: Wed, 11 Jan 2017 23:30:20 +0100
-Subject: [PATCH] mac80211: initialize SMPS field in HT capabilities
-
-ibss and mesh modes copy the ht capabilites from the band without
-overriding the SMPS state. Unfortunately the default value 0 for the
-SMPS field means static SMPS instead of disabled.
-
-This results in HT ibss and mesh setups using only single-stream rates,
-even though SMPS is not supposed to be active.
-
-Initialize SMPS to disabled for all bands on ieee80211_hw_register to
-ensure that the value is sane where it is not overriden with the real
-SMPS state.
-
-Reported-by: Elektra Wagenrad <onelektra@gmx.net>
-Signed-off-by: Felix Fietkau <nbd@nbd.name>
----
-
---- a/net/mac80211/main.c
-+++ b/net/mac80211/main.c
-@@ -908,10 +908,15 @@ int ieee80211_register_hw(struct ieee802
- supp_ht = supp_ht || sband->ht_cap.ht_supported;
- supp_vht = supp_vht || sband->vht_cap.vht_supported;
-
-- if (sband->ht_cap.ht_supported)
-- local->rx_chains =
-- max(ieee80211_mcs_to_chains(&sband->ht_cap.mcs),
-- local->rx_chains);
-+ if (!sband->ht_cap.ht_supported)
-+ continue;
-+
-+ local->rx_chains =
-+ max(ieee80211_mcs_to_chains(&sband->ht_cap.mcs),
-+ local->rx_chains);
-+
-+ sband->ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED <<
-+ IEEE80211_HT_CAP_SM_PS_SHIFT;
-
- /* TODO: consider VHT for RX chains, hopefully it's the same */
- }