From 8a8752876a9da49457e066495c68778d16bcd37f Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Mon, 22 May 2023 22:34:05 +0300 Subject: [PATCH] MLO: Get the correct AA and SPA based on MLD operation for RSN authenticator Signed-off-by: Ilan Peer --- src/ap/wpa_auth.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c index f759ed322..9d153da7d 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -85,12 +85,20 @@ static const int dot11RSNAConfigSATimeout = 60; static const u8 * wpa_auth_get_aa(const struct wpa_state_machine *sm) { +#ifdef CONFIG_IEEE80211BE + if (sm->mld_assoc_link_id >= 0) + return sm->own_mld_addr; +#endif /* CONFIG_IEEE80211BE */ return sm->wpa_auth->addr; } static const u8 * wpa_auth_get_spa(const struct wpa_state_machine *sm) { +#ifdef CONFIG_IEEE80211BE + if (sm->mld_assoc_link_id >= 0) + return sm->peer_mld_addr; +#endif /* CONFIG_IEEE80211BE */ return sm->addr; } -- 2.47.2