From: John Crispin <john@phrozen.org>
Subject: [PATCH V4 3/6] bss coloring: disable BSS color during CCA
Date: Wed, 26 Aug 2020 08:22:13 +0200


While we are doing CCA 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(-)

--- a/src/ap/ieee802_11_he.c
+++ b/src/ap/ieee802_11_he.c
@@ -198,7 +198,7 @@ u8 * hostapd_eid_he_operation(struct hos
 		params |= (hapd->iface->conf->he_op.he_rts_threshold <<
 			   HE_OPERATION_RTS_THRESHOLD_OFFSET);
 
-	if (hapd->iface->conf->he_op.he_bss_color_disabled)
+	if (hapd->iface->conf->he_op.he_bss_color_disabled || hapd->cca_in_progress)
 		params |= HE_OPERATION_BSS_COLOR_DISABLED;
 	if (hapd->iface->conf->he_op.he_bss_color_partial)
 		params |= HE_OPERATION_BSS_COLOR_PARTIAL;
