diff --git a/Kbuild b/Kbuild index 7bdcf41b3b88..9ca4b23d807f 100644 --- a/Kbuild +++ b/Kbuild @@ -1214,6 +1214,7 @@ endif 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 @@ else 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 31245cb95fe6..0de76e465085 100644 --- a/core/wma/inc/wma_internal.h +++ b/core/wma/inc/wma_internal.h @@ -684,7 +684,7 @@ uint32_t wma_get_bcn_rate_code(uint16_t rate); /* * 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 add894657692..70809c6c1342 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -2965,7 +2965,7 @@ void wma_wmi_stop(void) 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 4f7f0788aca0..c0d2ff42fb66 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 @@ wma_send_bcn_buf_ll(tp_wma_handle wma, * * 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 36d61b5b8d06..4d4a5c41d51b 100644 --- a/core/wma/src/wma_power.c +++ b/core/wma/src/wma_power.c @@ -1250,7 +1250,7 @@ QDF_STATUS wma_process_tx_power_limits(WMA_HANDLE handle, 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