]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
MLD STA: Use AP MLD address in PMKSA entry
authorVeerendranath Jakkam <quic_vjakkam@quicinc.com>
Thu, 3 Nov 2022 08:08:50 +0000 (13:38 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 6 Nov 2022 21:36:36 +0000 (23:36 +0200)
Use the AP MLD address instead of the BSSID of a link as the
authenticator address in the PMKSA entry.

Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
src/rsn_supp/wpa.c

index 87f814a491deb26c1d990174ad705b7c64d00f33..658abd1126dab17da3e43e9bf0ffa33ce1517e0f 100644 (file)
@@ -1987,7 +1987,7 @@ static void wpa_supplicant_process_3_of_4(struct wpa_sm *sm,
 
                sa = pmksa_cache_add(sm->pmksa, sm->pmk, sm->pmk_len, NULL,
                                     sm->ptk.kck, sm->ptk.kck_len,
-                                    sm->bssid, sm->own_addr,
+                                    wpa_sm_get_auth_addr(sm), sm->own_addr,
                                     sm->network_ctx, sm->key_mgmt, NULL);
                if (!sm->cur_pmksa)
                        sm->cur_pmksa = sa;