]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Avoid set beacon operations when color change is in progress
authorMohan Kumar G <mkumarg@qti.qualcomm.com>
Tue, 17 Jun 2025 15:01:01 +0000 (20:31 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 23 Jun 2025 17:56:15 +0000 (20:56 +0300)
Avoid setting beacon during BSS Color Change Announcement (CCA), similar
to Channel Switch Announcement (CSA), as beacon updates to the
corresponding BSSes are not allowed during this period.

Signed-off-by: Mohan Kumar G <mkumarg@qti.qualcomm.com>
src/ap/beacon.c

index fd88ec93ec6dc05292c748fbaf9f4f2edfa7019a..6cfaf099e5e10ec15c7da094b8f3558a3f26de46 100644 (file)
@@ -2685,6 +2685,14 @@ static int __ieee802_11_set_beacon(struct hostapd_data *hapd)
                return -1;
        }
 
+#ifdef CONFIG_IEEE80211AX
+       if (hapd->cca_in_progress) {
+               wpa_printf(MSG_ERROR,
+                          "Cannot set beacons during CCA period");
+               return -1;
+       }
+#endif /* CONFIG_IEEE80211AX */
+
        hapd->beacon_set_done = 1;
 
        if (ieee802_11_build_ap_params(hapd, &params) < 0)