Skip to content

Commit 2a5e1c0

Browse files
jmbergDavid S. Miller
authored andcommitted
[WIRELESS]: Refactor wireless Kconfig.
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 <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 724c6b3 commit 2a5e1c0

10 files changed

Lines changed: 92 additions & 79 deletions

File tree

‎drivers/net/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ obj-$(CONFIG_TR) += tokenring/
206206
obj-$(CONFIG_WAN) += wan/
207207
obj-$(CONFIG_ARCNET) += arcnet/
208208
obj-$(CONFIG_NET_PCMCIA) += pcmcia/
209-
obj-$(CONFIG_NET_RADIO) += wireless/
209+
obj-y += wireless/
210210
obj-$(CONFIG_NET_TULIP) += tulip/
211211
obj-$(CONFIG_HAMRADIO) += hamradio/
212212
obj-$(CONFIG_IRDA) += irda/

‎drivers/net/wireless/Kconfig‎

Lines changed: 50 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,21 @@
22
# Wireless LAN device configuration
33
#
44

5-
menu "Wireless LAN (non-hamradio)"
6-
depends on NETDEVICES
7-
8-
config NET_RADIO
9-
bool "Wireless LAN drivers (non-hamradio) & Wireless Extensions"
10-
select WIRELESS_EXT
11-
---help---
12-
Support for wireless LANs and everything having to do with radio,
13-
but not with amateur radio or FM broadcasting.
14-
15-
Saying Y here also enables the Wireless Extensions (creates
16-
/proc/net/wireless and enables iwconfig access). The Wireless
17-
Extension is a generic API allowing a driver to expose to the user
18-
space configuration and statistics specific to common Wireless LANs.
19-
The beauty of it is that a single set of tool can support all the
20-
variations of Wireless LANs, regardless of their type (as long as
21-
the driver supports Wireless Extension). Another advantage is that
22-
these parameters may be changed on the fly without restarting the
23-
driver (or Linux). If you wish to use Wireless Extensions with
24-
wireless PCMCIA (PC-) cards, you need to say Y here; you can fetch
25-
the tools from
26-
<http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html>.
5+
menu "Wireless LAN"
276

28-
config NET_WIRELESS_RTNETLINK
29-
bool "Wireless Extension API over RtNetlink"
30-
depends on NET_RADIO
7+
config WLAN_PRE80211
8+
bool "Wireless LAN (pre-802.11)"
9+
depends on NETDEVICES
3110
---help---
32-
Support the Wireless Extension API over the RtNetlink socket
33-
in addition to the traditional ioctl interface (selected above).
11+
Say Y if you have any pre-802.11 wireless LAN hardware.
3412

35-
For now, few tools use this facility, but it might grow in the
36-
future. The only downside is that it adds 4.5 kB to your kernel.
37-
38-
# Note : the cards are obsolete (can't buy them anymore), but the drivers
39-
# are not, as people are still using them...
40-
comment "Obsolete Wireless cards support (pre-802.11)"
41-
depends on NET_RADIO && (INET || ISA || PCMCIA)
13+
This option does not affect the kernel build, it only
14+
let's you choose drivers.
4215

4316
config STRIP
4417
tristate "STRIP (Metricom starmode radio IP)"
45-
depends on NET_RADIO && INET
18+
depends on INET && WLAN_PRE80211
19+
select WIRELESS_EXT
4620
---help---
4721
Say Y if you have a Metricom radio and intend to use Starmode Radio
4822
IP. STRIP is a radio protocol developed for the MosquitoNet project
@@ -65,7 +39,8 @@ config STRIP
6539

6640
config ARLAN
6741
tristate "Aironet Arlan 655 & IC2200 DS support"
68-
depends on NET_RADIO && ISA && !64BIT
42+
depends on ISA && !64BIT && WLAN_PRE80211
43+
select WIRELESS_EXT
6944
---help---
7045
Aironet makes Arlan, a class of wireless LAN adapters. These use the
7146
www.Telxon.com chip, which is also used on several similar cards.
@@ -80,7 +55,8 @@ config ARLAN
8055

