mac80211: fix deauth race
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 6 Feb 2010 14:20:13 +0000 (15:20 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Feb 2010 21:50:59 +0000 (16:50 -0500)
commit29165e4c8b265a415f1fd1dca947b5d4c72abc47
treec10e69c0cafa08c75c2f8ded623c2d66a15b6953
parent21b2d8bd2f0d4e0f21ade147fd193c8b9c1fd2b9
mac80211: fix deauth race

When userspace requests a deauth while the
authentication work is pending in the auth
(not probe) state, we do not properly abort
the work and then things get confused.

Fix that and also improve the checks here
to include the correct virtual interface,
just in case two virtual interfaces would
ever try to connect to the same BSS.

Also fix a bug -- need to use list_del_rcu
instead of just list_del to free a work
item.

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