From: Rohan Dutta Date: Thu, 3 Nov 2022 08:08:52 +0000 (+0530) Subject: MLD STA: Use AP MLD address as destination for 4-way handshake EAPOL-Key frames X-Git-Tag: hostap_2_11~1553 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0760aa6ddcad5a7db6f8bacd357c09ea6c9affb;p=thirdparty%2Fhostap.git MLD STA: Use AP MLD address as destination for 4-way handshake EAPOL-Key frames 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 Signed-off-by: Veerendranath Jakkam --- diff --git a/src/rsn_supp/wpa.c b/src/rsn_supp/wpa.c index b423c7877..8f3f74d06 100644 --- a/src/rsn_supp/wpa.c +++ b/src/rsn_supp/wpa.c @@ -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