From: Karthik M Date: Thu, 11 Sep 2025 22:02:07 +0000 (+0530) Subject: AP MLD: Enable SA Query handling for all the MLD links X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a57d9ca3fc04005ee58e2d9c4b556cad73b0e5ef;p=thirdparty%2Fhostap.git 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 --- 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 */ }