aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-07-27 06:01:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-29 15:46:16 -0400
commit562e482265ac4d660d9f0114419591d62f44361d (patch)
treefd57e0b515aef085a4eb1fc0d351811c82210db8 /drivers
parent0e82ffe3b90bcad72cfe80e4379946b8fb0691ca (diff)
cfg80211: combine IWAP handlers
Since we now have IWAP handlers for all modes, we can combine them into one. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwmc3200wifi/wext.c34
1 files changed, 2 insertions, 32 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/wext.c b/drivers/net/wireless/iwmc3200wifi/wext.c
index 8058e9991c30..5319b16474e3 100644
--- a/drivers/net/wireless/iwmc3200wifi/wext.c
+++ b/drivers/net/wireless/iwmc3200wifi/wext.c
@@ -27,36 +27,6 @@
27#include "iwm.h" 27#include "iwm.h"
28#include "commands.h" 28#include "commands.h"
29 29
30static int iwm_wext_siwap(struct net_device *dev, struct iw_request_info *info,
31 struct sockaddr *ap_addr, char *extra)
32{
33 struct iwm_priv *iwm = ndev_to_iwm(dev);
34
35 switch (iwm->conf.mode) {
36 case UMAC_MODE_IBSS:
37 return cfg80211_ibss_wext_siwap(dev, info, ap_addr, extra);
38 case UMAC_MODE_BSS:
39 return cfg80211_mgd_wext_siwap(dev, info, ap_addr, extra);
40 default:
41 return -EOPNOTSUPP;
42 }
43}
44
45static int iwm_wext_giwap(struct net_device *dev, struct iw_request_info *info,
46 struct sockaddr *ap_addr, char *extra)
47{
48 struct iwm_priv *iwm = ndev_to_iwm(dev);
49
50 switch (iwm->conf.mode) {
51 case UMAC_MODE_IBSS:
52 return cfg80211_ibss_wext_giwap(dev, info, ap_addr, extra);
53 case UMAC_MODE_BSS:
54 return cfg80211_mgd_wext_giwap(dev, info, ap_addr, extra);
55 default:
56 return -EOPNOTSUPP;
57 }
58}
59
60static int iwm_wext_siwessid(struct net_device *dev, 30static int iwm_wext_siwessid(struct net_device *dev,
61 struct iw_request_info *info, 31 struct iw_request_info *info,
62 struct iw_point *data, char *ssid) 32 struct iw_point *data, char *ssid)
@@ -111,8 +81,8 @@ static const iw_handler iwm_handlers[] =
111 (iw_handler) NULL, /* SIOCGIWSPY */ 81 (iw_handler) NULL, /* SIOCGIWSPY */
112 (iw_handler) NULL, /* SIOCSIWTHRSPY */ 82 (iw_handler) NULL, /* SIOCSIWTHRSPY */
113 (iw_handler) NULL, /* SIOCGIWTHRSPY */ 83 (iw_handler) NULL, /* SIOCGIWTHRSPY */
114 (iw_handler) iwm_wext_siwap, /* SIOCSIWAP */ 84 (iw_handler) cfg80211_wext_siwap, /* SIOCSIWAP */
115 (iw_handler) iwm_wext_giwap, /* SIOCGIWAP */ 85 (iw_handler) cfg80211_wext_giwap, /* SIOCGIWAP */
116 (iw_handler) NULL, /* SIOCSIWMLME */ 86 (iw_handler) NULL, /* SIOCSIWMLME */
117 (iw_handler) NULL, /* SIOCGIWAPLIST */ 87 (iw_handler) NULL, /* SIOCGIWAPLIST */
118 (iw_handler) cfg80211_wext_siwscan, /* SIOCSIWSCAN */ 88 (iw_handler) cfg80211_wext_siwscan, /* SIOCSIWSCAN */