Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5300680ybe; Tue, 10 Sep 2019 01:20:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeGnFiC8g0iocCHD0g0EQUgaxgIPSCbz9aAc3uLUY7GFD47YsX02y8uKE6sDxa/978dhOF X-Received: by 2002:a17:906:480b:: with SMTP id w11mr23698648ejq.137.1568103648109; Tue, 10 Sep 2019 01:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568103648; cv=none; d=google.com; s=arc-20160816; b=uDwmEYZkCb/0ryR8a96kXPn7wkfzlgWzfx3jlzLsGXMFAWd8jXyjbFY7gD+iJqskDb TzQx35JYS4nanp4DK+DKieOfCEp8Jk2SGnzI/eyIxZw5DrQdQfI+z1HUhl/wUA1liX/h HxfOoZ3jbmJJRtlpw6ldEwNE6PLk825LsOBbxZ1JDYtxnvPWNzOYQBckMBigK4Y51dKh Jv/WGeXr0RkpHja1rfwi/UHu3BiHX3E/9DjTn8rejn+A4N/FIYVsogvk1eXvN7HFKU6I spJiVr63/Q5PfZeGX+cCLpeD5N8bPasP4Rh0x4l6Ake2VgJXTzjjhN/Wfk/za4ORxPQ0 tO/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=lbfN6bb/Cab8FhmK5hvUyGyJpQngTjGaLYzqkqMwwaw=; b=PuiID2IdcBDI5mfrOmShxO5KgNT/l66YyekCFWJfoTeKUDl7ZFnOAdydcUkvFqESkf 8VNIF8Cw2QA28ETSzKuJXsNcD2OFiN5OyUn8E0h9SLiyzj7tpgItBFPiybfVtqgsoJoD z7AkdTKpyxzguvSVvrTBl58nDVK962cH8LXIMex9Lw8k3tCXzMJ+zQWg0pvoPLIEWECs 2iNzgn2rysCPxXw6fUUYb6nB4kRJy6F6AfWJG/eRXcm9SdR3tjvqRRjaSTxM24hzeYSt jWKcppyKibSvA6EJ3qH4ECYP4jW9XT2jRjBDSSIyFUcMiBZ3OqYFyyhjBZBEZp3YZ4C2 WA0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=EQ4hPfcz; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22si8730040ejr.377.2019.09.10.01.20.23; Tue, 10 Sep 2019 01:20:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=EQ4hPfcz; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbfIIOYc (ORCPT + 99 others); Mon, 9 Sep 2019 10:24:32 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39538 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725294AbfIIOYc (ORCPT ); Mon, 9 Sep 2019 10:24:32 -0400 Received: by mail-pl1-f195.google.com with SMTP id bd8so6588738plb.6 for ; Mon, 09 Sep 2019 07:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=lbfN6bb/Cab8FhmK5hvUyGyJpQngTjGaLYzqkqMwwaw=; b=EQ4hPfczVhylUYRlafgNbmIAVyWADkVHZnQxtGRIDwglF0ej4vEUlQs4ZeqXnwPEVT 2ItoFqyzus9e3C0nBj3hom99xV4k3T0CnheuBynGqH5sQvEQ34XAQhBwBybwtiIy3DG+ HFo0UykNjE7Ogp1fggKxfUNxUCAKcjjkDu/pIKDyQPDwrQnl584WWKljk91zf9jF9t5J UxmGqAlEc3+ie2cousgkn5X6twTsNaKVgxb19X0CRygS41KNfbTazoD6PnAzvMvCjZsx LwVP7Jkc348TE/OgZywMPCJfjkGWRz7YH79hq1nFdZgYockykF0oLyiXdECXQXnwNcbi Cjtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=lbfN6bb/Cab8FhmK5hvUyGyJpQngTjGaLYzqkqMwwaw=; b=nozWZGuwUfONbM786zpDg5tjyuWQFkkhHmOgOYoVef7H9fdQgALfF/hBo4K65Foseb lpR6c7OZoHSE8d74O/3il2MEqxE7JuFyBrXDu/QSqL0BgJXgez6dyUV9SlLYqvS/e4+8 sVGsev/ddKXEyCzrm6z6C5pUTSfro5o4g/pWl2H8p9Opah9gQEv4haErUYHTYjOar4wn Qx+iRGS9TTCxGwZMeNjeOq2Pk1efmNKtFOZXoGqtE5FSM/Ft10qto/QQG1mCefnHjD7m nJ/q4TITdxEyyPAM1sFfTWHgQQfrDUewzfbmATCanLpksZ83Tr1y8hdUTf3UCMSRo2Iq Vk2A== X-Gm-Message-State: APjAAAVyROumnyq72BBgVwQGWplz0+Ep4gokCO85i6wwvOkMCS5Z7Pq0 9p9mi+CfOtIErQvZoG88Wszm7DsOSzvSNQ== X-Received: by 2002:a17:902:a615:: with SMTP id u21mr23375821plq.4.1568039071132; Mon, 09 Sep 2019 07:24:31 -0700 (PDT) Received: from nebulus.mtv.corp.google.com ([2620:15c:211:200:5404:91ba:59dc:9400]) by smtp.googlemail.com with ESMTPSA id z21sm16010682pfn.183.2019.09.09.07.24.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Sep 2019 07:24:30 -0700 (PDT) Subject: Re: [PATCH v2] net: enable wireless core features with LEGACY_WEXT_ALLCONFIG To: Greg KH Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, Johannes Berg , "David S. Miller" , Marcel Holtmann , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, stable@vger.kernel.org References: <20190906192403.195620-1-salyzyn@android.com> <20190906233045.GB9478@kroah.com> From: Mark Salyzyn Message-ID: Date: Mon, 9 Sep 2019 07:24:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190906233045.GB9478@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 9/6/19 4:30 PM, Greg KH wrote: > On Fri, Sep 06, 2019 at 12:24:00PM -0700, Mark Salyzyn wrote: >> 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 >> -- >> 2.23.0.187.g17f5b7556c-goog >> > How is this patch applicable to stable kernels??? A) worth a shot ;-} B) there is a shortcoming in _all_ kernel versions with respect to hidden configurations options like this, hoping to set one precedent in how to handle them if acceptable to the community. C) [AGENDA ALERT] Android _will_ be back-porting this to android-4.19 kernel anyway, would help maintenance if via stable. D) Not an ABI or interface break, does not introduce instability, but rather keeps downstream kernels of any distributions from having to hack in their own alternate means of dealing with this problem leading to further fragmentation. E) Timely discussion item for LPC? Sincerely -- Mark Salyzyn