aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/wext.c')
-rw-r--r--net/mac80211/wext.c41
1 files changed, 2 insertions, 39 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c
index 7cd9aa79ef52..72866c8b8c3d 100644
--- a/net/mac80211/wext.c
+++ b/net/mac80211/wext.c
@@ -59,43 +59,6 @@ static int ieee80211_ioctl_giwessid(struct net_device *dev,
59} 59}
60 60
61 61
62static int ieee80211_ioctl_siwap(struct net_device *dev,
63 struct iw_request_info *info,
64 struct sockaddr *ap_addr, char *extra)
65{
66 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
67
68 if (sdata->vif.type == NL80211_IFTYPE_ADHOC)
69 return cfg80211_ibss_wext_siwap(dev, info, ap_addr, extra);
70
71 if (sdata->vif.type == NL80211_IFTYPE_STATION)
72 return cfg80211_mgd_wext_siwap(dev, info, ap_addr, extra);
73
74 if (sdata->vif.type == NL80211_IFTYPE_WDS)
75 return cfg80211_wds_wext_siwap(dev, info, ap_addr, extra);
76 return -EOPNOTSUPP;
77}
78
79
80static int ieee80211_ioctl_giwap(struct net_device *dev,
81 struct iw_request_info *info,
82 struct sockaddr *ap_addr, char *extra)
83{
84 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
85
86 if (sdata->vif.type == NL80211_IFTYPE_ADHOC)
87 return cfg80211_ibss_wext_giwap(dev, info, ap_addr, extra);
88
89 if (sdata->vif.type == NL80211_IFTYPE_STATION)
90 return cfg80211_mgd_wext_giwap(dev, info, ap_addr, extra);
91
92 if (sdata->vif.type == NL80211_IFTYPE_WDS)
93 return cfg80211_wds_wext_giwap(dev, info, ap_addr, extra);
94
95 return -EOPNOTSUPP;
96}
97
98
99/* Structures to export the Wireless Handlers */ 62/* Structures to export the Wireless Handlers */
100 63
101static const iw_handler ieee80211_handler[] = 64static const iw_handler ieee80211_handler[] =
@@ -120,8 +83,8 @@ static const iw_handler ieee80211_handler[] =
120 (iw_handler) NULL, /* SIOCGIWSPY */ 83 (iw_handler) NULL, /* SIOCGIWSPY */
121 (iw_handler) NULL, /* SIOCSIWTHRSPY */ 84 (iw_handler) NULL, /* SIOCSIWTHRSPY */
122 (iw_handler) NULL, /* SIOCGIWTHRSPY */ 85 (iw_handler) NULL, /* SIOCGIWTHRSPY */
123 (iw_handler) ieee80211_ioctl_siwap, /* SIOCSIWAP */ 86 (iw_handler) cfg80211_wext_siwap, /* SIOCSIWAP */
124 (iw_handler) ieee80211_ioctl_giwap, /* SIOCGIWAP */ 87 (iw_handler) cfg80211_wext_giwap, /* SIOCGIWAP */
125 (iw_handler) cfg80211_wext_siwmlme, /* SIOCSIWMLME */ 88 (iw_handler) cfg80211_wext_siwmlme, /* SIOCSIWMLME */
126 (iw_handler) NULL, /* SIOCGIWAPLIST */ 89 (iw_handler) NULL, /* SIOCGIWAPLIST */
127 (iw_handler) cfg80211_wext_siwscan, /* SIOCSIWSCAN */ 90 (iw_handler) cfg80211_wext_siwscan, /* SIOCSIWSCAN */