From: Mohan Kumar G Date: Tue, 17 Jun 2025 15:01:01 +0000 (+0530) Subject: Avoid set beacon operations when color change is in progress X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5375fa2eeda84673129c03fd0f389db821eb56a6;p=thirdparty%2Fhostap.git Avoid set beacon operations when color change is in progress 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 --- diff --git a/src/ap/beacon.c b/src/ap/beacon.c index fd88ec93e..6cfaf099e 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -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, ¶ms) < 0)