Re: [PATCH] refactor wireless Kconfig

2007-04-23 Thread Stefano Brivio
On Mon, 23 Apr 2007 14:34:43 -0400
"John W. Linville" <[EMAIL PROTECTED]> wrote:

> -comment "Obsolete Wireless cards support (pre-802.11)"
> - depends on NET_RADIO && (INET || ISA || PCMCIA)
> +   This option does not affect the kernel build, it only
> +   let's you choose drivers.
  ^

> +config WLAN_80211
> + bool "Wireless LAN (IEEE 802.11)"
> + depends on NETDEVICES
> + ---help---
> +   Say Y if you have any 802.11 wireless LAN hardware.
> +
> +   This option does not affect the kernel build, it only
> +   let's you choose drivers.
  ^

--
Ciao
Stefano
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] refactor wireless Kconfig

2007-04-23 Thread John W. Linville
From: Johannes Berg <[EMAIL PROTECTED]>

This patch refactors the wireless Kconfig all over and already
introduces net/wireless/Kconfig with just the WEXT bit for now,
the cfg80211 patch will add to that as well.

Signed-off-by: Johannes Berg <[EMAIL PROTECTED]>
Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/Makefile  |2 +-
 drivers/net/wireless/Kconfig  |  120 ++---
 drivers/net/wireless/bcm43xx/Kconfig  |3 +-
 drivers/net/wireless/hostap/Kconfig   |3 +-
 drivers/net/wireless/zd1211rw/Kconfig |3 +-
 net/Kconfig   |   11 ++-
 net/Makefile  |2 +
 net/ieee80211/Kconfig |3 +-
 net/wireless/Kconfig  |   23 ++
 net/wireless/Makefile |1 +
 10 files changed, 92 insertions(+), 79 deletions(-)
 create mode 100644 net/wireless/Kconfig
 create mode 100644 net/wireless/Makefile

diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index 33af833..5852732 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -206,7 +206,7 @@ obj-$(CONFIG_TR) += tokenring/
 obj-$(CONFIG_WAN) += wan/
 obj-$(CONFIG_ARCNET) += arcnet/
 obj-$(CONFIG_NET_PCMCIA) += pcmcia/
-obj-$(CONFIG_NET_RADIO) += wireless/
+obj-y += wireless/
 obj-$(CONFIG_NET_TULIP) += tulip/
 obj-$(CONFIG_HAMRADIO) += hamradio/
 obj-$(CONFIG_IRDA) += irda/
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig
index ece3d9c..880c628 100644
--- a/drivers/net/wireless/Kconfig
+++ b/drivers/net/wireless/Kconfig
@@ -2,47 +2,21 @@
 # Wireless LAN device configuration
 #
 
-menu "Wireless LAN (non-hamradio)"
-   depends on NETDEVICES
-
-config NET_RADIO
-   bool "Wireless LAN drivers (non-hamradio) & Wireless Extensions"
-   select WIRELESS_EXT
-   ---help---
- Support for wireless LANs and everything having to do with radio,
- but not with amateur radio or FM broadcasting.
-
- Saying Y here also enables the Wireless Extensions (creates
- /proc/net/wireless and enables iwconfig access). The Wireless
- Extension is a generic API allowing a driver to expose to the user
- space configuration and statistics specific to common Wireless LANs.
- The beauty of it is that a single set of tool can support all the
- variations of Wireless LANs, regardless of their type (as long as
- the driver supports Wireless Extension). Another advantage is that
- these parameters may be changed on the fly without restarting the
- driver (or Linux). If you wish to use Wireless Extensions with
- wireless PCMCIA (PC-) cards, you need to say Y here; you can fetch
- the tools from
- .
+menu "Wireless LAN"
 
-config NET_WIRELESS_RTNETLINK
-   bool "Wireless Extension API over RtNetlink"
-   depends on NET_RADIO
+config WLAN_PRE80211
+   bool "Wireless LAN (pre-802.11)"
+   depends on NETDEVICES
---help---
- Support the Wireless Extension API over the RtNetlink socket
- in addition to the traditional ioctl interface (selected above).
+ Say Y if you have any pre-802.11 wireless LAN hardware.
 
- For now, few tools use this facility, but it might grow in the
- future. The only downside is that it adds 4.5 kB to your kernel.
-
-# Note : the cards are obsolete (can't buy them anymore), but the drivers
-# are not, as people are still using them...
-comment "Obsolete Wireless cards support (pre-802.11)"
-   depends on NET_RADIO && (INET || ISA || PCMCIA)
+ This option does not affect the kernel build, it only
+ let's you choose drivers.
 
 config STRIP
tristate "STRIP (Metricom starmode radio IP)"
-   depends on NET_RADIO && INET
+   depends on INET && WLAN_PRE80211
+   select WIRELESS_EXT
---help---
  Say Y if you have a Metricom radio and intend to use Starmode Radio
  IP. STRIP is a radio protocol developed for the MosquitoNet project
@@ -65,7 +39,8 @@ config STRIP
 
 config ARLAN
tristate "Aironet Arlan 655 & IC2200 DS support"
-   depends on NET_RADIO && ISA && !64BIT
+   depends on ISA && !64BIT && WLAN_PRE80211
+   select WIRELESS_EXT
---help---
  Aironet makes Arlan, a class of wireless LAN adapters. These use the
  www.Telxon.com chip, which is also used on several similar cards.
@@ -80,7 +55,8 @@ config ARLAN
 
 config WAVELAN
tristate "AT&T/Lucent old WaveLAN & DEC RoamAbout DS ISA support"
-   depends on NET_RADIO && ISA
+   depends on ISA && WLAN_PRE80211
+   select WIRELESS_EXT
---help---
  The Lucent WaveLAN (formerly NCR and AT&T; or DEC RoamAbout DS) is
  a Radio LAN (wireless Ethernet-like Local Area Network) using the
@@ -107,7 +83,8 @@ config WAVELAN
 
 config P