aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/018-Clear-BSSID-information-in-supplicant-state-machine-.patch
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2017-10-17 17:54:59 +0300
committerStijn Tintel <stijn@linux-ipv6.be>2017-10-17 17:54:59 +0300
commitb6c3931ad6554357a108127797c8d7097a93f18f (patch)
treee0bacc3616086458b3fcbf429b76de111bb6428f /package/network/services/hostapd/patches/018-Clear-BSSID-information-in-supplicant-state-machine-.patch
parenta5e1f7f5ef63eb4036d7f1299d1da97687719ca1 (diff)
downloadupstream-b6c3931ad6554357a108127797c8d7097a93f18f.tar.gz
upstream-b6c3931ad6554357a108127797c8d7097a93f18f.tar.bz2
upstream-b6c3931ad6554357a108127797c8d7097a93f18f.zip
hostapd: backport extra changes related to KRACK
While these changes are not included in the advisory, upstream encourages users to merge them. See http://lists.infradead.org/pipermail/hostap/2017-October/037989.html Added 013-Add-hostapd-options-wpa_group_update_count-and-wpa_p.patch so that 016-Optional-AP-side-workaround-for-key-reinstallation-a.patch applies without having to rework it. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'package/network/services/hostapd/patches/018-Clear-BSSID-information-in-supplicant-state-machine-.patch')
-rw-r--r--package/network/services/hostapd/patches/018-Clear-BSSID-information-in-supplicant-state-machine-.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/018-Clear-BSSID-information-in-supplicant-state-machine-.patch b/package/network/services/hostapd/patches/018-Clear-BSSID-information-in-supplicant-state-machine-.patch
new file mode 100644
index 0000000000..808d34586b
--- /dev/null
+++ b/package/network/services/hostapd/patches/018-Clear-BSSID-information-in-supplicant-state-machine-.patch
@@ -0,0 +1,25 @@
+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);
+ }
+
+