Clear BSSID information in supplicant state machine on disconnection

This fixes a corner case where RSN pre-authentication candidate from
scan results was ignored if the station was associated with that BSS
just before running the new scan for the connection.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2017-10-17 01:15:24 +03:00
parent 006fb845b8
commit c0fe5f125a

View file

@ -2610,6 +2610,7 @@ void wpa_sm_notify_disassoc(struct wpa_sm *sm)
wpa_sm_drop_sa(sm);
sm->msg_3_of_4_ok = 0;
os_memset(sm->bssid, 0, ETH_ALEN);
}