Переглянути джерело

qcacld-3.0: Allocate DFS buffers dynamically

Disable WLAN_DFS_STATIC_MEM_ALLOC for Genoa

Change-Id: Ie035c9f327dccbe4c2cc10f2354d1b23c7890675
CRs-Fixed: 2312050
Rachit Kankane 6 роки тому
батько
коміт
b57ea618f2
3 змінених файлів з 7 додано та 1 видалено
  1. 1 1
      Kbuild
  2. 1 0
      configs/default_defconfig
  3. 5 0
      configs/genoa.common

+ 1 - 1
Kbuild

@@ -2251,7 +2251,7 @@ cppflags-y += -DCONFIG_SERIALIZATION_V1
 ccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os
 
 # DFS component
-cppflags-y += -DWLAN_DFS_STATIC_MEM_ALLOC
+cppflags-$(CONFIG_WLAN_DFS_STATIC_MEM_ALLOC) += -DWLAN_DFS_STATIC_MEM_ALLOC
 cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_MCL_DFS_SUPPORT
 ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
 cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_FULL_OFFLOAD

+ 1 - 0
configs/default_defconfig

@@ -524,6 +524,7 @@ CONFIG_FEATURE_STATS_EXT := y
 
 #Flag to allocate memory dynamically for different buffers
 CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY := n
+CONFIG_WLAN_DFS_STATIC_MEM_ALLOC := y
 
 #Flag to enable HTC credit history feature
 CONFIG_FEATURE_HTC_CREDIT_HISTORY := y

+ 5 - 0
configs/genoa.common

@@ -157,6 +157,11 @@ CONFIG_BUILD_TAG := y
 endif
 endif
 
+#Buffer allocations dynamically
+ifeq ($(CONFIG_WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY), y)
+CONFIG_WLAN_DFS_STATIC_MEM_ALLOC := n
+endif
+
 # WoW filer configs
 CONFIG_CFG_PMO_WOW_FILTERS_MAX := 16