Browse Source

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>
Jouni Malinen 7 years ago
parent
commit
c0fe5f125a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/rsn_supp/wpa.c

+ 1 - 0
src/rsn_supp/wpa.c

@@ -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);
 }