Skip to contentSkip to conversation

net: enable wireless core features with WIRELESS_ALLCONFIG

PATCH Superseded Mark Salyzyn 2 participants 2 messages Sep 6, 2019

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: enable wireless core features with WIRELESS_ALLCONFIG

In embedded environments the requirements are to be able to pick and chose which features one requires built into the kernel. If an embedded environment wants to supports loading modules that have been kbuilt out of tree, there is a need to enable hidden configurations for core features to provide the API surface for them to load.

Introduce CONFIG_WIRELESS_ALLCONFIG to select all wireless core features by activating all the hidden configuration options, without having to specifically select any wireless module(s).

---
 net/wireless/Kconfig | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
net/wireless/Kconfig +14 -0
index 67f8360dfcee..0d32350e1729 100644
@@ -17,6 +17,20 @@ config WEXT_SPY
 config WEXT_PRIV
 	bool
 
+config WIRELESS_ALLCONFIG
+	bool "allconfig for wireless core"
+	select WIRELESS_EXT
+	select WEXT_CORE
+	select WEXT_PROC
+	select WEXT_SPY
+	select WEXT_PRIV
+	help
+	  Config option used to enable all the wireless core functionality
+	  used by modules.
+
+	  If you are not building a kernel to be used for a variety of
+	  out-of-kernel built wireless modules, say N here.
+
 config CFG80211
 	tristate "cfg80211 - wireless configuration API"
 	depends on RFKILL || !RFKILL
Signature · 1 line
2.23.0.187.g17f5b7556c-goog
#1 lore raw

Hi Mark,

Quoted 34 lines

In embedded environments the requirements are to be able to pick and chose which features one requires built into the kernel. If an embedded environment wants to supports loading modules that have been kbuilt out of tree, there is a need to enable hidden configurations for core features to provide the API surface for them to load.

Introduce CONFIG_WIRELESS_ALLCONFIG to select all wireless core features by activating all the hidden configuration options, without having to specifically select any wireless module(s).

---
net/wireless/Kconfig | 14 ++++++++++++++

1 file changed, 14 insertions(+)
net/wireless/Kconfig +0 -0
index 67f8360dfcee..0d32350e1729 100644
@@ -17,6 +17,20 @@ config WEXT_SPY

config WEXT_PRIV
bool

net/wireless/Kconfig +4 -0
+config WIRELESS_ALLCONFIG
+	bool "allconfig for wireless core"
+	select WIRELESS_EXT
+	select WEXT_CORE

net/wireless/Kconfig config WEXT_SPY · line 33

Quoted 10 lines
net/wireless/Kconfig +10 -0
+	select WEXT_PROC
+	select WEXT_SPY
+	select WEXT_PRIV
+	help
+	  Config option used to enable all the wireless core functionality
+	  used by modules.
+
+	  If you are not building a kernel to be used for a variety of
+	  out-of-kernel built wireless modules, say N here.
+

this looks rather legacy Wireless Extension (wext) specific. So it might be better to clearly name the option “legacy” and “wext” to not confuse anybody running an actual modern driver and userspace.

Regards

Marcel