]> git.baikalelectronics.ru Git - kernel.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)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jun 2012 19:21:47 +0000 (15:21 -0400)
commit7a5c96348b5c286d77b37924a0eadf8f7f4463df
treecd20198268d17aeb5a552bd55679c36bb682b0a0
parentbca6efb205b8be38b59171c5c8d778c50b844f75
mac80211: fail authentication when AP denied authentication

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>
Cc: stable@vger.kernel.org #3.4
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c