summaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorMarek Puzyniak <marek.puzyniak@tieto.com>2013-04-10 13:47:45 +0200
committerJohannes Berg <johannes.berg@intel.com>2013-04-10 20:24:16 +0200
commit0eabccd940f0f25da0ae29e555fddb8fb84d8e27 (patch)
tree53e8515a857b1f3f4c7bd1829e058033b787f682 /net/mac80211/cfg.c
parentmac80211: fix recalc_radar hwconf sync problem (diff)
downloadlinux-0eabccd940f0f25da0ae29e555fddb8fb84d8e27.tar.xz
linux-0eabccd940f0f25da0ae29e555fddb8fb84d8e27.zip
mac80211: clear SSID when stopping AP
When AP interface is stopped ssid_len in the BSS configuration isn't cleared which can confuse drivers when switching modes. Set the length to zero when stopping the AP interface. Signed-off-by: Marek Puzyniak <marek.puzyniak@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index edca2a288abd..fdd95bd751a1 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1052,6 +1052,7 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)
ieee80211_free_keys(sdata);
sdata->vif.bss_conf.enable_beacon = false;
+ sdata->vif.bss_conf.ssid_len = 0;
clear_bit(SDATA_STATE_OFFCHANNEL_BEACON_STOPPED, &sdata->state);
ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED);