From: Veerendranath Jakkam Date: Fri, 15 Dec 2023 14:23:59 +0000 (+0530) Subject: MLD STA: Update SAE PWE derivation in hunting-and-pecking loop case X-Git-Tag: hostap_2_11~602 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88984bbb947369844a4db8b1afa800e5e5cadfdf;p=thirdparty%2Fhostap.git MLD STA: Update SAE PWE derivation in hunting-and-pecking loop case Use AP MLD address instead of BSSID for PWE derivation during MLO connection. This was already done for H2E in commit e869fdfeefa5 ("wpa_supplicant: Use MLD address in SAE authentication"). While IEEE P802.11be requires H2E to be used, there are deployed AP MLDs that do not follow that requirement. This change to the hunting-and-pecking loop case is needed for interoperability workarounds with such APs. Signed-off-by: Veerendranath Jakkam --- diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index 648d08549..23f151a4d 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -243,7 +243,7 @@ static struct wpabuf * sme_auth_build_sae_commit(struct wpa_supplicant *wpa_s, wpa_s->sme.sae_rejected_groups, NULL) < 0) goto fail; if (!use_pt && - sae_prepare_commit(wpa_s->own_addr, bssid, + sae_prepare_commit(wpa_s->own_addr, addr, (u8 *) password, os_strlen(password), &wpa_s->sme.sae) < 0) { wpa_printf(MSG_DEBUG, "SAE: Could not pick PWE");