ANDROID: net: enable wireless core features with GKI_LEGACY_WEXT_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 legacy wireless core features to provide the API surface for
them to load.

Introduce CONFIG_GKI_LEGACY_WEXT_ALLCONFIG to select all legacy wireless
extension core features by activating in turn all the associated
hidden configuration options, without having to specifically select
any wireless module(s).

This reverts commit c2f96db077.
(rejected upstream commit url https://lkml.org/lkml/2019/9/6/878)
Bug: 140250271
Signed-off-by: Chun-Hung Wu <[email protected]>
Change-Id: I7ca31317df82cf3a349ba6cc2dc42c37090625be
Signed-off-by: Mark Salyzyn <[email protected]>
This commit is contained in:
Chun-Hung Wu 2020-08-28 16:29:51 +08:00 • committed by Mark Salyzyn
commit af38fd3120

View file

@ -103,6 +103,23 @@ config GKI_HIDDEN_VIRTUAL_CONFIGS
These are normally selected implicitly when a module
that relies on it is configured.
# LEGACY_WEXT_ALLCONFIG Discussed upstream, soundly rejected as a unique
# problem for GKI to solve. It should be noted that these extensions are
# in-effect deprecated and generally unsupported and we should pressure
# the SOC vendors to drop any modules that require these extensions.
config GKI_LEGACY_WEXT_ALLCONFIG
bool "Hidden wireless extension configs needed for GKI"
select WIRELESS_EXT
select WEXT_CORE
select WEXT_PROC
select WEXT_SPY
select WEXT_PRIV
help
Placeholder config option used to enable all the hidden legacy
wireless extensions to the core wireless network functionality used
by add-in 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 GKI_HIDDEN_USB_CONFIGS
bool "Hiddel USB configurations needed for GKI"
select USB_PHY
@ -176,6 +193,7 @@ config GKI_HACKS_TO_FIX
select GKI_HIDDEN_MMC_CONFIGS
select GKI_HIDDEN_GPIO_CONFIGS
select GKI_HIDDEN_QCOM_CONFIGS
select GKI_LEGACY_WEXT_ALLCONFIG
select GKI_HIDDEN_MEDIA_CONFIGS
select GKI_HIDDEN_VIRTUAL_CONFIGS
select GKI_HIDDEN_USB_CONFIGS