qcacld-3.0: Change wlan defconfig to support cnss2 as dlkm
Tune the configure items to support cnss2 as dynamic loadable
kernel module.
Change-Id: I848f22fe54e1c8539422c7d0b3f0f2868ed5ead9
CRs-Fixed: 2546266
diff --git a/configs/qca6390_defconfig b/configs/qca6390_defconfig
index 80082ff..cb304ba 100644
--- a/configs/qca6390_defconfig
+++ b/configs/qca6390_defconfig
@@ -45,6 +45,13 @@
endif
endif
+ifeq (m,$(findstring m,$(CONFIG_CNSS) $(CONFIG_CNSS2)))
+ifndef CONFIG_ROME_IF
+ #use pci as default interface
+ CONFIG_ROME_IF = pci
+endif
+endif
+
# Make WLAN as open-source driver by default
WLAN_OPEN_SOURCE := y
@@ -162,6 +169,17 @@
CONFIG_WLAN_FEATURE_LPSS := y
endif
endif
+
+ ifeq (m,$(findstring m,$(CONFIG_CNSS2)))
+ #Flag to enable Protected Management Frames (11w) feature
+ CONFIG_WLAN_FEATURE_11W := y
+ #Flag to enable LTE CoEx feature
+ CONFIG_QCOM_LTE_COEX := y
+ ifneq ($(CONFIG_MOBILE_ROUTER), y)
+ #Flag to enable LPSS feature
+ CONFIG_WLAN_FEATURE_LPSS := y
+ endif
+ endif
endif
#Flag to enable Protected Management Frames (11w) feature
@@ -745,6 +763,13 @@
endif
endif
+ifeq ($(CONFIG_CNSS2), m)
+ifeq ($(CONFIG_HIF_PCI), y)
+CONFIG_PLD_PCIE_CNSS_FLAG := y
+CONFIG_PLD_PCIE_INIT_FLAG := y
+endif
+endif
+
#Enable STATE MACHINE HISTORY
CONFIG_SM_ENG_HIST := n