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 /net/wireless/sme.c | |
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 'net/wireless/sme.c')
-rw-r--r-- | net/wireless/sme.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/wireless/sme.c b/net/wireless/sme.c index 93c3ed329204..d3624152f7f7 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c | |||
@@ -345,7 +345,7 @@ void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid, | |||
345 | { | 345 | { |
346 | struct wireless_dev *wdev = dev->ieee80211_ptr; | 346 | struct wireless_dev *wdev = dev->ieee80211_ptr; |
347 | u8 *country_ie; | 347 | u8 *country_ie; |
348 | #ifdef CONFIG_WIRELESS_EXT | 348 | #ifdef CONFIG_CFG80211_WEXT |
349 | union iwreq_data wrqu; | 349 | union iwreq_data wrqu; |
350 | #endif | 350 | #endif |
351 | 351 | ||
@@ -362,7 +362,7 @@ void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid, | |||
362 | resp_ie, resp_ie_len, | 362 | resp_ie, resp_ie_len, |
363 | status, GFP_KERNEL); | 363 | status, GFP_KERNEL); |
364 | 364 | ||
365 | #ifdef CONFIG_WIRELESS_EXT | 365 | #ifdef CONFIG_CFG80211_WEXT |
366 | if (wextev) { | 366 | if (wextev) { |
367 | if (req_ie && status == WLAN_STATUS_SUCCESS) { | 367 | if (req_ie && status == WLAN_STATUS_SUCCESS) { |
368 | memset(&wrqu, 0, sizeof(wrqu)); | 368 | memset(&wrqu, 0, sizeof(wrqu)); |
@@ -477,7 +477,7 @@ void __cfg80211_roamed(struct wireless_dev *wdev, const u8 *bssid, | |||
477 | const u8 *resp_ie, size_t resp_ie_len) | 477 | const u8 *resp_ie, size_t resp_ie_len) |
478 | { | 478 | { |
479 | struct cfg80211_bss *bss; | 479 | struct cfg80211_bss *bss; |
480 | #ifdef CONFIG_WIRELESS_EXT | 480 | #ifdef CONFIG_CFG80211_WEXT |
481 | union iwreq_data wrqu; | 481 | union iwreq_data wrqu; |
482 | #endif | 482 | #endif |
483 | 483 | ||
@@ -512,7 +512,7 @@ void __cfg80211_roamed(struct wireless_dev *wdev, const u8 *bssid, | |||
512 | req_ie, req_ie_len, resp_ie, resp_ie_len, | 512 | req_ie, req_ie_len, resp_ie, resp_ie_len, |
513 | GFP_KERNEL); | 513 | GFP_KERNEL); |
514 | 514 | ||
515 | #ifdef CONFIG_WIRELESS_EXT | 515 | #ifdef CONFIG_CFG80211_WEXT |
516 | if (req_ie) { | 516 | if (req_ie) { |
517 | memset(&wrqu, 0, sizeof(wrqu)); | 517 | memset(&wrqu, 0, sizeof(wrqu)); |
518 | wrqu.data.length = req_ie_len; | 518 | wrqu.data.length = req_ie_len; |
@@ -573,7 +573,7 @@ void __cfg80211_disconnected(struct net_device *dev, const u8 *ie, | |||
573 | struct wireless_dev *wdev = dev->ieee80211_ptr; | 573 | struct wireless_dev *wdev = dev->ieee80211_ptr; |
574 | struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); | 574 | struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); |
575 | int i; | 575 | int i; |
576 | #ifdef CONFIG_WIRELESS_EXT | 576 | #ifdef CONFIG_CFG80211_WEXT |
577 | union iwreq_data wrqu; | 577 | union iwreq_data wrqu; |
578 | #endif | 578 | #endif |
579 | 579 | ||
@@ -631,7 +631,7 @@ void __cfg80211_disconnected(struct net_device *dev, const u8 *ie, | |||
631 | for (i = 0; i < 6; i++) | 631 | for (i = 0; i < 6; i++) |
632 | rdev->ops->del_key(wdev->wiphy, dev, i, NULL); | 632 | rdev->ops->del_key(wdev->wiphy, dev, i, NULL); |
633 | 633 | ||
634 | #ifdef CONFIG_WIRELESS_EXT | 634 | #ifdef CONFIG_CFG80211_WEXT |
635 | memset(&wrqu, 0, sizeof(wrqu)); | 635 | memset(&wrqu, 0, sizeof(wrqu)); |
636 | wrqu.ap_addr.sa_family = ARPHRD_ETHER; | 636 | wrqu.ap_addr.sa_family = ARPHRD_ETHER; |
637 | wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL); | 637 | wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL); |