aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/wext.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-07-27 06:01:52 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-29 15:46:18 -0400
commit1f9298f96082692bdfe73af6fc2167f627f21647 (patch)
treeac99b1e27f93e0f4296112af23f78ab7e3a36144 /net/mac80211/wext.c
parent562e482265ac4d660d9f0114419591d62f44361d (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/wext.c')
-rw-r--r--net/mac80211/wext.c35
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
30static 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
45static 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 -- */