From: Hu Wang Date: Fri, 20 Sep 2024 01:58:18 +0000 (-0700) Subject: SAE: Extend Basic MLE Recognition to external auth case X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f46eb8d3f8183ea223b03774ae48fed8b2523339;p=thirdparty%2Fhostap.git SAE: Extend Basic MLE Recognition to external auth case This commit extends ccba6921de63 ("SAE: Recognize Basic MLE in Authentication frames even without H2E") to cover external auth case. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index bf0252b91..05ca8ddad 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -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] ==