diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-11-19 23:37:43 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-19 23:37:43 +0400 |
commit | e56108d92760c89ce21c30aa02588595b9396251 (patch) | |
tree | 74fdba5362746e534b25063192cf645d7d279fbb /net/mac80211 | |
parent | da8fb123b041e487d28f54d3a77a15139cb9e3b9 (diff) | |
parent | 38c1a01cf10c6e4049b4ffbd4a6af655df2a46e1 (diff) | |
download | linux-e56108d92760c89ce21c30aa02588595b9396251.tar.xz |
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/ibss.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index bf87c70ac6c5..c21e33d1abd0 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -1151,10 +1151,6 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata) mutex_lock(&sdata->u.ibss.mtx); - sdata->u.ibss.state = IEEE80211_IBSS_MLME_SEARCH; - memset(sdata->u.ibss.bssid, 0, ETH_ALEN); - sdata->u.ibss.ssid_len = 0; - active_ibss = ieee80211_sta_active_ibss(sdata); if (!active_ibss && !is_zero_ether_addr(ifibss->bssid)) { @@ -1175,6 +1171,10 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata) } } + ifibss->state = IEEE80211_IBSS_MLME_SEARCH; + memset(ifibss->bssid, 0, ETH_ALEN); + ifibss->ssid_len = 0; + sta_info_flush(sdata->local, sdata); spin_lock_bh(&ifibss->incomplete_lock); |