qcacld-3.0: Change beacon tx WMI API under feature flag
Add feature flag WLAN_WMI_BCN to compile Beacon tx APIs
selectively.
Change-Id: Ie2b4ad0ae7a7c6de7286ed0b215084060a4f34c6
CRs-Fixed: 2483531
diff --git a/Kbuild b/Kbuild
index 7bdcf41..9ca4b23 100644
--- a/Kbuild
+++ b/Kbuild
@@ -1214,6 +1214,7 @@
ifeq ($(CONFIG_WMI_BCN_OFFLOAD), y)
WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_bcn_api.o
+WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_bcn_tlv.o
endif
########### FWLOG ###########
@@ -2359,6 +2360,8 @@
cppflags-$(CONFIG_WLAN_OPEN_P2P_INTERFACE) += -DWLAN_OPEN_P2P_INTERFACE
endif
+cppflags-$(CONFIG_WMI_BCN_OFFLOAD) += -DWLAN_WMI_BCN
+
#Enable wbuff
cppflags-$(CONFIG_WLAN_WBUFF) += -DWLAN_FEATURE_WBUFF
diff --git a/core/wma/inc/wma_internal.h b/core/wma/inc/wma_internal.h
index 31245cb..0de76e4 100644
--- a/core/wma/inc/wma_internal.h
+++ b/core/wma/inc/wma_internal.h
@@ -684,7 +684,7 @@
/*
* wma_mgmt.c functions declarations
*/
-#ifdef CONFIG_WMI_BCN_OFFLOAD
+#ifdef WLAN_WMI_BCN
int wma_beacon_swba_handler(void *handle, uint8_t *event, uint32_t len);
#endif
diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c
index add8946..70809c6 100644
--- a/core/wma/src/wma_main.c
+++ b/core/wma/src/wma_main.c
@@ -2965,7 +2965,7 @@
wmi_stop(wma_handle->wmi_handle);
}
-#ifdef CONFIG_WMI_BCN_OFFLOAD
+#ifdef WLAN_WMI_BCN
static QDF_STATUS
wma_register_swba_events(wmi_unified_t wmi_handle)
{
diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c
index 4f7f078..c0d2ff4 100644
--- a/core/wma/src/wma_mgmt.c
+++ b/core/wma/src/wma_mgmt.c
@@ -88,7 +88,7 @@
*
* Return: none
*/
-#ifdef CONFIG_WMI_BCN_OFFLOAD
+#ifdef WLAN_WMI_BCN
static void wma_send_bcn_buf_ll(tp_wma_handle wma,
struct cdp_pdev *pdev,
uint8_t vdev_id,
@@ -264,7 +264,7 @@
*
* Return: 0 for success or error code
*/
-#ifdef CONFIG_WMI_BCN_OFFLOAD
+#ifdef WLAN_WMI_BCN
int wma_beacon_swba_handler(void *handle, uint8_t *event, uint32_t len)
{
tp_wma_handle wma = (tp_wma_handle) handle;
diff --git a/core/wma/src/wma_power.c b/core/wma/src/wma_power.c
index 36d61b5..4d4a5c4 100644
--- a/core/wma/src/wma_power.c
+++ b/core/wma/src/wma_power.c
@@ -1250,7 +1250,7 @@
return QDF_STATUS_SUCCESS;
}
-#ifdef CONFIG_WMI_BCN_OFFLOAD
+#ifdef WLAN_WMI_BCN
/**
* wma_add_p2p_ie() - add p2p IE
* @frm: ptr where p2p ie needs to add