mac80211: disassociate prior to unlinking AP/station
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 25 Nov 2008 11:05:44 +0000 (13:05 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 5 Dec 2008 14:32:11 +0000 (09:32 -0500)
commit8e268e47b8ca5bddd189320884c3cc7d9ae489f4
tree76a5b177e5782ea662a7b9b4b03fbd1a6e87f364
parente327b847e67051ece8d121f9aebeb4d736c36a02
mac80211: disassociate prior to unlinking AP/station

This patch reorders calls during disassociation in
ieee80211_set_disassoc function.
Since sta_info_unlink calls sta_notify(REMOVE) it will
remove the station representing AP from the driver before
it has disassociated from it using bss_info_changed callback.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c