aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 28415de5f476..80db5ea02052 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -622,6 +622,11 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
622 /* mac80211 always supports monitor */ 622 /* mac80211 always supports monitor */
623 local->hw.wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR); 623 local->hw.wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR);
624 624
625#ifndef CONFIG_MAC80211_MESH
626 /* mesh depends on Kconfig, but drivers should set it if they want */
627 local->hw.wiphy->interface_modes &= ~BIT(NL80211_IFTYPE_MESH_POINT);
628#endif
629
625 if (local->hw.flags & IEEE80211_HW_SIGNAL_DBM) 630 if (local->hw.flags & IEEE80211_HW_SIGNAL_DBM)
626 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; 631 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
627 else if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC) 632 else if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC)