]> git.ipfire.org Git - people/ms/linux.git/commit
mac80211: fail authentication when AP denied authentication
authorEliad Peller <eliad@wizery.com>
Sun, 13 May 2012 15:07:04 +0000 (18:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:52 +0000 (08:22 -0700)
commitbd9f6140e697f52bdc7225d39a46c6b82d50cacc
tree449a7babc37f9dd0f3622069e118f61ca343b4be
parentb8e69df8d54f9458b38aee32a66ac82e3eaf2a6c
mac80211: fail authentication when AP denied authentication

commit dac211ec10d268b9d09000093a9fa2ac1773894f upstream.

ieee80211_rx_mgmt_auth() doesn't handle denied authentication
properly - it authenticates the station and waits for association
(for 5 seconds) instead of failing the authentication.

Fix it by destroying auth_data and bailing out instead.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/mlme.c