]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Clear BSSID information in supplicant state machine on disconnection
authorJouni Malinen <j@w1.fi>
Mon, 16 Oct 2017 22:15:24 +0000 (01:15 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 16 Oct 2017 22:15:24 +0000 (01:15 +0300)
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>
src/rsn_supp/wpa.c

index bfcd9c39809da87ecfb8b1ec59e2e6b9ab403cce..15b0e606e65194ac8474c6bb5fbf0ad89e948ba1 100644 (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);
 }