From: Ilan Peer Date: Mon, 22 May 2023 19:34:05 +0000 (+0300) Subject: MLO: Get the correct AA and SPA based on MLD operation for RSN authenticator X-Git-Tag: hostap_2_11~1116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a8752876a9da49457e066495c68778d16bcd37f;p=thirdparty%2Fhostap.git MLO: Get the correct AA and SPA based on MLD operation for RSN authenticator Signed-off-by: Ilan Peer --- 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; }