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:31:30 +0000 (08:31 -0700)
commit79746484cab1dede1480580efe9edde68de06770
tree88fc5ecfd54d8e1e595bd971e33f2f5b662ef51e
parent20855fe2097ccfde927c6997101ae35340f1d278
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