From patchwork Thu Apr 4 16:01:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang YanQing X-Patchwork-Id: 233872 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 552852C00A4 for ; Fri, 5 Apr 2013 03:02:09 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762539Ab3DDQBo (ORCPT ); Thu, 4 Apr 2013 12:01:44 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:41470 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761807Ab3DDQBm (ORCPT ); Thu, 4 Apr 2013 12:01:42 -0400 Received: by mail-pa0-f49.google.com with SMTP id kp14so1561526pab.36 for ; Thu, 04 Apr 2013 09:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:mail-followup-to :mime-version:content-type:content-disposition:user-agent; bh=GUosC6IcLouosnSj/X9nGfNvj3/e1mna7crDcmkYLmI=; b=Dq+lPDKV50bhZ64zoybEct0qWMl26TE1E/pio4mxe04P7CLL6e8QIwVF/ck54cbeoa VfxnGMkV/e0tiF3yy4ZhCrcbsqd2GmYC+6CgPk0pm82nrCVK9krPOI+PA5GOYD1g+Tj1 wvWCr0hngH5Sa9sYRM/fhHn59Uc1jNQYA/8YA5QPQSclEpMpSOMr7ZCvgwby+AD7Hmwj uIW0zlL9xgbGy9TlVf0ODH+03voan5SAIhOw9xvQVKmHNp/vi2xPYmUiWqbiRjRDHl0G uKQkz4TZ3z9RDl/MaSefYCsSr53IZ7UMwvYDWlVZtlyYmcNxPMZNCHLIj2pcwF07HAJb DRvg== X-Received: by 10.66.82.132 with SMTP id i4mr10111521pay.172.1365091302030; Thu, 04 Apr 2013 09:01:42 -0700 (PDT) Received: from udknight.localhost ([218.66.126.118]) by mx.google.com with ESMTPS id wl14sm11966311pac.18.2013.04.04.09.01.38 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Apr 2013 09:01:40 -0700 (PDT) Received: from udknight.localhost (udknight.localhost [127.0.0.1]) by udknight.localhost (8.14.4/8.14.4) with ESMTP id r34G1Vmr002812; Fri, 5 Apr 2013 00:01:31 +0800 Received: (from root@localhost) by udknight.localhost (8.14.4/8.14.4/Submit) id r34G1Uqn002809; Fri, 5 Apr 2013 00:01:30 +0800 Date: Fri, 5 Apr 2013 00:01:30 +0800 From: Wang YanQing To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] lib80211: make lib80211 can be enabled independently Message-ID: <20130404160130.GA2577@udknight> Mail-Followup-To: Wang YanQing , johannes@sipsolutions.net, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Current we can only enable lib80211 by enable a driver in tree use it which will select it, but some out tree's drivers also use it, so I think it has sense to make lib80211 can be enabled independently. A example of the out tree's drivers use lib80211 is: hybird driver(wl) for Broadcom Corporation BCM43225 802.11b/g/n Signed-off-by: Wang YanQing --- net/wireless/Kconfig | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig index 16d08b3..6e83f0a 100644 --- a/net/wireless/Kconfig +++ b/net/wireless/Kconfig @@ -140,22 +140,34 @@ config CFG80211_WEXT extensions with cfg80211-based drivers. config LIB80211 - tristate + tristate "common routines used by IEEE802.11 wireless LAN drivers" default n help This options enables a library of common routines used by IEEE802.11 wireless LAN drivers. - Drivers should select this themselves if needed. + Drivers could select this themselves if needed. config LIB80211_CRYPT_WEP - tristate + tristate "host-based WEP encryption implementation for lib80211" + depends on LIB80211 + default n + ---help--- + host-based WEP encryption implementation for lib80211 config LIB80211_CRYPT_CCMP - tristate + tristate "host-based CCMP encryption implementation for lib80211" + depends on LIB80211 + default n + ---help--- + host-based CCMP encryption implementation for lib80211 config LIB80211_CRYPT_TKIP - tristate + tristate "host-based TKIP encryption implementation for lib80211" + depends on LIB80211 + default n + ---help--- + host-based TKIP encryption implementation for lib80211 config LIB80211_DEBUG bool "lib80211 debugging messages"