mac80211: fix wext bssid/ssid setting
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 15 Jun 2009 16:13:58 +0000 (18:13 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Jun 2009 19:05:59 +0000 (15:05 -0400)
commit1fa6f4af9f55bc1b753af04276984429d6b5a613
treea743772fd520d8a2e1ac8cd4fb088de69494beb2
parentf0e9a8606ce60880249fd570fbebf4472c3d37c0
mac80211: fix wext bssid/ssid setting

When changing to a new BSSID or SSID, the code in
ieee80211_set_disassoc() needs to have the old data
still valid to be able to disconnect and clean up
properly. Currently, however, the old data is thrown
away before ieee80211_set_disassoc() is ever called,
so fix that by calling the function _before_ the old
data is overwritten.

This is (one of) the issue(s) causing mac80211 to hold
cfg80211's BSS structs forever, and them thus being
returned in scan results after they're long gone.

http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=2015

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c