diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-02-17 16:04:08 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-02-17 16:06:44 +0100 |
commit | 5b6997dcb39e46f2f2b43bbb694884c286bf193d (patch) | |
tree | d27a9a18e2fe3add30d1646e285788d8fa8158ce /package | |
parent | f948aa4d4fb3467889d267c37e7b1ddb41be3605 (diff) | |
download | upstream-5b6997dcb39e46f2f2b43bbb694884c286bf193d.tar.gz upstream-5b6997dcb39e46f2f2b43bbb694884c286bf193d.tar.bz2 upstream-5b6997dcb39e46f2f2b43bbb694884c286bf193d.zip |
hostapd: update the fix for a race condition in mesh new peer handling
Prevent the mesh authentication state machine from getting reset on bogus
new peer discovery
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package')
-rw-r--r-- | package/network/services/hostapd/patches/051-wpa_supplicant-fix-race-condition-in-mesh-mpm-new-pe.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/services/hostapd/patches/051-wpa_supplicant-fix-race-condition-in-mesh-mpm-new-pe.patch b/package/network/services/hostapd/patches/051-wpa_supplicant-fix-race-condition-in-mesh-mpm-new-pe.patch index b5bd7b0a68..26842c97d5 100644 --- a/package/network/services/hostapd/patches/051-wpa_supplicant-fix-race-condition-in-mesh-mpm-new-pe.patch +++ b/package/network/services/hostapd/patches/051-wpa_supplicant-fix-race-condition-in-mesh-mpm-new-pe.patch @@ -1,6 +1,6 @@ From: Felix Fietkau <nbd@nbd.name> Date: Tue, 12 Feb 2019 14:22:43 +0100 -Subject: [PATCH] wpa_supplicant: fix race condition in mesh mpm new peer +Subject: [PATCH v2] wpa_supplicant: fix race condition in mesh mpm new peer handling When wpa_supplicant receives another new peer event before the first one @@ -24,7 +24,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> - return NULL; - } + if (sta) -+ return sta; ++ return NULL; + + sta = ap_sta_add(data, addr); + if (!sta) |