From af38fd31201c8767c203806f21640a35e3d9ce69 Mon Sep 17 00:00:00 2001 From: Chun-Hung Wu Date: Fri, 28 Aug 2020 16:29:51 +0800 Subject: [PATCH] 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 c2f96db0774788ec56b8bd488e0938e896cffd31. (rejected upstream commit url https://lkml.org/lkml/2019/9/6/878) Bug: 140250271 Signed-off-by: Chun-Hung Wu Change-Id: I7ca31317df82cf3a349ba6cc2dc42c37090625be Signed-off-by: Mark Salyzyn --- init/Kconfig.gki | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/init/Kconfig.gki b/init/Kconfig.gki index 996132481ad1..53bfd9fcc311 100644 --- a/init/Kconfig.gki +++ b/init/Kconfig.gki @@ -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