[PATCH v4 09/13] MLD STA: Use AP MLD address as destination for 4WHS EAPOL frames

Veerendranath Jakkam quic_vjakkam at quicinc.com
Thu Nov 3 01:08:52 PDT 2022


From: Rohan Dutta <quic_drohan at quicinc.com>

Use AP MLD address as destination address for EAPOL Four-Way handshake
frames since authenticator/supplicant are operates above MLD. Driver/FW
will use RA/TA based on the link used for transmitting the EAPOL frames.

Signed-off-by: Rohan Dutta <quic_drohan at quicinc.com>
Signed-off-by: Veerendranath Jakkam <quic_vjakkam at quicinc.com>
---
 src/rsn_supp/wpa.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/rsn_supp/wpa.c b/src/rsn_supp/wpa.c
index 95f9e930a..796048c62 100644
--- a/src/rsn_supp/wpa.c
+++ b/src/rsn_supp/wpa.c
@@ -979,8 +979,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);
@@ -2357,8 +2357,8 @@ static void wpa_supplicant_process_mlo_3_of_4(struct wpa_sm *sm,
 		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
-- 
2.25.1




More information about the Hostap mailing list