mac80211: disable a broken feature that was merged with the last update
[openwrt/staging/hauke.git] / package / kernel / mac80211 / patches / 314-mac80211-don-t-advertise-NL80211_FEATURE_FULL_AP_CLI.patch
1 From: Johannes Berg <johannes.berg@intel.com>
2 Date: Wed, 4 Nov 2015 14:09:02 +0100
3 Subject: [PATCH] mac80211: don't advertise
4 NL80211_FEATURE_FULL_AP_CLIENT_STATE
5
6 For now, this feature doesn't actually work. To avoid shipping a
7 kernel that has it enabled but where it can't be used disable it
8 for now - we can re-enable it when it's fixed.
9
10 This partially reverts 44674d9c2267 ("mac80211: advertise support
11 for full station state in AP mode").
12
13 Cc: Ayala Beker <ayala.beker@intel.com>
14 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
15 ---
16
17 --- a/net/mac80211/main.c
18 +++ b/net/mac80211/main.c
19 @@ -541,8 +541,7 @@ struct ieee80211_hw *ieee80211_alloc_hw_
20 NL80211_FEATURE_HT_IBSS |
21 NL80211_FEATURE_VIF_TXPOWER |
22 NL80211_FEATURE_MAC_ON_CREATE |
23 - NL80211_FEATURE_USERSPACE_MPM |
24 - NL80211_FEATURE_FULL_AP_CLIENT_STATE;
25 + NL80211_FEATURE_USERSPACE_MPM;
26
27 if (!ops->hw_scan)
28 wiphy->features |= NL80211_FEATURE_LOW_PRIORITY_SCAN |