[PATCH v2 12/17] MLD STA: Use AP MLD address as destination for 4WHS EAPOL frames

Veerendranath Jakkam quic_vjakkam at quicinc.com
Sat Oct 1 01:21:24 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 925340c..db97a2b 100644
--- a/src/rsn_supp/wpa.c
+++ b/src/rsn_supp/wpa.c
@@ -944,8 +944,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);
@@ -2319,8 +2319,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.7.4




More information about the Hostap mailing list