From: Manaswini Paluri Date: Mon, 17 Apr 2023 14:04:44 +0000 (+0530) Subject: AP MLD: Use STA assoc link address in external auth status to the driver X-Git-Tag: hostap_2_11~1080 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e53d44ac63e8168d36c78de1d42ccf3d14305edc;p=thirdparty%2Fhostap.git 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 --- 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;