diff options
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2200.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/wext.c | 1 | ||||
-rw-r--r-- | include/net/cfg80211-wext.h | 124 | ||||
-rw-r--r-- | include/net/cfg80211.h | 112 | ||||
-rw-r--r-- | net/wireless/scan.c | 1 | ||||
-rw-r--r-- | net/wireless/wext-compat.c | 1 | ||||
-rw-r--r-- | net/wireless/wext-sme.c | 1 |
7 files changed, 129 insertions, 112 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c index 87813c33bdc2..4395977d5369 100644 --- a/drivers/net/wireless/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/ipw2x00/ipw2200.c | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include <linux/sched.h> | 33 | #include <linux/sched.h> |
34 | #include <linux/slab.h> | 34 | #include <linux/slab.h> |
35 | #include <net/cfg80211-wext.h> | ||
35 | #include "ipw2200.h" | 36 | #include "ipw2200.h" |
36 | 37 | ||
37 | 38 | ||
diff --git a/drivers/net/wireless/orinoco/wext.c b/drivers/net/wireless/orinoco/wext.c index bbb9beb206b1..33747e131a96 100644 --- a/drivers/net/wireless/orinoco/wext.c +++ b/drivers/net/wireless/orinoco/wext.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/ieee80211.h> | 9 | #include <linux/ieee80211.h> |
10 | #include <net/iw_handler.h> | 10 | #include <net/iw_handler.h> |
11 | #include <net/cfg80211.h> | 11 | #include <net/cfg80211.h> |
12 | #include <net/cfg80211-wext.h> | ||
12 | 13 | ||
13 | #include "hermes.h" | 14 | #include "hermes.h" |
14 | #include "hermes_rid.h" | 15 | #include "hermes_rid.h" |
diff --git a/include/net/cfg80211-wext.h b/include/net/cfg80211-wext.h new file mode 100644 index 000000000000..204064206654 --- /dev/null +++ b/include/net/cfg80211-wext.h | |||
@@ -0,0 +1,124 @@ | |||
1 | #ifndef __NET_CFG80211_WEXT_H | ||
2 | #define __NET_CFG80211_WEXT_H | ||
3 | /* | ||
4 | * 802.11 device and configuration interface -- wext handlers | ||
5 | * | ||
6 | * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/netdevice.h> | ||
14 | #include <linux/wireless.h> | ||
15 | #include <net/iw_handler.h> | ||
16 | |||
17 | /* | ||
18 | * Temporary wext handlers & helper functions | ||
19 | * | ||
20 | * These are used only by drivers that aren't yet fully | ||
21 | * converted to cfg80211. | ||
22 | */ | ||
23 | int cfg80211_wext_giwname(struct net_device *dev, | ||
24 | struct iw_request_info *info, | ||
25 | char *name, char *extra); | ||
26 | int cfg80211_wext_siwmode(struct net_device *dev, struct iw_request_info *info, | ||
27 | u32 *mode, char *extra); | ||
28 | int cfg80211_wext_giwmode(struct net_device *dev, struct iw_request_info *info, | ||
29 | u32 *mode, char *extra); | ||
30 | int cfg80211_wext_siwscan(struct net_device *dev, | ||
31 | struct iw_request_info *info, | ||
32 | union iwreq_data *wrqu, char *extra); | ||
33 | int cfg80211_wext_giwscan(struct net_device *dev, | ||
34 | struct iw_request_info *info, | ||
35 | struct iw_point *data, char *extra); | ||
36 | int cfg80211_wext_siwmlme(struct net_device *dev, | ||
37 | struct iw_request_info *info, | ||
38 | struct iw_point *data, char *extra); | ||
39 | int cfg80211_wext_giwrange(struct net_device *dev, | ||
40 | struct iw_request_info *info, | ||
41 | struct iw_point *data, char *extra); | ||
42 | int cfg80211_wext_siwgenie(struct net_device *dev, | ||
43 | struct iw_request_info *info, | ||
44 | struct iw_point *data, char *extra); | ||
45 | int cfg80211_wext_siwauth(struct net_device *dev, | ||
46 | struct iw_request_info *info, | ||
47 | struct iw_param *data, char *extra); | ||
48 | int cfg80211_wext_giwauth(struct net_device *dev, | ||
49 | struct iw_request_info *info, | ||
50 | struct iw_param *data, char *extra); | ||
51 | |||
52 | int cfg80211_wext_siwfreq(struct net_device *dev, | ||
53 | struct iw_request_info *info, | ||
54 | struct iw_freq *freq, char *extra); | ||
55 | int cfg80211_wext_giwfreq(struct net_device *dev, | ||
56 | struct iw_request_info *info, | ||
57 | struct iw_freq *freq, char *extra); | ||
58 | int cfg80211_wext_siwessid(struct net_device *dev, | ||
59 | struct iw_request_info *info, | ||
60 | struct iw_point *data, char *ssid); | ||
61 | int cfg80211_wext_giwessid(struct net_device *dev, | ||
62 | struct iw_request_info *info, | ||
63 | struct iw_point *data, char *ssid); | ||
64 | int cfg80211_wext_siwrate(struct net_device *dev, | ||
65 | struct iw_request_info *info, | ||
66 | struct iw_param *rate, char *extra); | ||
67 | int cfg80211_wext_giwrate(struct net_device *dev, | ||
68 | struct iw_request_info *info, | ||
69 | struct iw_param *rate, char *extra); | ||
70 | |||
71 | int cfg80211_wext_siwrts(struct net_device *dev, | ||
72 | struct iw_request_info *info, | ||
73 | struct iw_param *rts, char *extra); | ||
74 | int cfg80211_wext_giwrts(struct net_device *dev, | ||
75 | struct iw_request_info *info, | ||
76 | struct iw_param *rts, char *extra); | ||
77 | int cfg80211_wext_siwfrag(struct net_device *dev, | ||
78 | struct iw_request_info *info, | ||
79 | struct iw_param *frag, char *extra); | ||
80 | int cfg80211_wext_giwfrag(struct net_device *dev, | ||
81 | struct iw_request_info *info, | ||
82 | struct iw_param *frag, char *extra); | ||
83 | int cfg80211_wext_siwretry(struct net_device *dev, | ||
84 | struct iw_request_info *info, | ||
85 | struct iw_param *retry, char *extra); | ||
86 | int cfg80211_wext_giwretry(struct net_device *dev, | ||
87 | struct iw_request_info *info, | ||
88 | struct iw_param *retry, char *extra); | ||
89 | int cfg80211_wext_siwencodeext(struct net_device *dev, | ||
90 | struct iw_request_info *info, | ||
91 | struct iw_point *erq, char *extra); | ||
92 | int cfg80211_wext_siwencode(struct net_device *dev, | ||
93 | struct iw_request_info *info, | ||
94 | struct iw_point *erq, char *keybuf); | ||
95 | int cfg80211_wext_giwencode(struct net_device *dev, | ||
96 | struct iw_request_info *info, | ||
97 | struct iw_point *erq, char *keybuf); | ||
98 | int cfg80211_wext_siwtxpower(struct net_device *dev, | ||
99 | struct iw_request_info *info, | ||
100 | union iwreq_data *data, char *keybuf); | ||
101 | int cfg80211_wext_giwtxpower(struct net_device *dev, | ||
102 | struct iw_request_info *info, | ||
103 | union iwreq_data *data, char *keybuf); | ||
104 | struct iw_statistics *cfg80211_wireless_stats(struct net_device *dev); | ||
105 | |||
106 | int cfg80211_wext_siwpower(struct net_device *dev, | ||
107 | struct iw_request_info *info, | ||
108 | struct iw_param *wrq, char *extra); | ||
109 | int cfg80211_wext_giwpower(struct net_device *dev, | ||
110 | struct iw_request_info *info, | ||
111 | struct iw_param *wrq, char *extra); | ||
112 | |||
113 | int cfg80211_wext_siwap(struct net_device *dev, | ||
114 | struct iw_request_info *info, | ||
115 | struct sockaddr *ap_addr, char *extra); | ||
116 | int cfg80211_wext_giwap(struct net_device *dev, | ||
117 | struct iw_request_info *info, | ||
118 | struct sockaddr *ap_addr, char *extra); | ||
119 | |||
120 | int cfg80211_wext_siwpmksa(struct net_device *dev, | ||
121 | struct iw_request_info *info, | ||
122 | struct iw_point *data, char *extra); | ||
123 | |||
124 | #endif /* __NET_CFG80211_WEXT_H */ | ||
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index d17f47fc9e31..44e72cc13055 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -20,11 +20,6 @@ | |||
20 | #include <linux/ieee80211.h> | 20 | #include <linux/ieee80211.h> |
21 | #include <net/regulatory.h> | 21 | #include <net/regulatory.h> |
22 | 22 | ||
23 | /* remove once we remove the wext stuff */ | ||
24 | #include <net/iw_handler.h> | ||
25 | #include <linux/wireless.h> | ||
26 | |||
27 | |||
28 | /** | 23 | /** |
29 | * DOC: Introduction | 24 | * DOC: Introduction |
30 | * | 25 | * |
@@ -2393,113 +2388,6 @@ extern int freq_reg_info(struct wiphy *wiphy, | |||
2393 | const struct ieee80211_reg_rule **reg_rule); | 2388 | const struct ieee80211_reg_rule **reg_rule); |
2394 | 2389 | ||
2395 | /* | 2390 | /* |
2396 | * Temporary wext handlers & helper functions | ||
2397 | * | ||
2398 | * In the future cfg80211 will simply assign the entire wext handler | ||
2399 | * structure to netdevs it manages, but we're not there yet. | ||
2400 | */ | ||
2401 | int cfg80211_wext_giwname(struct net_device *dev, | ||
2402 | struct iw_request_info *info, | ||
2403 | char *name, char *extra); | ||
2404 | int cfg80211_wext_siwmode(struct net_device *dev, struct iw_request_info *info, | ||
2405 | u32 *mode, char *extra); | ||
2406 | int cfg80211_wext_giwmode(struct net_device *dev, struct iw_request_info *info, | ||
2407 | u32 *mode, char *extra); | ||
2408 | int cfg80211_wext_siwscan(struct net_device *dev, | ||
2409 | struct iw_request_info *info, | ||
2410 | union iwreq_data *wrqu, char *extra); | ||
2411 | int cfg80211_wext_giwscan(struct net_device *dev, | ||
2412 | struct iw_request_info *info, | ||
2413 | struct iw_point *data, char *extra); | ||
2414 | int cfg80211_wext_siwmlme(struct net_device *dev, | ||
2415 | struct iw_request_info *info, | ||
2416 | struct iw_point *data, char *extra); | ||
2417 | int cfg80211_wext_giwrange(struct net_device *dev, | ||
2418 | struct iw_request_info *info, | ||
2419 | struct iw_point *data, char *extra); | ||
2420 | int cfg80211_wext_siwgenie(struct net_device *dev, | ||
2421 | struct iw_request_info *info, | ||
2422 | struct iw_point *data, char *extra); | ||
2423 | int cfg80211_wext_siwauth(struct net_device *dev, | ||
2424 | struct iw_request_info *info, | ||
2425 | struct iw_param *data, char *extra); | ||
2426 | int cfg80211_wext_giwauth(struct net_device *dev, | ||
2427 | struct iw_request_info *info, | ||
2428 | struct iw_param *data, char *extra); | ||
2429 | |||
2430 | int cfg80211_wext_siwfreq(struct net_device *dev, | ||
2431 | struct iw_request_info *info, | ||
2432 | struct iw_freq *freq, char *extra); | ||
2433 | int cfg80211_wext_giwfreq(struct net_device *dev, | ||
2434 | struct iw_request_info *info, | ||
2435 | struct iw_freq *freq, char *extra); | ||
2436 | int cfg80211_wext_siwessid(struct net_device *dev, | ||
2437 | struct iw_request_info *info, | ||
2438 | struct iw_point *data, char *ssid); | ||
2439 | int cfg80211_wext_giwessid(struct net_device *dev, | ||
2440 | struct iw_request_info *info, | ||
2441 | struct iw_point *data, char *ssid); | ||
2442 | int cfg80211_wext_siwrate(struct net_device *dev, | ||
2443 | struct iw_request_info *info, | ||
2444 | struct iw_param *rate, char *extra); | ||
2445 | int cfg80211_wext_giwrate(struct net_device *dev, | ||
2446 | struct iw_request_info *info, | ||
2447 | struct iw_param *rate, char *extra); | ||
2448 | |||
2449 | int cfg80211_wext_siwrts(struct net_device *dev, | ||
2450 | struct iw_request_info *info, | ||
2451 | struct iw_param *rts, char *extra); | ||
2452 | int cfg80211_wext_giwrts(struct net_device *dev, | ||
2453 | struct iw_request_info *info, | ||
2454 | struct iw_param *rts, char *extra); | ||
2455 | int cfg80211_wext_siwfrag(struct net_device *dev, | ||
2456 | struct iw_request_info *info, | ||
2457 | struct iw_param *frag, char *extra); | ||
2458 | int cfg80211_wext_giwfrag(struct net_device *dev, | ||
2459 | struct iw_request_info *info, | ||
2460 | struct iw_param *frag, char *extra); | ||
2461 | int cfg80211_wext_siwretry(struct net_device *dev, | ||
2462 | struct iw_request_info *info, | ||
2463 | struct iw_param *retry, char *extra); | ||
2464 | int cfg80211_wext_giwretry(struct net_device *dev, | ||
2465 | struct iw_request_info *info, | ||
2466 | struct iw_param *retry, char *extra); | ||
2467 | int cfg80211_wext_siwencodeext(struct net_device *dev, | ||
2468 | struct iw_request_info *info, | ||
2469 | struct iw_point *erq, char *extra); | ||
2470 | int cfg80211_wext_siwencode(struct net_device *dev, | ||
2471 | struct iw_request_info *info, | ||
2472 | struct iw_point *erq, char *keybuf); | ||
2473 | int cfg80211_wext_giwencode(struct net_device *dev, | ||
2474 | struct iw_request_info *info, | ||
2475 | struct iw_point *erq, char *keybuf); | ||
2476 | int cfg80211_wext_siwtxpower(struct net_device *dev, | ||
2477 | struct iw_request_info *info, | ||
2478 | union iwreq_data *data, char *keybuf); | ||
2479 | int cfg80211_wext_giwtxpower(struct net_device *dev, | ||
2480 | struct iw_request_info *info, | ||
2481 | union iwreq_data *data, char *keybuf); | ||
2482 | struct iw_statistics *cfg80211_wireless_stats(struct net_device *dev); | ||
2483 | |||
2484 | int cfg80211_wext_siwpower(struct net_device *dev, | ||
2485 | struct iw_request_info *info, | ||
2486 | struct iw_param *wrq, char *extra); | ||
2487 | int cfg80211_wext_giwpower(struct net_device *dev, | ||
2488 | struct iw_request_info *info, | ||
2489 | struct iw_param *wrq, char *extra); | ||
2490 | |||
2491 | int cfg80211_wext_siwap(struct net_device *dev, | ||
2492 | struct iw_request_info *info, | ||
2493 | struct sockaddr *ap_addr, char *extra); | ||
2494 | int cfg80211_wext_giwap(struct net_device *dev, | ||
2495 | struct iw_request_info *info, | ||
2496 | struct sockaddr *ap_addr, char *extra); | ||
2497 | |||
2498 | int cfg80211_wext_siwpmksa(struct net_device *dev, | ||
2499 | struct iw_request_info *info, | ||
2500 | struct iw_point *data, char *extra); | ||
2501 | |||
2502 | /* | ||
2503 | * callbacks for asynchronous cfg80211 methods, notification | 2391 | * callbacks for asynchronous cfg80211 methods, notification |
2504 | * functions and BSS handling helpers | 2392 | * functions and BSS handling helpers |
2505 | */ | 2393 | */ |
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 2936cb809152..b0f003966953 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/etherdevice.h> | 12 | #include <linux/etherdevice.h> |
13 | #include <net/arp.h> | 13 | #include <net/arp.h> |
14 | #include <net/cfg80211.h> | 14 | #include <net/cfg80211.h> |
15 | #include <net/cfg80211-wext.h> | ||
15 | #include <net/iw_handler.h> | 16 | #include <net/iw_handler.h> |
16 | #include "core.h" | 17 | #include "core.h" |
17 | #include "nl80211.h" | 18 | #include "nl80211.h" |
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index 0bf169bb770e..355a63a46c42 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
16 | #include <net/iw_handler.h> | 16 | #include <net/iw_handler.h> |
17 | #include <net/cfg80211.h> | 17 | #include <net/cfg80211.h> |
18 | #include <net/cfg80211-wext.h> | ||
18 | #include "wext-compat.h" | 19 | #include "wext-compat.h" |
19 | #include "core.h" | 20 | #include "core.h" |
20 | 21 | ||
diff --git a/net/wireless/wext-sme.c b/net/wireless/wext-sme.c index 6fffe62d7c25..494a12ff446f 100644 --- a/net/wireless/wext-sme.c +++ b/net/wireless/wext-sme.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/if_arp.h> | 9 | #include <linux/if_arp.h> |
10 | #include <linux/slab.h> | 10 | #include <linux/slab.h> |
11 | #include <net/cfg80211.h> | 11 | #include <net/cfg80211.h> |
12 | #include <net/cfg80211-wext.h> | ||
12 | #include "wext-compat.h" | 13 | #include "wext-compat.h" |
13 | #include "nl80211.h" | 14 | #include "nl80211.h" |
14 | 15 | ||