qcacmn: Fix BSS color issue and add cmd support to disable BSS color
Add macros to set and get BSS color value and the BSS Color
disable bit values. These macros are used to construct the value
to send to the WMI BSS Color vdev param with BSS color and BSS color
disable status embedded.
Change-Id: Id0721a1a5d66fff5d2c50708aeefb5e0ec03e999
CRs-fixed: 2186897
diff --git a/wmi_unified_param.h b/wmi_unified_param.h
index 254e9e5..9eb0d7c 100644
--- a/wmi_unified_param.h
+++ b/wmi_unified_param.h
@@ -222,6 +222,28 @@
#define WMI_HOST_TXBF_CONF_BF_SND_DIM_SET(x, z) \
WMI_HOST_F_RMW(x, z, WMI_HOST_TXBF_CONF_BF_SND_DIM)
+/* The following WMI_HOST_HEOPS_BSSCOLOR_XXX macros correspond to the
+ * WMI_HEOPS_COLOR_XXX macros in the FW wmi_unified.h */
+#define WMI_HOST_HEOPS_BSSCOLOR_S 0
+#define WMI_HOST_HEOPS_BSSCOLOR_M 0x3f
+#define WMI_HOST_HEOPS_BSSCOLOR \
+ (WMI_HOST_HEOPS_BSSCOLOR_M << WMI_HOST_HEOPS_BSSCOLOR_S)
+#define WMI_HOST_HEOPS_BSSCOLOR_GET(x) \
+ WMI_HOST_F_MS(x, WMI_HOST_HEOPS_BSSCOLOR)
+#define WMI_HOST_HEOPS_BSSCOLOR_SET(x, z) \
+ WMI_HOST_F_RMW(x, z, WMI_HOST_HEOPS_BSSCOLOR)
+
+/* The following WMI_HOST_HEOPS_BSSCOLOR_DISABLE_XXX macros correspond to the
+ * WMI_HEOPS_BSSCOLORDISABLE_XXX macros in the FW wmi_unified.h */
+#define WMI_HOST_HEOPS_BSSCOLOR_DISABLE_S 30
+#define WMI_HOST_HEOPS_BSSCOLOR_DISABLE_M 0x1
+#define WMI_HOST_HEOPS_BSSCOLOR_DISABLE \
+ (WMI_HOST_HEOPS_BSSCOLOR_DISABLE_M << WMI_HOST_HEOPS_BSSCOLOR_DISABLE_S)
+#define WMI_HOST_HEOPS_BSSCOLOR_DISABLE_GET(x) \
+ WMI_HOST_F_MS(x, WMI_HOST_HEOPS_BSSCOLOR_DISABLE)
+#define WMI_HOST_HEOPS_BSSCOLOR_DISABLE_SET(x, z) \
+ WMI_HOST_F_RMW(x, z, WMI_HOST_HEOPS_BSSCOLOR_DISABLE)
+
/* HE BF capabilities mask */
#define WMI_HOST_HE_BF_CONF_SU_BFEE_S 0
#define WMI_HOST_HE_BF_CONF_SU_BFEE_M 0x1