From patchwork Fri Sep 6 18:05:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Salyzyn X-Patchwork-Id: 11135767 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 C152E15E6 for ; Fri, 6 Sep 2019 18:06:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 97CA020644 for ; Fri, 6 Sep 2019 18:06:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=android.com header.i=@android.com header.b="KYxNmbyK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404290AbfIFSGE (ORCPT ); Fri, 6 Sep 2019 14:06:04 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:34926 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729790AbfIFSGA (ORCPT ); Fri, 6 Sep 2019 14:06:00 -0400 Received: by mail-pg1-f195.google.com with SMTP id n4so3919633pgv.2 for ; Fri, 06 Sep 2019 11:06:00 -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=p8V7F8KyP/+hxEP3mQzxR8zQvVH94st7p5AqUmIp58o=; b=KYxNmbyKb7HyYEXpPpjDcy/Dpd9jCTYKt/74keKiG2/HtRpP/uMNQTR5+Px2Vx+XET v3M9kvYTm7v7Au7BLwR9NgPNnRdvjymJcNFDAmCW3GGUJiIFPQi33CQCppw0DXIooxcZ B5RxsyCrpNrhM0AS8Fg3xiZDSBNNvKcYUxgZ6DMZi2zLsZ9hwqhAkjsY73zk2HS2RDW9 ap56YyunzImXHMO9e48SVwU8uYB83UK8Zhfy27jG7ZV/74z200v2ARAckKv5L7zAKhCb WkQO1K3tNZgfZqJlRjDp6+BFvEw4lrOD2MQxe4MG5PRrdn+FRJdCVZnzwgos5+FqJS0Y tDgw== 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=p8V7F8KyP/+hxEP3mQzxR8zQvVH94st7p5AqUmIp58o=; b=MfeKau9bdUY0fX0evVCEW0clYQYuvUB1b2qtPLjN9Q4EIjBTgTwRc2FxVI4V64ZSWU 6zUAbFZeDZypzOlhBc6WeB2G9wlbTcw2ioiMrNPB09w0qBvSo/edQaRJY7NSGlCYj2ns JbrrxjRDacOqRpEOdJ2vD6gL+WfzJZPZGslPApMXGdXdT0y5cggXnBwf1USIX3Qh9WvS TuEz+p/IkQmfvXuzAnJp1bFZFoEVFVecJFDT7zJwpCQHEHNx1xTRMzS/G8n5oQ8Jx+Yw a4FViuLrtgLdT8xM5K1XH4yoLPKbu11IBzL9MQGBpVClU4/y5yefWjpt6THePOySzVXt +KeA== X-Gm-Message-State: APjAAAWLZ7hy/6ZKFIyuYkW6E7MIl5LPUglXMBhMcq3Z2PBMJEBOdh76 LhZaeoHvCwwhldfUAafZIOb4Rg== X-Google-Smtp-Source: APXvYqz3R0KV2UoI6cPr+Bfc/NaNPL+NeUrRz64kO6R/9IPa6CJkQmQDFNK6q7XylojGJ0m1fgULUw== X-Received: by 2002:a62:60c7:: with SMTP id u190mr12406747pfb.54.1567793159283; Fri, 06 Sep 2019 11:05:59 -0700 (PDT) Received: from nebulus.mtv.corp.google.com ([2620:15c:211:200:5404:91ba:59dc:9400]) by smtp.gmail.com with ESMTPSA id b185sm8749287pfg.14.2019.09.06.11.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2019 11:05:58 -0700 (PDT) From: Mark Salyzyn To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, Mark Salyzyn , Johannes Berg , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH] net: enable wireless core features with WIRELESS_ALLCONFIG Date: Fri, 6 Sep 2019 11:05:45 -0700 Message-Id: <20190906180551.163714-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 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). Signed-off-by: Mark Salyzyn Cc: kernel-team@android.com Cc: Johannes Berg Cc: "David S. Miller" Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org # 4.19 --- net/wireless/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig index 67f8360dfcee..0d32350e1729 100644 --- a/net/wireless/Kconfig +++ b/net/wireless/Kconfig @@ -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