diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-27 06:01:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-29 15:46:18 -0400 |
commit | 1f9298f96082692bdfe73af6fc2167f627f21647 (patch) | |
tree | ac99b1e27f93e0f4296112af23f78ab7e3a36144 /drivers/net/wireless | |
parent | 562e482265ac4d660d9f0114419591d62f44361d (diff) |
cfg80211: combine IWESSID handlers
Since we now have handlers IWESSID 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/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/wext.c | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/wext.c b/drivers/net/wireless/iwmc3200wifi/wext.c index 5319b16474e3..9196024a2890 100644 --- a/drivers/net/wireless/iwmc3200wifi/wext.c +++ b/drivers/net/wireless/iwmc3200wifi/wext.c | |||
@@ -27,38 +27,6 @@ | |||
27 | #include "iwm.h" | 27 | #include "iwm.h" |
28 | #include "commands.h" | 28 | #include "commands.h" |
29 | 29 | ||
30 | static int iwm_wext_siwessid(struct net_device *dev, | ||
31 | struct iw_request_info *info, | ||
32 | struct iw_point *data, char *ssid) | ||
33 | { | ||
34 | struct iwm_priv *iwm = ndev_to_iwm(dev); | ||
35 | |||
36 | switch (iwm->conf.mode) { | ||
37 | case UMAC_MODE_IBSS: | ||
38 | return cfg80211_ibss_wext_siwessid(dev, info, data, ssid); | ||
39 | case UMAC_MODE_BSS: | ||
40 | return cfg80211_mgd_wext_siwessid(dev, info, data, ssid); | ||
41 | default: | ||
42 | return -EOPNOTSUPP; | ||
43 | } | ||
44 | } | ||
45 | |||
46 | static int iwm_wext_giwessid(struct net_device *dev, | ||
47 | struct iw_request_info *info, | ||
48 | struct iw_point *data, char *ssid) | ||
49 | { | ||
50 | struct iwm_priv *iwm = ndev_to_iwm(dev); | ||
51 | |||
52 | switch (iwm->conf.mode) { | ||
53 | case UMAC_MODE_IBSS: | ||
54 | return cfg80211_ibss_wext_giwessid(dev, info, data, ssid); | ||
55 | case UMAC_MODE_BSS: | ||
56 | return cfg80211_mgd_wext_giwessid(dev, info, data, ssid); | ||
57 | default: | ||
58 | return -EOPNOTSUPP; | ||
59 | } | ||
60 | } | ||
61 | |||
62 | static const iw_handler iwm_handlers[] = | 30 | static const iw_handler iwm_handlers[] = |
63 | { | 31 | { |
64 | (iw_handler) NULL, /* SIOCSIWCOMMIT */ | 32 | (iw_handler) NULL, /* SIOCSIWCOMMIT */ |
@@ -87,8 +55,8 @@ static const iw_handler iwm_handlers[] = | |||
87 | (iw_handler) NULL, /* SIOCGIWAPLIST */ | 55 | (iw_handler) NULL, /* SIOCGIWAPLIST */ |
88 | (iw_handler) cfg80211_wext_siwscan, /* SIOCSIWSCAN */ | 56 | (iw_handler) cfg80211_wext_siwscan, /* SIOCSIWSCAN */ |
89 | (iw_handler) cfg80211_wext_giwscan, /* SIOCGIWSCAN */ | 57 | (iw_handler) cfg80211_wext_giwscan, /* SIOCGIWSCAN */ |
90 | (iw_handler) iwm_wext_siwessid, /* SIOCSIWESSID */ | 58 | (iw_handler) cfg80211_wext_siwessid, /* SIOCSIWESSID */ |
91 | (iw_handler) iwm_wext_giwessid, /* SIOCGIWESSID */ | 59 | (iw_handler) cfg80211_wext_giwessid, /* SIOCGIWESSID */ |
92 | (iw_handler) NULL, /* SIOCSIWNICKN */ | 60 | (iw_handler) NULL, /* SIOCSIWNICKN */ |
93 | (iw_handler) NULL, /* SIOCGIWNICKN */ | 61 | (iw_handler) NULL, /* SIOCGIWNICKN */ |
94 | (iw_handler) NULL, /* -- hole -- */ | 62 | (iw_handler) NULL, /* -- hole -- */ |