]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Do not store RSNXE for WPA 1
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 18 Dec 2025 16:19:34 +0000 (17:19 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 24 Jan 2026 17:49:47 +0000 (19:49 +0200)
If the connection is using WPA 1, then the RSNXE will not be inclued in
the KDE. So do not store it to not trigger a verification mismatch later
because the RSNXE is not in the KDE as would be expected otherwise.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
src/ap/wpa_auth_ie.c

index 220ac809f338ae016dfa1e76ac1220f198460cf7..7094cf234562770914b808807ccdb5505181b106 100644 (file)
@@ -1360,7 +1360,7 @@ wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
        os_memcpy(sm->wpa_ie, wpa_ie, wpa_ie_len);
        sm->wpa_ie_len = wpa_ie_len;
 
-       if (rsnxe && rsnxe_len) {
+       if (sm->wpa != WPA_VERSION_WPA && rsnxe && rsnxe_len) {
                if (!sm->rsnxe || sm->rsnxe_len < rsnxe_len) {
                        os_free(sm->rsnxe);
                        sm->rsnxe = os_malloc(rsnxe_len);