]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Use STA assoc link address in external auth status to the driver
authorManaswini Paluri <quic_mpaluri@quicinc.com>
Mon, 17 Apr 2023 14:04:44 +0000 (19:34 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 19 Jul 2023 16:28:44 +0000 (19:28 +0300)
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>
src/ap/ieee802_11.c

index 1edc2b892627d98c145cb7bea1ef9d6819ef3734..0876038100af67efef05d25454fb0d3c6b09e4af 100644 (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;