]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c62341ef858708312b7104f973d6fb9bf5e5ded
treea743772fd520d8a2e1ac8cd4fb088de69494beb2
parenta8b6a13f4dae6f5d232eb08eaa9e38360241245e
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