summaryrefslogtreecommitdiff
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-04 11:18:18 +0100
committerJohn W. Linville <linville@tuxdriver.com>2011-11-09 16:13:52 -0500
commitee971924543fe82f279d3e97f6f6d02320b381b7 (patch)
tree8388d05cedbdf969fe05de3c752c0bf24f67efb3 /net/mac80211/main.c
parent5e760230e42cf759bd923457ca2753aacf2e656e (diff)
downloadlinux-3.10-ee971924543fe82f279d3e97f6f6d02320b381b7.tar.gz
linux-3.10-ee971924543fe82f279d3e97f6f6d02320b381b7.tar.bz2
linux-3.10-ee971924543fe82f279d3e97f6f6d02320b381b7.zip
mac80211: report OBSS beacons
If there's an interface in AP mode, OBSS beacons are needed by hostapd/wpa_s to implement logic to enable/disable protection etc. Report the frames and set the capability flag. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 7217019d1ed..8e9327bca91 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -593,7 +593,8 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
wiphy->flags |= WIPHY_FLAG_NETNS_OK |
WIPHY_FLAG_4ADDR_AP |
- WIPHY_FLAG_4ADDR_STATION;
+ WIPHY_FLAG_4ADDR_STATION |
+ WIPHY_FLAG_REPORTS_OBSS;
if (!ops->set_key)
wiphy->flags |= WIPHY_FLAG_IBSS_RSN;