SME: Deauthenticate to clear state after disassociation events
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 2 Dec 2009 15:26:28 +0000 (17:26 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 2 Dec 2009 15:26:28 +0000 (17:26 +0200)
commita84ed99ee47e2e255ef6d1cf895b7efc419ca0f3
tree8ad2850eb017e5547794f667e3d8801b7c2f483e
parente6b8efeba01851605691582cb1a65a4cbc92410d
SME: Deauthenticate to clear state after disassociation events

cfg80211/mac80211 can get into somewhat confused state if the AP only
disassociates us and leaves us in authenticated state. For now, force
the state to be cleared with deauthentication to avoid confusing errors
if we try to associate with the AP again. This gets rid of 30 second
delay (scan timeout) in cases where only a disassociation frame is
received from the AP.
wpa_supplicant/events.c
wpa_supplicant/sme.c
wpa_supplicant/sme.h