]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
BSS coloring: Disable BSS color during CCA
authorJohn Crispin <john@phrozen.org>
Mon, 21 Mar 2022 11:10:32 +0000 (12:10 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 16 Apr 2022 14:13:51 +0000 (17:13 +0300)
While we are doing CCA the BSS Color Disabled field inside the HE
Operation Parameters field needs to be set.

Tested-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
src/ap/ieee802_11_he.c

index f2473dc17e22bfee45a7c932aca3e36f1a56bb77..1e74c5845cf06c0943b5b77a3fe65c175118a6ca 100644 (file)
@@ -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;