浏览代码

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
Liangwei Dong 5 年之前
父节点
当前提交
03e080c45a
共有 5 个文件被更改,包括 8 次插入5 次删除
  1. 3 0
      Kbuild
  2. 1 1
      core/wma/inc/wma_internal.h
  3. 1 1
      core/wma/src/wma_main.c
  4. 2 2
      core/wma/src/wma_mgmt.c
  5. 1 1
      core/wma/src/wma_power.c

+ 3 - 0
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
 

+ 1 - 1
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
 

+ 1 - 1
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)
 {

+ 2 - 2
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;

+ 1 - 1
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