Browse Source

qcacld-3.0: fix CONFIG_WLAN_WEXT_SUPPORT_ENABLE conditional

Current code sets CONFIG_WLAN_WEXT_SUPPORT_ENABLE when
CONFIG_WIRELESS_EXT is enabled.
Fix this by setting CONFIG_WLAN_WEXT_SUPPORT_ENABLE when
CONFIG_CFG80211_WEXT is set.

Change-Id: I5dca2f5892be2b68cce4b5ea99f17dd18a817e37
CRs-Fixed: 3576491
Mohammed Ahmed 1 year ago
parent
commit
a30c4d43f8
2 changed files with 11 additions and 1 deletions
  1. 5 1
      Kconfig
  2. 6 0
      configs/default_defconfig

+ 5 - 1
Kconfig

@@ -1659,7 +1659,7 @@ config WLAN_WBUFF
 
 config WLAN_WEXT_SUPPORT_ENABLE
 	bool "Enable WLAN_WEXT_SUPPORT_ENABLE"
-	depends on WIRELESS_EXT
+	depends on CFG80211_WEXT
 	default n
 
 config WLAN_WOW_ITO
@@ -1726,6 +1726,10 @@ config CFG80211_MLO_KEY_OPERATION_SUPPORT
 	bool "Enable CFG80211_MLO_KEY_OPERATION_SUPPORT"
 	default n
 
+config CFG80211_WEXT
+	bool "Enable CFG80211_WEXT"
+	default n
+
 config FEATURE_PKTLOG
 	bool "Enable CONFIG_FEATURE_PKTLOG"
 	default n

+ 6 - 0
configs/default_defconfig

@@ -1178,10 +1178,16 @@ CONFIG_FEATURE_ROAM_DEBUG := y
 #Flag to enable DFS Master feature
 CONFIG_WLAN_DFS_MASTER_ENABLE := y
 
+ifeq ($(CONFIG_ARCH_PINEAPPLE), y)
 #Flag to enable WEXT support for STA/AP/P2P interfaces
+ifeq ($(CONFIG_CFG80211_WEXT), y)
+CONFIG_WLAN_WEXT_SUPPORT_ENABLE := y
+endif
+else
 ifeq ($(CONFIG_WIRELESS_EXT), y)
 CONFIG_WLAN_WEXT_SUPPORT_ENABLE := y
 endif
+endif
 
 #Flag to enable/disable MTRACE feature
 CONFIG_ENABLE_MTRACE_LOG := y