From patchwork Fri Sep 6 19:24:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Salyzyn X-Patchwork-Id: 11135901 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 912CD1398 for ; Fri, 6 Sep 2019 19:24:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7310E2173E for ; Fri, 6 Sep 2019 19:24:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=android.com header.i=@android.com header.b="EvVkZs2J" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392993AbfIFTYM (ORCPT ); Fri, 6 Sep 2019 15:24:12 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38426 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391133AbfIFTYK (ORCPT ); Fri, 6 Sep 2019 15:24:10 -0400 Received: by mail-pf1-f195.google.com with SMTP id h195so5159965pfe.5 for ; Fri, 06 Sep 2019 12:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=no7kS2T1qNHP9Zpdwy1E09Unjz4x2T2LCFjYktICQgk=; b=EvVkZs2J1AZ9GTp9kf0rnbiW9t2ITXImmd49lXjLrxM2btzrl5yd/T4Hcqo/dKLr6y Q5j5C5pCfxhbgmewV0/bNfJQ11TPyEMOE3jrODvA82aEojWf9Qagh/WFcF6vaHbvq6Pv ev3h/NdCyySH/YJt+JjM3K4bz5MFm47zXRTobzyogztVYzdQs9Ly0u15OSUf5Lk/j6SB RG9fVhihQPPSJt2EGqZ3gtgMX2daLtUNhaDhavGZdofleGMAejroOkOi4OGSv8cP+w2i XxbWLbE+QmfgowhG25brlvJTcvLuXFDfSOxclhU2h1c30ee7cuEd8IGt1UjKfFDGlYwa Rd3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=no7kS2T1qNHP9Zpdwy1E09Unjz4x2T2LCFjYktICQgk=; b=dvvZqHLMJZdmkcABg7A+2vIjg0+frBHoDED65ctWNsAI9imoKBPmMA5rZS5Fps0+l8 czpo7uVD1TNoc1gD5Nc37Y53d7t7GcBzTx4n/PPJuXPTVjgyQaBX/QUNdTRDm7cTUvKK li41VJCj5YUO1dzhHrdoZP54zo8rXIXFZf4abpIOkNmCK9k5jOTB2Fk5Q4U89X6dZsNg m9YD4VzlXEEjrTXuiN86/tIj3C1LZC9bIlcx0U01WuKfEICyG5JQfzcituzmMGI2TTd5 EHqWQ3RHOqbbTTrH4KnAzTyx8BSMEy6avd6QtLegebM9drfD/56og7pud7BdFKTNtRU0 Z2VQ== X-Gm-Message-State: APjAAAVUd5teLdPky4ODVAArXVxX3DA7At8km9cYIGkzCSAlRejzrHAO ES9BWGoMkQG5y5AWcoAufXG/lA== X-Google-Smtp-Source: APXvYqxHNghJveR3zrEVoimn0Wso+4JUVbYfHGnGsGo9B8NC/uWVASyxOZhZvPVLoA9ALyNt2tAvJw== X-Received: by 2002:a65:64c5:: with SMTP id t5mr9650538pgv.168.1567797849694; Fri, 06 Sep 2019 12:24:09 -0700 (PDT) Received: from nebulus.mtv.corp.google.com ([2620:15c:211:200:5404:91ba:59dc:9400]) by smtp.gmail.com with ESMTPSA id b24sm7024169pfi.75.2019.09.06.12.24.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2019 12:24:09 -0700 (PDT) From: Mark Salyzyn To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, Mark Salyzyn , Johannes Berg , "David S. Miller" , Marcel Holtmann , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v2] net: enable wireless core features with LEGACY_WEXT_ALLCONFIG Date: Fri, 6 Sep 2019 12:24:00 -0700 Message-Id: <20190906192403.195620-1-salyzyn@android.com> X-Mailer: git-send-email 2.23.0.187.g17f5b7556c-goog MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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_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). Signed-off-by: Mark Salyzyn Cc: kernel-team@android.com Cc: Johannes Berg Cc: "David S. Miller" Cc: Marcel Holtmann Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org # 4.19 --- v2: change name and documentation to CONFIG_LEGACY_WEXT_ALLCONFIG --- net/wireless/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig index 67f8360dfcee..0d646cf28de5 100644 --- a/net/wireless/Kconfig +++ b/net/wireless/Kconfig @@ -17,6 +17,20 @@ config WEXT_SPY config WEXT_PRIV bool +config LEGACY_WEXT_ALLCONFIG + bool "allconfig for legacy wireless extensions" + select WIRELESS_EXT + select WEXT_CORE + select WEXT_PROC + select WEXT_SPY + select WEXT_PRIV + help + Config option used to enable all the legacy wireless extensions to + the core 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 CFG80211 tristate "cfg80211 - wireless configuration API" depends on RFKILL || !RFKILL