]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SAE: Extend Basic MLE Recognition to external auth case
authorHu Wang <quic_huw@quicinc.com>
Fri, 20 Sep 2024 01:58:18 +0000 (18:58 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 26 Sep 2024 08:33:13 +0000 (11:33 +0300)
This commit extends ccba6921de63 ("SAE: Recognize Basic MLE in
Authentication frames even without H2E") to cover external auth case.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wpa_supplicant/sme.c

index bf0252b91225027d0587264e12bfa0c971ba9078..05ca8ddad211d9a87a75169dd6e5c06da1be929b 100644 (file)
@@ -1726,7 +1726,9 @@ static int sme_sae_auth(struct wpa_supplicant *wpa_s, u16 auth_transaction,
                        }
                        token_len = elen - 1;
 #ifdef CONFIG_IEEE80211BE
-               } else if (wpa_s->valid_links && token_len > 12 &&
+               } else if ((wpa_s->valid_links ||
+                           (external && wpa_s->sme.ext_ml_auth)) &&
+                          token_len > 12 &&
                           token_pos[token_len - 12] == WLAN_EID_EXTENSION &&
                           token_pos[token_len - 11] == 10 &&
                           token_pos[token_len - 10] ==