diff mbox series

[4/6] bss coloring: disable BSS color during CAC

Message ID 20200617150836.4183882-4-john@phrozen.org
State Superseded
Headers show
Series [1/6] HE: move some configs from iface -> bss | expand

Commit Message

John Crispin June 17, 2020, 3:08 p.m. UTC
While we are doing CAC the bss color disable bit inside the he oper field
needs to be set.

Signed-off-by: John Crispin <john@phrozen.org>
---
 src/ap/ieee802_11_he.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/ap/ieee802_11_he.c b/src/ap/ieee802_11_he.c
index a7fc4164b..269bcd833 100644
--- a/src/ap/ieee802_11_he.c
+++ b/src/ap/ieee802_11_he.c
@@ -192,7 +192,7 @@  u8 * hostapd_eid_he_operation(struct hostapd_data *hapd, u8 *eid)
 		params |= (hapd->conf->he_op.he_rts_threshold <<
 			   HE_OPERATION_RTS_THRESHOLD_OFFSET);
 
-	if (hapd->conf->he_op.he_bss_color_disabled)
+	if (hapd->conf->he_op.he_bss_color_disabled || hapd->cca_in_progress)
 		params |= HE_OPERATION_BSS_COLOR_DISABLED;
 	if (hapd->conf->he_op.he_bss_color_partial)
 		params |= HE_OPERATION_BSS_COLOR_PARTIAL;