8156
config WAVELAN
8257
tristate "AT&T/Lucent old WaveLAN & DEC RoamAbout DS ISA support"
83-
depends on NET_RADIO && ISA
58+
depends on ISA && WLAN_PRE80211
59+
select WIRELESS_EXT
8460
---help---
8561
The Lucent WaveLAN (formerly NCR and AT&T; or DEC RoamAbout DS) is
8662
a Radio LAN (wireless Ethernet-like Local Area Network) using the
@@ -107,7 +83,8 @@ config WAVELAN
10783

10884
config PCMCIA_WAVELAN
10985
tristate "AT&T/Lucent old WaveLAN Pcmcia wireless support"
110-
depends on NET_RADIO && PCMCIA
86+
depends on PCMCIA && WLAN_PRE80211
87+
select WIRELESS_EXT
11188
help
11289
Say Y here if you intend to attach an AT&T/Lucent Wavelan PCMCIA
11390
(PC-card) wireless Ethernet networking card to your computer. This
@@ -118,20 +95,29 @@ config PCMCIA_WAVELAN
11895

11996
config PCMCIA_NETWAVE
12097
tristate "Xircom Netwave AirSurfer Pcmcia wireless support"
121-
depends on NET_RADIO && PCMCIA
98+
depends on PCMCIA && WLAN_PRE80211
99+
select WIRELESS_EXT
122100
help
123101
Say Y here if you intend to attach this type of PCMCIA (PC-card)
124102
wireless Ethernet networking card to your computer.
125103

126104
To compile this driver as a module, choose M here: the module will be
127105
called netwave_cs. If unsure, say N.
128106

129-
comment "Wireless 802.11 Frequency Hopping cards support"
130-
depends on NET_RADIO && PCMCIA
107+
108+
config WLAN_80211
109+
bool "Wireless LAN (IEEE 802.11)"
110+
depends on NETDEVICES
111+
---help---
112+
Say Y if you have any 802.11 wireless LAN hardware.
113+
114+
This option does not affect the kernel build, it only
115+
let's you choose drivers.
131116

132117
config PCMCIA_RAYCS
133118
tristate "Aviator/Raytheon 2.4MHz wireless support"
134-
depends on NET_RADIO && PCMCIA
119+
depends on PCMCIA && WLAN_80211
120+
select WIRELESS_EXT
135121
---help---
136122
Say Y here if you intend to attach an Aviator/Raytheon PCMCIA
137123
(PC-card) wireless Ethernet networking card to your computer.
@@ -141,12 +127,10 @@ config PCMCIA_RAYCS
141127
To compile this driver as a module, choose M here: the module will be
142128
called ray_cs. If unsure, say N.
143129

144-
comment "Wireless 802.11b ISA/PCI cards support"
145-
depends on NET_RADIO && (ISA || PCI || PPC_PMAC || PCMCIA)
146-
147130
config IPW2100
148131
tristate "Intel PRO/Wireless 2100 Network Connection"
149-
depends on NET_RADIO && PCI
132+
depends on PCI && WLAN_80211
133+
select WIRELESS_EXT
150134
select FW_LOADER
151135
select IEEE80211
152136
---help---
@@ -200,7 +184,8 @@ config IPW2100_DEBUG
200184

201185
config IPW2200
202186
tristate "Intel PRO/Wireless 2200BG and 2915ABG Network Connection"
203-
depends on NET_RADIO && PCI
187+
depends on PCI && WLAN_80211
188+
select WIRELESS_EXT
204189
select FW_LOADER
205190
select IEEE80211
206191
---help---
@@ -282,7 +267,8 @@ config IPW2200_DEBUG
282267

283268
config AIRO
284269
tristate "Cisco/Aironet 34X/35X/4500/4800 ISA and PCI cards"
285-
depends on NET_RADIO && ISA_DMA_API && (PCI || BROKEN)
270+
depends on ISA_DMA_API && WLAN_80211 && (PCI || BROKEN)
271+
select WIRELESS_EXT
286272
select CRYPTO
287273
---help---
288274
This is the standard Linux driver to support Cisco/Aironet ISA and
@@ -299,7 +285,8 @@ config AIRO
299285

300286
config HERMES
301287
tristate "Hermes chipset 802.11b support (Orinoco/Prism2/Symbol)"
302-
depends on NET_RADIO && (PPC_PMAC || PCI || PCMCIA)
288+
depends on (PPC_PMAC || PCI || PCMCIA) && WLAN_80211
289+
select WIRELESS_EXT
303290
---help---
304291
A driver for 802.11b wireless cards based on the "Hermes" or
305292
Intersil HFA384x (Prism 2) MAC controller. This includes the vast
@@ -373,7 +360,8 @@ config PCI_HERMES
373360

374361
config ATMEL
375362
tristate "Atmel at76c50x chipset 802.11b support"
376-
depends on NET_RADIO && (PCI || PCMCIA)
363+
depends on (PCI || PCMCIA) && WLAN_80211
364+
select WIRELESS_EXT
377365
select FW_LOADER
378366
select CRC32
379367
---help---
@@ -394,13 +382,9 @@ config PCI_ATMEL
394382
Enable support for PCI and mini-PCI cards containing the
395383
Atmel at76c506 chip.
396384

397-
# If Pcmcia is compiled in, offer Pcmcia cards...
398-
comment "Wireless 802.11b Pcmcia/Cardbus cards support"
399-
depends on NET_RADIO && PCMCIA
400-
401385
config PCMCIA_HERMES
402386
tristate "Hermes PCMCIA card support"
403-
depends on NET_RADIO && PCMCIA && HERMES
387+
depends on PCMCIA && HERMES
404388
---help---
405389
A driver for "Hermes" chipset based PCMCIA wireless adaptors, such
406390
as the Lucent WavelanIEEE/Orinoco cards and their OEM (Cabletron/
@@ -420,7 +404,7 @@ config PCMCIA_HERMES
420404

421405
config PCMCIA_SPECTRUM
422406
tristate "Symbol Spectrum24 Trilogy PCMCIA card support"
423-
depends on NET_RADIO && PCMCIA && HERMES
407+
depends on PCMCIA && HERMES
424408
select FW_LOADER
425409
---help---
426410

@@ -434,7 +418,8 @@ config PCMCIA_SPECTRUM
434418

435419
config AIRO_CS
436420
tristate "Cisco/Aironet 34X/35X/4500/4800 PCMCIA cards"
437-
depends on NET_RADIO && PCMCIA && (BROKEN || !M32R)
421+
depends on PCMCIA && (BROKEN || !M32R) && WLAN_80211
422+
select WIRELESS_EXT
438423
select CRYPTO
439424
select CRYPTO_AES
440425
---help---
@@ -458,7 +443,8 @@ config AIRO_CS
458443

459444
config PCMCIA_ATMEL
460445
tristate "Atmel at76c502/at76c504 PCMCIA cards"
461-
depends on NET_RADIO && ATMEL && PCMCIA
446+
depends on ATMEL && PCMCIA
447+
select WIRELESS_EXT
462448
select FW_LOADER
463449
select CRC32
464450
---help---
@@ -467,17 +453,17 @@ config PCMCIA_ATMEL
467453

468454
config PCMCIA_WL3501
469455
tristate "Planet WL3501 PCMCIA cards"
470-
depends on NET_RADIO && EXPERIMENTAL && PCMCIA
456+
depends on EXPERIMENTAL && PCMCIA && WLAN_80211
457+
select WIRELESS_EXT
471458
---help---
472459
A driver for WL3501 PCMCIA 802.11 wireless cards made by Planet.
473460
It has basic support for Linux wireless extensions and initial
474461
micro support for ethtool.
475462

476-
comment "Prism GT/Duette 802.11(a/b/g) PCI/Cardbus support"
477-
depends on NET_RADIO && PCI
478463
config PRISM54
479464
tristate 'Intersil Prism GT/Duette/Indigo PCI/Cardbus'
480-
depends on PCI && NET_RADIO && EXPERIMENTAL
465+
depends on PCI && EXPERIMENTAL && WLAN_80211
466+
select WIRELESS_EXT
481467
select FW_LOADER
482468
---help---
483469
Enable PCI and Cardbus support for the following chipset based cards:
@@ -523,7 +509,8 @@ config PRISM54
523509

524510
config USB_ZD1201
525511
tristate "USB ZD1201 based Wireless device support"
526-
depends on USB && NET_RADIO
512+
depends on USB && WLAN_80211
513+
select WIRELESS_EXT
527514
select FW_LOADER
528515
---help---
529516
Say Y if you want to use wireless LAN adapters based on the ZyDAS
@@ -542,11 +529,4 @@ source "drivers/net/wireless/hostap/Kconfig"
542529
source "drivers/net/wireless/bcm43xx/Kconfig"
543530
source "drivers/net/wireless/zd1211rw/Kconfig"
544531

545-
# yes, this works even when no drivers are selected
546-
config NET_WIRELESS
547-
bool
548-
depends on NET_RADIO && (ISA || PCI || PPC_PMAC || PCMCIA)
549-
default y
550-
551532
endmenu
552-

‎drivers/net/wireless/bcm43xx/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
config BCM43XX
22
tristate "Broadcom BCM43xx wireless support"
3-
depends on PCI && IEEE80211 && IEEE80211_SOFTMAC && NET_RADIO && EXPERIMENTAL
3+
depends on PCI && IEEE80211 && IEEE80211_SOFTMAC && WLAN_80211 && EXPERIMENTAL
4+
select WIRELESS_EXT
45
select FW_LOADER
56
select HW_RANDOM
67
---help---

‎drivers/net/wireless/hostap/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
config HOSTAP
22
tristate "IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)"
3-
depends on NET_RADIO
3+
depends on WLAN_80211
4+
select WIRELESS_EXT
45
select IEEE80211
56
select IEEE80211_CRYPT_WEP
67
---help---

‎drivers/net/wireless/zd1211rw/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
config ZD1211RW
22
tristate "ZyDAS ZD1211/ZD1211B USB-wireless support"
3-
depends on USB && IEEE80211 && IEEE80211_SOFTMAC && NET_RADIO && EXPERIMENTAL
3+
depends on USB && IEEE80211_SOFTMAC && WLAN_80211 && EXPERIMENTAL
4+
select WIRELESS_EXT
45
select FW_LOADER
56
---help---
67
This is an experimental driver for the ZyDAS ZD1211/ZD1211B wireless

‎net/Kconfig‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,17 @@ endmenu
212212
source "net/ax25/Kconfig"
213213
source "net/irda/Kconfig"
214214
source "net/bluetooth/Kconfig"
215-
source "net/ieee80211/Kconfig"
216-
217-
config WIRELESS_EXT
218-
bool
219215

220216
config FIB_RULES
221217
bool
222218

219+
menu "Wireless"
220+
221+
source "net/wireless/Kconfig"
222+
source "net/ieee80211/Kconfig"
223+
224+
endmenu
225+
223226
endif # if NET
224227
endmenu # Networking
225228

‎net/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ obj-$(CONFIG_IUCV) += iucv/
5252
ifeq ($(CONFIG_NET),y)
5353
obj-$(CONFIG_SYSCTL) += sysctl_net.o
5454
endif
55+
56+
obj-y += wireless/

‎net/ieee80211/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ config IEEE80211_CRYPT_CCMP
5656

5757
config IEEE80211_CRYPT_TKIP
5858
tristate "IEEE 802.11i TKIP encryption"
59-
depends on IEEE80211 && NET_RADIO
59+
depends on IEEE80211
60+
select WIRELESS_EXT
6061
select CRYPTO
6162
select CRYPTO_MICHAEL_MIC
6263
select CRYPTO_ECB

‎net/wireless/Kconfig‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
config WIRELESS_EXT
2+
bool "Wireless extensions"
3+
default n
4+
---help---
5+
This option enables the legacy wireless extensions
6+
(wireless network interface configuration via ioctls.)
7+
8+
Wireless extensions will be replaced by cfg80211 and
9+
will be required only by legacy drivers that implement
10+
wireless extension handlers.
11+
12+
Say N (if you can) unless you know you need wireless
13+
extensions for external modules.
14+
15+
config NET_WIRELESS_RTNETLINK
16+
bool "Wireless Extension API over RtNetlink"
17+
depends on WIRELESS_EXT
18+
---help---
19+
Support the Wireless Extension API over the RtNetlink socket
20+
in addition to the traditional ioctl interface (selected above).
21+
22+
For now, few tools use this facility, but it might grow in the
23+
future. The only downside is that it adds 4.5 kB to your kernel.

‎net/wireless/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# dummy file for now

0 commit comments

Comments
 (0)