* [PATCH] mac80211: advertise userspace MPM only if mesh is supported
@ 2013-05-31 15:13 Johannes Berg
2013-05-31 15:35 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2013-05-31 15:13 UTC (permalink / raw)
To: linux-wireless; +Cc: thomas, Johannes Berg
From: Johannes Berg <johannes.berg@intel.com>
There's no danger in always advertising it, but it would
look a bit inconsistent so don't do it unless supported.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
net/mac80211/main.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 1998f14..810e20c 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -556,8 +556,10 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
wiphy->features |= NL80211_FEATURE_SK_TX_STATUS |
NL80211_FEATURE_SAE |
NL80211_FEATURE_HT_IBSS |
- NL80211_FEATURE_VIF_TXPOWER |
- NL80211_FEATURE_USERSPACE_MPM;
+ NL80211_FEATURE_VIF_TXPOWER;
+#ifdef CONFIG_MAC80211_MESH
+ wiphy->features |= NL80211_FEATURE_USERSPACE_MPM;
+#endif
if (!ops->hw_scan)
wiphy->features |= NL80211_FEATURE_LOW_PRIORITY_SCAN |
--
1.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-31 15:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-31 15:13 [PATCH] mac80211: advertise userspace MPM only if mesh is supported Johannes Berg
2013-05-31 15:35 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox