]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
MLD STA: Fix destination address for Group Key handshake msg 2/2
authorRohan Dutta <quic_drohan@quicinc.com>
Tue, 10 Oct 2023 05:12:00 +0000 (10:42 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 6 Nov 2023 17:58:22 +0000 (19:58 +0200)
For MLO association, specify destination address as the MLD MAC address
for sending Group Key msg 2/2.

Signed-off-by: Rohan Dutta <quic_drohan@quicinc.com>
src/rsn_supp/wpa.c

index 6d448d07167fb27ff5d014b1382d1337dcecc3a0..de152550196927519065a65c629c78596b5bc7d0 100644 (file)
@@ -2744,8 +2744,8 @@ static int wpa_supplicant_send_2_of_2(struct wpa_sm *sm,
 #endif /* CONFIG_OCV */
 
        wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG, "WPA: Sending EAPOL-Key 2/2");
-       return wpa_eapol_key_send(sm, &sm->ptk, ver, sm->bssid, ETH_P_EAPOL,
-                                 rbuf, rlen, key_mic);
+       return wpa_eapol_key_send(sm, &sm->ptk, ver, wpa_sm_get_auth_addr(sm),
+                                 ETH_P_EAPOL, rbuf, rlen, key_mic);
 }