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/wireless/wext-compat.c | |
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/wireless/wext-compat.c')
-rw-r--r-- | net/wireless/wext-compat.c | 34 |
1 files changed, 34 insertions, 0 deletions
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 | } |
1365 | EXPORT_SYMBOL_GPL(cfg80211_wext_giwap); | 1365 | EXPORT_SYMBOL_GPL(cfg80211_wext_giwap); |
1366 | |||
1367 | int 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 | } | ||
1382 | EXPORT_SYMBOL_GPL(cfg80211_wext_siwessid); | ||
1383 | |||
1384 | int 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 | } | ||
1399 | EXPORT_SYMBOL_GPL(cfg80211_wext_giwessid); | ||