summaryrefslogtreecommitdiff
path: root/package/network/services/hostapd/patches/012-Clear-BSSID-information-in-supplicant-state-machine-.patch
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2017-10-17 16:24:14 +0300
committerStijn Tintel <stijn@linux-ipv6.be>2017-10-17 17:24:47 +0300
commit2127425434046ae2b9f02fdbbdd37cac447af19c (patch)
tree42a9dd2c4849880163babcfabd5f1593625a3548 /package/network/services/hostapd/patches/012-Clear-BSSID-information-in-supplicant-state-machine-.patch
parent3db529d5ccdd5d8cec96d1e0f64583a1c9449a82 (diff)
downloadmtk-20170518-2127425434046ae2b9f02fdbbdd37cac447af19c.zip
mtk-20170518-2127425434046ae2b9f02fdbbdd37cac447af19c.tar.gz
mtk-20170518-2127425434046ae2b9f02fdbbdd37cac447af19c.tar.bz2
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 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'package/network/services/hostapd/patches/012-Clear-BSSID-information-in-supplicant-state-machine-.patch')
-rw-r--r--package/network/services/hostapd/patches/012-Clear-BSSID-information-in-supplicant-state-machine-.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/012-Clear-BSSID-information-in-supplicant-state-machine-.patch b/package/network/services/hostapd/patches/012-Clear-BSSID-information-in-supplicant-state-machine-.patch
new file mode 100644
index 0000000..808d345
--- /dev/null
+++ b/package/network/services/hostapd/patches/012-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);
+ }
+
+