MLO: Get the correct AA and SPA based on MLD operation for RSN authenticator

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2023-05-22 22:34:05 +03:00 committed by Jouni Malinen
parent d5e93c8043
commit 8a8752876a

View file

@ -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;
}