808d34586bd0fce19ab2dd1127fdc00b96a31d8f
[openwrt/staging/wigyori.git] / package / network / services / hostapd / patches / 012-Clear-BSSID-information-in-supplicant-state-machine-.patch
1 From c0fe5f125a9d4a6564e1f4956ccc3809bf2fd69d Mon Sep 17 00:00:00 2001
2 From: Jouni Malinen <j@w1.fi>
3 Date: Tue, 17 Oct 2017 01:15:24 +0300
4 Subject: [PATCH] Clear BSSID information in supplicant state machine on
5 disconnection
6
7 This fixes a corner case where RSN pre-authentication candidate from
8 scan results was ignored if the station was associated with that BSS
9 just before running the new scan for the connection.
10
11 Signed-off-by: Jouni Malinen <j@w1.fi>
12 ---
13 src/rsn_supp/wpa.c | 1 +
14 1 file changed, 1 insertion(+)
15
16 --- a/src/rsn_supp/wpa.c
17 +++ b/src/rsn_supp/wpa.c
18 @@ -2662,6 +2662,7 @@ void wpa_sm_notify_disassoc(struct wpa_s
19 wpa_sm_drop_sa(sm);
20
21 sm->msg_3_of_4_ok = 0;
22 + os_memset(sm->bssid, 0, ETH_ALEN);
23 }
24
25