aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/iwmc3200wifi/wext.c36
-rw-r--r--include/net/cfg80211.h20
-rw-r--r--net/mac80211/wext.c35
-rw-r--r--net/wireless/ibss.c4
-rw-r--r--net/wireless/wext-compat.c34
-rw-r--r--net/wireless/wext-compat.h12
-rw-r--r--net/wireless/wext-sme.c4
7 files changed, 56 insertions, 89 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
30static 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
46static 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
62static const iw_handler iwm_handlers[] = 30static 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 -- */
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 3348c16e1f35..e1b92358242b 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1595,19 +1595,6 @@ int cfg80211_wext_siwmlme(struct net_device *dev,
1595int cfg80211_wext_giwrange(struct net_device *dev, 1595int cfg80211_wext_giwrange(struct net_device *dev,
1596 struct iw_request_info *info, 1596 struct iw_request_info *info,
1597 struct iw_point *data, char *extra); 1597 struct iw_point *data, char *extra);
1598int cfg80211_ibss_wext_siwessid(struct net_device *dev,
1599 struct iw_request_info *info,
1600 struct iw_point *data, char *ssid);
1601int cfg80211_ibss_wext_giwessid(struct net_device *dev,
1602 struct iw_request_info *info,
1603 struct iw_point *data, char *ssid);
1604
1605int cfg80211_mgd_wext_siwessid(struct net_device *dev,
1606 struct iw_request_info *info,
1607 struct iw_point *data, char *ssid);
1608int cfg80211_mgd_wext_giwessid(struct net_device *dev,
1609 struct iw_request_info *info,
1610 struct iw_point *data, char *ssid);
1611int cfg80211_wext_siwgenie(struct net_device *dev, 1598int cfg80211_wext_siwgenie(struct net_device *dev,
1612 struct iw_request_info *info, 1599 struct iw_request_info *info,
1613 struct iw_point *data, char *extra); 1600 struct iw_point *data, char *extra);
@@ -1624,7 +1611,12 @@ int cfg80211_wext_siwfreq(struct net_device *dev,
1624int cfg80211_wext_giwfreq(struct net_device *dev, 1611int cfg80211_wext_giwfreq(struct net_device *dev,
1625 struct iw_request_info *info, 1612 struct iw_request_info *info,
1626 struct iw_freq *freq, char *extra); 1613 struct iw_freq *freq, char *extra);
1627 1614int cfg80211_wext_siwessid(struct net_device *dev,
1615 struct iw_request_info *info,
1616 struct iw_point *data, char *ssid);
1617int cfg80211_wext_giwessid(struct net_device *dev,
1618 struct iw_request_info *info,
1619 struct iw_point *data, char *ssid);
1628int cfg80211_wext_siwrate(struct net_device *dev, 1620int cfg80211_wext_siwrate(struct net_device *dev,
1629 struct iw_request_info *info, 1621 struct iw_request_info *info,
1630 struct iw_param *rate, char *extra); 1622 struct iw_param *rate, char *extra);
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 -- */
diff --git a/net/wireless/ibss.c b/net/wireless/ibss.c
index f955225ed911..4d7a084b35e2 100644
--- a/net/wireless/ibss.c
+++ b/net/wireless/ibss.c
@@ -381,8 +381,6 @@ int cfg80211_ibss_wext_siwessid(struct net_device *dev,
381 381
382 return err; 382 return err;
383} 383}
384/* temporary symbol - mark GPL - in the future the handler won't be */
385EXPORT_SYMBOL_GPL(cfg80211_ibss_wext_siwessid);
386 384
387int cfg80211_ibss_wext_giwessid(struct net_device *dev, 385int cfg80211_ibss_wext_giwessid(struct net_device *dev,
388 struct iw_request_info *info, 386 struct iw_request_info *info,
@@ -410,8 +408,6 @@ int cfg80211_ibss_wext_giwessid(struct net_device *dev,
410 408
411 return 0; 409 return 0;
412} 410}
413/* temporary symbol - mark GPL - in the future the handler won't be */
414EXPORT_SYMBOL_GPL(cfg80211_ibss_wext_giwessid);
415 411
416int cfg80211_ibss_wext_siwap(struct net_device *dev, 412int cfg80211_ibss_wext_siwap(struct net_device *dev,
417 struct iw_request_info *info, 413 struct iw_request_info *info,
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c
index c27774bd0107..083e4c33d95d 100644
--- a/net/wireless/wext-compat.c
+++ b/net/wireless/wext-compat.c
@@ -1363,3 +1363,37 @@ int cfg80211_wext_giwap(struct net_device *dev,
1363 } 1363 }
1364} 1364}
1365EXPORT_SYMBOL_GPL(cfg80211_wext_giwap); 1365EXPORT_SYMBOL_GPL(cfg80211_wext_giwap);
1366
1367int cfg80211_wext_siwessid(struct net_device *dev,
1368 struct iw_request_info *info,
1369 struct iw_point *data, char *ssid)
1370{
1371 struct wireless_dev *wdev = dev->ieee80211_ptr;
1372
1373 switch (wdev->iftype) {
1374 case NL80211_IFTYPE_ADHOC:
1375 return cfg80211_ibss_wext_siwessid(dev, info, data, ssid);
1376 case NL80211_IFTYPE_STATION:
1377 return cfg80211_mgd_wext_siwessid(dev, info, data, ssid);
1378 default:
1379 return -EOPNOTSUPP;
1380 }
1381}
1382EXPORT_SYMBOL_GPL(cfg80211_wext_siwessid);
1383
1384int cfg80211_wext_giwessid(struct net_device *dev,
1385 struct iw_request_info *info,
1386 struct iw_point *data, char *ssid)
1387{
1388 struct wireless_dev *wdev = dev->ieee80211_ptr;
1389
1390 switch (wdev->iftype) {
1391 case NL80211_IFTYPE_ADHOC:
1392 return cfg80211_ibss_wext_giwessid(dev, info, data, ssid);
1393 case NL80211_IFTYPE_STATION:
1394 return cfg80211_mgd_wext_giwessid(dev, info, data, ssid);
1395 default:
1396 return -EOPNOTSUPP;
1397 }
1398}
1399EXPORT_SYMBOL_GPL(cfg80211_wext_giwessid);
diff --git a/net/wireless/wext-compat.h b/net/wireless/wext-compat.h
index 51028ebf19ae..c0310d93c2e5 100644
--- a/net/wireless/wext-compat.h
+++ b/net/wireless/wext-compat.h
@@ -13,6 +13,12 @@ int cfg80211_ibss_wext_siwap(struct net_device *dev,
13int cfg80211_ibss_wext_giwap(struct net_device *dev, 13int cfg80211_ibss_wext_giwap(struct net_device *dev,
14 struct iw_request_info *info, 14 struct iw_request_info *info,
15 struct sockaddr *ap_addr, char *extra); 15 struct sockaddr *ap_addr, char *extra);
16int cfg80211_ibss_wext_siwessid(struct net_device *dev,
17 struct iw_request_info *info,
18 struct iw_point *data, char *ssid);
19int cfg80211_ibss_wext_giwessid(struct net_device *dev,
20 struct iw_request_info *info,
21 struct iw_point *data, char *ssid);
16 22
17int cfg80211_mgd_wext_siwfreq(struct net_device *dev, 23int cfg80211_mgd_wext_siwfreq(struct net_device *dev,
18 struct iw_request_info *info, 24 struct iw_request_info *info,
@@ -26,6 +32,12 @@ int cfg80211_mgd_wext_siwap(struct net_device *dev,
26int cfg80211_mgd_wext_giwap(struct net_device *dev, 32int cfg80211_mgd_wext_giwap(struct net_device *dev,
27 struct iw_request_info *info, 33 struct iw_request_info *info,
28 struct sockaddr *ap_addr, char *extra); 34 struct sockaddr *ap_addr, char *extra);
35int cfg80211_mgd_wext_siwessid(struct net_device *dev,
36 struct iw_request_info *info,
37 struct iw_point *data, char *ssid);
38int cfg80211_mgd_wext_giwessid(struct net_device *dev,
39 struct iw_request_info *info,
40 struct iw_point *data, char *ssid);
29 41
30struct ieee80211_channel *cfg80211_wext_freq(struct wiphy *wiphy, 42struct ieee80211_channel *cfg80211_wext_freq(struct wiphy *wiphy,
31 struct iw_freq *freq); 43 struct iw_freq *freq);
diff --git a/net/wireless/wext-sme.c b/net/wireless/wext-sme.c
index 1aa31cc55113..7bacbd1c2af6 100644
--- a/net/wireless/wext-sme.c
+++ b/net/wireless/wext-sme.c
@@ -192,8 +192,6 @@ int cfg80211_mgd_wext_siwessid(struct net_device *dev,
192 cfg80211_unlock_rdev(wiphy_to_dev(wdev->wiphy)); 192 cfg80211_unlock_rdev(wiphy_to_dev(wdev->wiphy));
193 return err; 193 return err;
194} 194}
195/* temporary symbol - mark GPL - in the future the handler won't be */
196EXPORT_SYMBOL_GPL(cfg80211_mgd_wext_siwessid);
197 195
198int cfg80211_mgd_wext_giwessid(struct net_device *dev, 196int cfg80211_mgd_wext_giwessid(struct net_device *dev,
199 struct iw_request_info *info, 197 struct iw_request_info *info,
@@ -218,8 +216,6 @@ int cfg80211_mgd_wext_giwessid(struct net_device *dev,
218 216
219 return 0; 217 return 0;
220} 218}
221/* temporary symbol - mark GPL - in the future the handler won't be */
222EXPORT_SYMBOL_GPL(cfg80211_mgd_wext_giwessid);
223 219
224int cfg80211_mgd_wext_siwap(struct net_device *dev, 220int cfg80211_mgd_wext_siwap(struct net_device *dev,
225 struct iw_request_info *info, 221 struct iw_request_info *info,