Bladeren bron

qcacld-3.0: Disable monitor mode for SDXPRAIRIE

Monitor mode feature not required on SDXPRAIRIE, and disable
it to save memory.

Change-Id: I206ef4441cc64218cbdcea08aaa3ce584aa99bf0
CRs-Fixed: 2418590
Lin Bai 6 jaren geleden
bovenliggende
commit
de6c5537d3
2 gewijzigde bestanden met toevoegingen van 11 en 1 verwijderingen
  1. 7 1
      Kbuild
  2. 4 0
      configs/default_defconfig

+ 7 - 1
Kbuild

@@ -1943,7 +1943,6 @@ cppflags-$(CONFIG_SUPPORT_11AX) += -DSUPPORT_11AX
 cppflags-$(CONFIG_HDD_INIT_WITH_RTNL_LOCK) += -DCONFIG_HDD_INIT_WITH_RTNL_LOCK
 cppflags-$(CONFIG_WLAN_CONV_SPECTRAL_ENABLE) += -DWLAN_CONV_SPECTRAL_ENABLE
 cppflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS
-cppflags-$(CONFIG_FEATURE_MONITOR_MODE_SUPPORT) += -DFEATURE_MONITOR_MODE_SUPPORT
 cppflags-$(CONFIG_WLAN_FEATURE_TWT) += -DWLAN_SUPPORT_TWT
 
 cppflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL
@@ -1965,6 +1964,13 @@ cppflags-$(CONFIG_PLD_PCIE_INIT_FLAG) += -DCONFIG_PLD_PCIE_INIT
 cppflags-$(CONFIG_WLAN_FEATURE_DP_RX_THREADS) += -DFEATURE_WLAN_DP_RX_THREADS
 cppflags-$(CONFIG_PLD_USB_CNSS) += -DCONFIG_PLD_USB_CNSS
 
+#For both legacy and lithium chip's monitor mode config
+ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
+cppflags-y += -DFEATURE_MONITOR_MODE_SUPPORT
+else
+cppflags-y += -DDISABLE_MON_CONFIG
+endif
+
 #Enable NL80211 test mode
 cppflags-$(CONFIG_NL80211_TESTMODE) += -DWLAN_NL80211_TESTMODE
 

+ 4 - 0
configs/default_defconfig

@@ -725,6 +725,10 @@ ifeq ($(CONFIG_ARCH_MSM8996), y)
 CONFIG_CHANNEL_HOPPING_ALL_BANDS := y
 endif
 
+ifeq ($(CONFIG_ARCH_SDXPRAIRIE), y)
+CONFIG_FEATURE_MONITOR_MODE_SUPPORT := n
+endif
+
 ifneq ($(CONFIG_HIF_USB), y)
 CONFIG_WLAN_LOGGING_SOCK_SVC := y
 endif