mac80211: send deauth only with channel context
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Oct 2012 08:46:31 +0000 (09:46 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 5 Nov 2012 13:13:33 +0000 (14:13 +0100)
commit8655201726b7707fa777582c30979fdd53e815a9
treeb013c7f13abf3af0d7e30cd9177e58c26c38cbc9
parent50febf6a1a9270b3558671864a27b23f671598ab
mac80211: send deauth only with channel context

When userspace asks to deauthenticate and we're just
authenticated (or still authenticating) send a deauth
frame instead of deleting the auth request.

On the other hand, if we've just disassociated and
therefore deleted all our state already, drop the
deauth request because we no longer have a channel
context to send it on.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c