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 /net/mac80211 | |
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 'net/mac80211')
-rw-r--r-- | net/mac80211/wext.c | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index 72866c8b8c3d..aa250c3e8fda 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c | |||
@@ -27,37 +27,6 @@ | |||
27 | #include "aes_ccm.h" | 27 | #include "aes_ccm.h" |
28 | 28 | ||
29 | 29 | ||
30 | static int ieee80211_ioctl_siwessid(struct net_device *dev, | ||
31 | struct iw_request_info *info, | ||
32 | struct iw_point *data, char *ssid) | ||
33 | { | ||
34 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); | ||
35 | |||
36 | if (sdata->vif.type == NL80211_IFTYPE_ADHOC) | ||
37 | return cfg80211_ibss_wext_siwessid(dev, info, data, ssid); | ||
38 | else if (sdata->vif.type == NL80211_IFTYPE_STATION) | ||
39 | return cfg80211_mgd_wext_siwessid(dev, info, data, ssid); | ||
40 | |||
41 | return -EOPNOTSUPP; | ||
42 | } | ||
43 | |||
44 | |||
45 | static int ieee80211_ioctl_giwessid(struct net_device *dev, | ||
46 | struct iw_request_info *info, | ||
47 | struct iw_point *data, char *ssid) | ||
48 | { | ||
49 | struct ieee80211_sub_if_data *sdata; | ||
50 | |||
51 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); | ||
52 | |||
53 | if (sdata->vif.type == NL80211_IFTYPE_ADHOC) | ||
54 | return cfg80211_ibss_wext_giwessid(dev, info, data, ssid); | ||
55 | else if (sdata->vif.type == NL80211_IFTYPE_STATION) | ||
56 | return cfg80211_mgd_wext_giwessid(dev, info, data, ssid); | ||
57 | |||
58 | return -EOPNOTSUPP; | ||
59 | } | ||
60 | |||
61 | 30 | ||
62 | /* Structures to export the Wireless Handlers */ | 31 | /* Structures to export the Wireless Handlers */ |
63 | 32 | ||
@@ -89,8 +58,8 @@ static const iw_handler ieee80211_handler[] = | |||
89 | (iw_handler) NULL, /* SIOCGIWAPLIST */ | 58 | (iw_handler) NULL, /* SIOCGIWAPLIST */ |
90 | (iw_handler) cfg80211_wext_siwscan, /* SIOCSIWSCAN */ | 59 | (iw_handler) cfg80211_wext_siwscan, /* SIOCSIWSCAN */ |
91 | (iw_handler) cfg80211_wext_giwscan, /* SIOCGIWSCAN */ | 60 | (iw_handler) cfg80211_wext_giwscan, /* SIOCGIWSCAN */ |
92 | (iw_handler) ieee80211_ioctl_siwessid, /* SIOCSIWESSID */ | 61 | (iw_handler) cfg80211_wext_siwessid, /* SIOCSIWESSID */ |
93 | (iw_handler) ieee80211_ioctl_giwessid, /* SIOCGIWESSID */ | 62 | (iw_handler) cfg80211_wext_giwessid, /* SIOCGIWESSID */ |
94 | (iw_handler) NULL, /* SIOCSIWNICKN */ | 63 | (iw_handler) NULL, /* SIOCSIWNICKN */ |
95 | (iw_handler) NULL, /* SIOCGIWNICKN */ | 64 | (iw_handler) NULL, /* SIOCGIWNICKN */ |
96 | (iw_handler) NULL, /* -- hole -- */ | 65 | (iw_handler) NULL, /* -- hole -- */ |