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 <quic_mpaluri@quicinc.com>
This commit is contained in:
Manaswini Paluri 2023-04-17 19:34:44 +05:30 committed by Jouni Malinen
parent 4636476b7f
commit e53d44ac63

View file

@ -874,7 +874,15 @@ static void sae_sme_send_external_auth_status(struct hostapd_data *hapd,
os_memset(&params, 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;