From: John Crispin Date: Mon, 21 Mar 2022 11:10:32 +0000 (+0100) Subject: BSS coloring: Disable BSS color during CCA X-Git-Tag: hostap_2_11~2049 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86bd90eb37a5f8a7966636e25e79683ad9cef5df;p=thirdparty%2Fhostap.git BSS coloring: Disable BSS color during CCA While we are doing CCA the BSS Color Disabled field inside the HE Operation Parameters field needs to be set. Tested-by: Peter Chiu Co-developed-by: Lorenzo Bianconi Signed-off-by: Lorenzo Bianconi Signed-off-by: John Crispin Signed-off-by: Ryder Lee --- diff --git a/src/ap/ieee802_11_he.c b/src/ap/ieee802_11_he.c index f2473dc17..1e74c5845 100644 --- a/src/ap/ieee802_11_he.c +++ b/src/ap/ieee802_11_he.c @@ -200,7 +200,8 @@ u8 * hostapd_eid_he_operation(struct hostapd_data *hapd, u8 *eid) if (hapd->iface->conf->he_op.he_er_su_disable) params |= HE_OPERATION_ER_SU_DISABLE; - 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;