]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SME: MLD: Deauthenticate when failing to parse ML element
authorIlan Peer <ilan.peer@intel.com>
Mon, 8 Apr 2024 13:06:57 +0000 (16:06 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 21 Apr 2024 08:01:28 +0000 (11:01 +0300)
If parsing the basic ML element in the Authenticate frame fails,
instead of only disassociating, completely deauthenticate so all
state machines would be in a consistent state.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/sme.c

index f08184f9810515fc9ac3103b61dafc3dc59b8084..0115caf8c55f7cd641966d9a59bf12be752dda69 100644 (file)
@@ -2156,7 +2156,8 @@ void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data)
                        MAC2STR(wpa_s->pending_bssid),
                        WLAN_REASON_DEAUTH_LEAVING);
                wpas_connection_failed(wpa_s, wpa_s->pending_bssid, NULL);
-               wpa_supplicant_mark_disassoc(wpa_s);
+               wpa_supplicant_deauthenticate(wpa_s,
+                                             WLAN_REASON_DEAUTH_LEAVING);
                return;
        }