]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
MLD STA: Update SAE PWE derivation in hunting-and-pecking loop case
authorVeerendranath Jakkam <quic_vjakkam@quicinc.com>
Fri, 15 Dec 2023 14:23:59 +0000 (19:53 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 21 Dec 2023 11:06:57 +0000 (13:06 +0200)
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 <quic_vjakkam@quicinc.com>
wpa_supplicant/sme.c

index 648d08549df4043462ee69ff8e4f567395d74687..23f151a4de3eea3df87c8937762ccef393090a83 100644 (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)
                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");