From 38711a011f9e7b5eacc5b2d0d1de280b39ad2046 Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Mon, 25 Dec 2023 19:43:02 +0200 Subject: AP MLD: Remove link stations on a new station authentication When a station tries to authenticate to an AP that is affiliated with an AP MLD, we need to remove all station instances from all the APs. Signed-off-by: Ilan Peer Signed-off-by: Andrei Otcheretianski Signed-off-by: Rathees Kumar R Chinannan --- src/ap/sta_info.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index efc576d..8721c4b 100644 --- a/src/ap/sta_info.c +++ b/src/ap/sta_info.c @@ -1767,6 +1767,12 @@ int ap_sta_re_add(struct hostapd_data *hapd, struct sta_info *sta) mld_link_addr = sta->mld_info.links[mld_link_id].peer_addr; eml_cap = sta->mld_info.common_info.eml_capa; mld_cap = sta->mld_info.common_info.mld_capa; + + /* + * In case the AP hosts an MLD AP, need to remove the station + * from all relevant links/APs. + */ + ap_sta_remove_link_sta(hapd, sta); } #endif /* CONFIG_IEEE80211BE */ -- 2.43.0