]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5b663ac8a291912147f10f0cb296614df102bc4
treeb013c7f13abf3af0d7e30cd9177e58c26c38cbc9
parentd4f52691c19e21cacf075c4c60c9bb08bd2328b1
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