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 e869fdfeef
("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 <quic_vjakkam@quicinc.com>
This commit is contained in:
Veerendranath Jakkam 2023-12-15 19:53:59 +05:30 committed by Jouni Malinen
parent c8dd70cfb1
commit 88984bbb94

View file

@ -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) wpa_s->sme.sae_rejected_groups, NULL) < 0)
goto fail; goto fail;
if (!use_pt && if (!use_pt &&
sae_prepare_commit(wpa_s->own_addr, bssid, sae_prepare_commit(wpa_s->own_addr, addr,
(u8 *) password, os_strlen(password), (u8 *) password, os_strlen(password),
&wpa_s->sme.sae) < 0) { &wpa_s->sme.sae) < 0) {
wpa_printf(MSG_DEBUG, "SAE: Could not pick PWE"); wpa_printf(MSG_DEBUG, "SAE: Could not pick PWE");