]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Enable SA Query handling for all the MLD links
authorKarthik M <karthik.m@oss.qualcomm.com>
Thu, 11 Sep 2025 22:02:07 +0000 (03:32 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 22 Sep 2025 18:47:35 +0000 (21:47 +0300)
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 <karthik.m@oss.qualcomm.com>
src/ap/sta_info.c

index e99d7cbebdca87d81a6b1dbaf387e98f83fc9243..6167957a5e0edf44167008f5b3e967e84240b62a 100644 (file)
@@ -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 */
 }