From: Jouni Malinen Date: Mon, 16 Oct 2017 22:15:24 +0000 (+0300) Subject: Clear BSSID information in supplicant state machine on disconnection X-Git-Tag: hostap_2_7~999 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0fe5f125a9d4a6564e1f4956ccc3809bf2fd69d;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/rsn_supp/wpa.c b/src/rsn_supp/wpa.c index bfcd9c398..15b0e606e 100644 --- a/src/rsn_supp/wpa.c +++ b/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); }