diff mbox series

wireless: Change Kconfig to select WEXT_PRIV

Message ID 20220403181431.21811-1-Larry.Finger@lwfinger.net
State New
Headers show
Series wireless: Change Kconfig to select WEXT_PRIV | expand

Commit Message

Larry Finger April 3, 2022, 6:14 p.m. UTC
File net/wireless/Kconfig contains two blind configuration variables,
namely WEXT_PRIV and WEXT_SPY. If those variables are already in the
configuration file, they will be retained, but there is no way to
set them if they are missing other than to manually edit .config.
They should be enabled if either WIRELESS_EXT or CFG80211_WEXT are set
in the same manner as WEXT_CORE and WEXT_PROC.

Personally, the setting of WEXT_SPY is not important; however, openSUSE
and Ubuntu both enable it in their default kernels. Other distros have
not been checked, but it is likely that they also enable that setting.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---
 net/wireless/Kconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig
index f620acd2a0f5..9c216af3ca55 100644
--- a/net/wireless/Kconfig
+++ b/net/wireless/Kconfig
@@ -12,10 +12,12 @@  config WEXT_PROC
 	depends on WEXT_CORE
 
 config WEXT_SPY
-	bool
+	def_bool y
+	depends on CFG80211_WEXT || WIRELESS_EXT
 
 config WEXT_PRIV
-	bool
+	def_bool y
+	depends on CFG80211_WEXT || WIRELESS_EXT
 
 config CFG80211
 	tristate "cfg80211 - wireless configuration API"