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.
This commit is contained in:
parent
e6b8efeba0
commit
a84ed99ee4
3 changed files with 30 additions and 1 deletions
|
@ -1383,8 +1383,10 @@ void wpa_supplicant_event(void *ctx, wpa_event_type event,
|
|||
case EVENT_ASSOC:
|
||||
wpa_supplicant_event_assoc(wpa_s, data);
|
||||
break;
|
||||
case EVENT_DEAUTH:
|
||||
case EVENT_DISASSOC:
|
||||
sme_event_disassoc(wpa_s, data);
|
||||
/* fall through */
|
||||
case EVENT_DEAUTH:
|
||||
wpa_supplicant_event_disassoc(wpa_s);
|
||||
break;
|
||||
case EVENT_MICHAEL_MIC_FAILURE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue