diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-09-29 17:27:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:43 -0400 |
commit | 3d23e349d807177eaf519d444677cee86b1a04cf (patch) | |
tree | e800dee247598e59185ddd2dd47d2ac6fe090b9c /drivers/net | |
parent | bc974f4a230756faf4f69114f271de2e678b363b (diff) |
wext: refactor
Refactor wext to
* split out iwpriv handling
* split out iwspy handling
* split out procfs support
* allow cfg80211 to have wireless extensions compat code
w/o CONFIG_WIRELESS_EXT
After this, drivers need to
- select WIRELESS_EXT - for wext support
- select WEXT_PRIV - for iwpriv support
- select WEXT_SPY - for iwspy support
except cfg80211 -- which gets new hooks in wext-core.c
and can then get wext handlers without CONFIG_WIRELESS_EXT.
Wireless extensions procfs support is auto-selected
based on PROC_FS and anything that requires the wext core
(i.e. WIRELESS_EXT or CFG80211_WEXT).
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/Kconfig | 29 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/Kconfig | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2x00/Kconfig | 5 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/Kconfig | 2 |
4 files changed, 31 insertions, 7 deletions
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig index d7a764a2fc1a..c9829c59fd98 100644 --- a/drivers/net/wireless/Kconfig +++ b/drivers/net/wireless/Kconfig | |||
@@ -67,6 +67,8 @@ config WAVELAN | |||
67 | tristate "AT&T/Lucent old WaveLAN & DEC RoamAbout DS ISA support" | 67 | tristate "AT&T/Lucent old WaveLAN & DEC RoamAbout DS ISA support" |
68 | depends on ISA && WLAN_PRE80211 | 68 | depends on ISA && WLAN_PRE80211 |
69 | select WIRELESS_EXT | 69 | select WIRELESS_EXT |
70 | select WEXT_SPY | ||
71 | select WEXT_PRIV | ||
70 | ---help--- | 72 | ---help--- |
71 | The Lucent WaveLAN (formerly NCR and AT&T; or DEC RoamAbout DS) is | 73 | The Lucent WaveLAN (formerly NCR and AT&T; or DEC RoamAbout DS) is |
72 | a Radio LAN (wireless Ethernet-like Local Area Network) using the | 74 | a Radio LAN (wireless Ethernet-like Local Area Network) using the |
@@ -90,6 +92,8 @@ config PCMCIA_WAVELAN | |||
90 | tristate "AT&T/Lucent old WaveLAN Pcmcia wireless support" | 92 | tristate "AT&T/Lucent old WaveLAN Pcmcia wireless support" |
91 | depends on PCMCIA && WLAN_PRE80211 | 93 | depends on PCMCIA && WLAN_PRE80211 |
92 | select WIRELESS_EXT | 94 | select WIRELESS_EXT |
95 | select WEXT_SPY | ||
96 | select WEXT_PRIV | ||
93 | help | 97 | help |
94 | Say Y here if you intend to attach an AT&T/Lucent Wavelan PCMCIA | 98 | Say Y here if you intend to attach an AT&T/Lucent Wavelan PCMCIA |
95 | (PC-card) wireless Ethernet networking card to your computer. This | 99 | (PC-card) wireless Ethernet networking card to your computer. This |
@@ -102,6 +106,7 @@ config PCMCIA_NETWAVE | |||
102 | tristate "Xircom Netwave AirSurfer Pcmcia wireless support" | 106 | tristate "Xircom Netwave AirSurfer Pcmcia wireless support" |
103 | depends on PCMCIA && WLAN_PRE80211 | 107 | depends on PCMCIA && WLAN_PRE80211 |
104 | select WIRELESS_EXT | 108 | select WIRELESS_EXT |
109 | select WEXT_PRIV | ||
105 | help | 110 | help |
106 | Say Y here if you intend to attach this type of PCMCIA (PC-card) | 111 | Say Y here if you intend to attach this type of PCMCIA (PC-card) |
107 | wireless Ethernet networking card to your computer. | 112 | wireless Ethernet networking card to your computer. |
@@ -123,6 +128,8 @@ config PCMCIA_RAYCS | |||
123 | tristate "Aviator/Raytheon 2.4GHz wireless support" | 128 | tristate "Aviator/Raytheon 2.4GHz wireless support" |
124 | depends on PCMCIA && WLAN_80211 | 129 | depends on PCMCIA && WLAN_80211 |
125 | select WIRELESS_EXT | 130 | select WIRELESS_EXT |
131 | select WEXT_SPY | ||
132 | select WEXT_PRIV | ||
126 | ---help--- | 133 | ---help--- |
127 | Say Y here if you intend to attach an Aviator/Raytheon PCMCIA | 134 | Say Y here if you intend to attach an Aviator/Raytheon PCMCIA |
128 | (PC-card) wireless Ethernet networking card to your computer. | 135 | (PC-card) wireless Ethernet networking card to your computer. |
@@ -136,6 +143,7 @@ config LIBERTAS | |||
136 | tristate "Marvell 8xxx Libertas WLAN driver support" | 143 | tristate "Marvell 8xxx Libertas WLAN driver support" |
137 | depends on WLAN_80211 | 144 | depends on WLAN_80211 |
138 | select WIRELESS_EXT | 145 | select WIRELESS_EXT |
146 | select WEXT_SPY | ||
139 | select LIB80211 | 147 | select LIB80211 |
140 | select FW_LOADER | 148 | select FW_LOADER |
141 | ---help--- | 149 | ---help--- |
@@ -190,6 +198,8 @@ config AIRO | |||
190 | depends on ISA_DMA_API && WLAN_80211 && (PCI || BROKEN) | 198 | depends on ISA_DMA_API && WLAN_80211 && (PCI || BROKEN) |
191 | select WIRELESS_EXT | 199 | select WIRELESS_EXT |
192 | select CRYPTO | 200 | select CRYPTO |
201 | select WEXT_SPY | ||
202 | select WEXT_PRIV | ||
193 | ---help--- | 203 | ---help--- |
194 | This is the standard Linux driver to support Cisco/Aironet ISA and | 204 | This is the standard Linux driver to support Cisco/Aironet ISA and |
195 | PCI 802.11 wireless cards. | 205 | PCI 802.11 wireless cards. |
@@ -207,6 +217,7 @@ config ATMEL | |||
207 | tristate "Atmel at76c50x chipset 802.11b support" | 217 | tristate "Atmel at76c50x chipset 802.11b support" |
208 | depends on (PCI || PCMCIA) && WLAN_80211 | 218 | depends on (PCI || PCMCIA) && WLAN_80211 |
209 | select WIRELESS_EXT | 219 | select WIRELESS_EXT |
220 | select WEXT_PRIV | ||
210 | select FW_LOADER | 221 | select FW_LOADER |
211 | select CRC32 | 222 | select CRC32 |
212 | ---help--- | 223 | ---help--- |
@@ -266,18 +277,21 @@ config AIRO_CS | |||
266 | Cisco Linux utilities can be used to configure the card. | 277 | Cisco Linux utilities can be used to configure the card. |
267 | 278 | ||
268 | config PCMCIA_WL3501 | 279 | config PCMCIA_WL3501 |
269 | tristate "Planet WL3501 PCMCIA cards" | 280 | tristate "Planet WL3501 PCMCIA cards" |
270 | depends on EXPERIMENTAL && PCMCIA && WLAN_80211 | 281 | depends on EXPERIMENTAL && PCMCIA && WLAN_80211 |
271 | select WIRELESS_EXT | 282 | select WIRELESS_EXT |
272 | ---help--- | 283 | select WEXT_SPY |
273 | A driver for WL3501 PCMCIA 802.11 wireless cards made by Planet. | 284 | help |
274 | It has basic support for Linux wireless extensions and initial | 285 | A driver for WL3501 PCMCIA 802.11 wireless cards made by Planet. |
275 | micro support for ethtool. | 286 | It has basic support for Linux wireless extensions and initial |
287 | micro support for ethtool. | ||
276 | 288 | ||
277 | config PRISM54 | 289 | config PRISM54 |
278 | tristate 'Intersil Prism GT/Duette/Indigo PCI/Cardbus (DEPRECATED)' | 290 | tristate 'Intersil Prism GT/Duette/Indigo PCI/Cardbus (DEPRECATED)' |
279 | depends on PCI && EXPERIMENTAL && WLAN_80211 | 291 | depends on PCI && EXPERIMENTAL && WLAN_80211 |
280 | select WIRELESS_EXT | 292 | select WIRELESS_EXT |
293 | select WEXT_SPY | ||
294 | select WEXT_PRIV | ||
281 | select FW_LOADER | 295 | select FW_LOADER |
282 | ---help--- | 296 | ---help--- |
283 | This enables support for FullMAC PCI/Cardbus prism54 devices. This | 297 | This enables support for FullMAC PCI/Cardbus prism54 devices. This |
@@ -300,6 +314,7 @@ config USB_ZD1201 | |||
300 | tristate "USB ZD1201 based Wireless device support" | 314 | tristate "USB ZD1201 based Wireless device support" |
301 | depends on USB && WLAN_80211 | 315 | depends on USB && WLAN_80211 |
302 | select WIRELESS_EXT | 316 | select WIRELESS_EXT |
317 | select WEXT_PRIV | ||
303 | select FW_LOADER | 318 | select FW_LOADER |
304 | ---help--- | 319 | ---help--- |
305 | Say Y if you want to use wireless LAN adapters based on the ZyDAS | 320 | Say Y if you want to use wireless LAN adapters based on the ZyDAS |
diff --git a/drivers/net/wireless/hostap/Kconfig b/drivers/net/wireless/hostap/Kconfig index c15db2293515..08f1e989653d 100644 --- a/drivers/net/wireless/hostap/Kconfig +++ b/drivers/net/wireless/hostap/Kconfig | |||
@@ -2,6 +2,8 @@ config HOSTAP | |||
2 | tristate "IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)" | 2 | tristate "IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)" |
3 | depends on WLAN_80211 | 3 | depends on WLAN_80211 |
4 | select WIRELESS_EXT | 4 | select WIRELESS_EXT |
5 | select WEXT_SPY | ||
6 | select WEXT_PRIV | ||
5 | select CRYPTO | 7 | select CRYPTO |
6 | select CRYPTO_ARC4 | 8 | select CRYPTO_ARC4 |
7 | select CRYPTO_ECB | 9 | select CRYPTO_ECB |
diff --git a/drivers/net/wireless/ipw2x00/Kconfig b/drivers/net/wireless/ipw2x00/Kconfig index a8131384c6b9..56fab79dc365 100644 --- a/drivers/net/wireless/ipw2x00/Kconfig +++ b/drivers/net/wireless/ipw2x00/Kconfig | |||
@@ -6,6 +6,8 @@ config IPW2100 | |||
6 | tristate "Intel PRO/Wireless 2100 Network Connection" | 6 | tristate "Intel PRO/Wireless 2100 Network Connection" |
7 | depends on PCI && WLAN_80211 && CFG80211 | 7 | depends on PCI && WLAN_80211 && CFG80211 |
8 | select WIRELESS_EXT | 8 | select WIRELESS_EXT |
9 | select WEXT_SPY | ||
10 | select WEXT_PRIV | ||
9 | select FW_LOADER | 11 | select FW_LOADER |
10 | select LIB80211 | 12 | select LIB80211 |
11 | select LIBIPW | 13 | select LIBIPW |
@@ -65,6 +67,8 @@ config IPW2200 | |||
65 | tristate "Intel PRO/Wireless 2200BG and 2915ABG Network Connection" | 67 | tristate "Intel PRO/Wireless 2200BG and 2915ABG Network Connection" |
66 | depends on PCI && WLAN_80211 && CFG80211 | 68 | depends on PCI && WLAN_80211 && CFG80211 |
67 | select WIRELESS_EXT | 69 | select WIRELESS_EXT |
70 | select WEXT_SPY | ||
71 | select WEXT_PRIV | ||
68 | select FW_LOADER | 72 | select FW_LOADER |
69 | select LIB80211 | 73 | select LIB80211 |
70 | select LIBIPW | 74 | select LIBIPW |
@@ -152,6 +156,7 @@ config LIBIPW | |||
152 | tristate | 156 | tristate |
153 | depends on PCI && WLAN_80211 && CFG80211 | 157 | depends on PCI && WLAN_80211 && CFG80211 |
154 | select WIRELESS_EXT | 158 | select WIRELESS_EXT |
159 | select WEXT_SPY | ||
155 | select CRYPTO | 160 | select CRYPTO |
156 | select CRYPTO_ARC4 | 161 | select CRYPTO_ARC4 |
157 | select CRYPTO_ECB | 162 | select CRYPTO_ECB |
diff --git a/drivers/net/wireless/orinoco/Kconfig b/drivers/net/wireless/orinoco/Kconfig index 83b635fd7784..13b03b3e8fce 100644 --- a/drivers/net/wireless/orinoco/Kconfig +++ b/drivers/net/wireless/orinoco/Kconfig | |||
@@ -3,6 +3,8 @@ config HERMES | |||
3 | depends on (PPC_PMAC || PCI || PCMCIA) && WLAN_80211 | 3 | depends on (PPC_PMAC || PCI || PCMCIA) && WLAN_80211 |
4 | depends on CFG80211 | 4 | depends on CFG80211 |
5 | select WIRELESS_EXT | 5 | select WIRELESS_EXT |
6 | select WEXT_SPY | ||
7 | select WEXT_PRIV | ||
6 | select FW_LOADER | 8 | select FW_LOADER |
7 | select CRYPTO | 9 | select CRYPTO |
8 | select CRYPTO_MICHAEL_MIC | 10 | select CRYPTO_MICHAEL_MIC |