]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
MLD STA: Use AP MLD address as destination for 4-way handshake EAPOL-Key frames
authorRohan Dutta <quic_drohan@quicinc.com>
Thu, 3 Nov 2022 08:08:52 +0000 (13:38 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 6 Nov 2022 21:36:49 +0000 (23:36 +0200)
Use AP MLD address as the destination address for EAPOL-Key 4-way
handshake frames since authenticator/supplicant operates above MLD. The
driver/firmware will use RA/TA based on the link used for transmitting
the EAPOL frames.

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

index b423c78779b07195095bb3aa2339c04270d1f0f7..8f3f74d06aef296280f7c2292d782a10b4af1b4d 100644 (file)
@@ -976,8 +976,8 @@ static void wpa_supplicant_process_1_of_4(struct wpa_sm *sm,
                kde_len = pos - kde;
        }
 
-       if (wpa_supplicant_send_2_of_4(sm, sm->bssid, key, ver, sm->snonce,
-                                      kde, kde_len, ptk) < 0)
+       if (wpa_supplicant_send_2_of_4(sm, wpa_sm_get_auth_addr(sm), key, ver,
+                                      sm->snonce, kde, kde_len, ptk) < 0)
                goto failed;
 
        os_free(kde_buf);
@@ -2447,10 +2447,9 @@ static void wpa_supplicant_process_3_of_4(struct wpa_sm *sm,
            wpa_supplicant_install_ptk(sm, key, KEY_FLAG_RX))
                goto failed;
 
-       if (wpa_supplicant_send_4_of_4(sm, sm->bssid, key, ver, key_info,
-                                      &sm->ptk) < 0) {
+       if (wpa_supplicant_send_4_of_4(sm, wpa_sm_get_auth_addr(sm), key, ver,
+                                      key_info, &sm->ptk) < 0)
                goto failed;
-       }
 
        /* SNonce was successfully used in msg 3/4, so mark it to be renewed
         * for the next 4-Way Handshake. If msg 3 is received again, the old