From a57d9ca3fc04005ee58e2d9c4b556cad73b0e5ef Mon Sep 17 00:00:00 2001 From: Karthik M Date: Fri, 12 Sep 2025 03:32:07 +0530 Subject: [PATCH] AP MLD: Enable SA Query handling for all the MLD links Introduce an ap_sta_set_sa_query_timeout() helper function to propagate the SA Query timeout state across all affiliated STAs of a non-AP MLD. Extend functionality beyond just introducing the helper by enabling SA Query handling for all the MLD links. Signed-off-by: Karthik M --- src/ap/sta_info.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index e99d7cbeb..6167957a5 100644 --- a/src/ap/sta_info.c +++ b/src/ap/sta_info.c @@ -1436,6 +1436,22 @@ void ap_sta_set_sa_query_timeout(struct hostapd_data *hapd, struct sta_info *sta, int value) { sta->sa_query_timed_out = value; +#ifdef CONFIG_IEEE80211BE + if (ap_sta_is_mld(hapd, sta)) { + struct hostapd_data *lhapd; + + for_each_mld_link(lhapd, hapd) { + struct sta_info *lsta; + + if (lhapd == hapd) + continue; + + lsta = ap_get_sta(lhapd, sta->addr); + if (lsta) + lsta->sa_query_timed_out = value; + } + } +#endif /* CONFIG_IEEE80211BE */ } -- 2.47.3