]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: verify deauthentication and return error on failure
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Mar 2014 08:11:19 +0000 (09:11 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Mar 2014 20:29:53 +0000 (21:29 +0100)
commite6debf811cd91fdfcd3c5eeb474b2f95ce17a355
tree0794174f0ec4835ef18530c305b7dadb27b785a9
parent16b5c26aa7d8c50418cebb9eb4b435dacf6f8a78
mac80211: verify deauthentication and return error on failure

When still authenticating the mac80211 code handling a deauthentication
requests from userspace doesn't verify that the request is valid in any
way, fix that. Additionally, it never returns an error, even if there's
no connection or authentication attempt, fix that as well.

While at it, move the message to not print a message in the error case
and to distinguish between the two cases.

Also simplify the code by duplicating the cfg80211 call.

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