From e53d44ac63e8168d36c78de1d42ccf3d14305edc Mon Sep 17 00:00:00 2001 From: Manaswini Paluri Date: Mon, 17 Apr 2023 19:34:44 +0530 Subject: [PATCH] AP MLD: Use STA assoc link address in external auth status to the driver Use station association link address for sending SAE authentication status to the driver in AP mode external authentication status. Signed-off-by: Manaswini Paluri --- src/ap/ieee802_11.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 1edc2b892..087603810 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -874,7 +874,15 @@ static void sae_sme_send_external_auth_status(struct hostapd_data *hapd, os_memset(¶ms, 0, sizeof(params)); params.status = status; - params.bssid = sta->addr; + +#ifdef CONFIG_IEEE80211BE + if (sta->mld_info.mld_sta) + params.bssid = + sta->mld_info.links[sta->mld_assoc_link_id].peer_addr; +#endif /* CONFIG_IEEE80211BE */ + if (!params.bssid) + params.bssid = sta->addr; + if (status == WLAN_STATUS_SUCCESS && sta->sae && !hapd->conf->disable_pmksa_caching) params.pmkid = sta->sae->pmkid;