OSDN Git Service

mac80211: tell SME about real auth state
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 1 Jul 2009 19:26:49 +0000 (21:26 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 19:01:49 +0000 (15:01 -0400)
commit0575606b086ad216b7b1976ca9b9a6e711db92f0
treeff918077cd4a2ebdf9abca7ad6314bb020c89647
parent7ebbe6bd51a259e16608b3fd7b578f5dd1292a45
mac80211: tell SME about real auth state

When the auth algorithm is rejected, but we don't have
another one to try, we will eventually retry but that
isn't useful -- we'll then do it again and again until
we eventually give up. Instead, we should let the SME
know and go into disabled state. The same applies for
situations where the AP rejects with any other status
code.

Additionally, when trying the next auth algorithm, we
should reset the auth_tries so that just a single lost
frame doesn't lead to us giving up on the third auth
algorithm.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c