mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
26 lines
727 B
Diff
26 lines
727 B
Diff
|
From c0fe5f125a9d4a6564e1f4956ccc3809bf2fd69d Mon Sep 17 00:00:00 2001
|
||
|
From: Jouni Malinen <j@w1.fi>
|
||
|
Date: Tue, 17 Oct 2017 01:15:24 +0300
|
||
|
Subject: [PATCH] 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>
|
||
|
---
|
||
|
src/rsn_supp/wpa.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
--- a/src/rsn_supp/wpa.c
|
||
|
+++ b/src/rsn_supp/wpa.c
|
||
|
@@ -2662,6 +2662,7 @@ void wpa_sm_notify_disassoc(struct wpa_s
|
||
|
wpa_sm_drop_sa(sm);
|
||
|
|
||
|
sm->msg_3_of_4_ok = 0;
|
||
|
+ os_memset(sm->bssid, 0, ETH_ALEN);
|
||
|
}
|
||
|
|
||
|
|