| OLD | NEW |
| 1 /* | 1 /* |
| 2 * cfg80211 - wext compat code | 2 * cfg80211 - wext compat code |
| 3 * | 3 * |
| 4 * This is temporary code until all wireless functionality is migrated | 4 * This is temporary code until all wireless functionality is migrated |
| 5 * into cfg80211, when that happens all the exports here go away and | 5 * into cfg80211, when that happens all the exports here go away and |
| 6 * we directly assign the wireless handlers of wireless interfaces. | 6 * we directly assign the wireless handlers of wireless interfaces. |
| 7 * | 7 * |
| 8 * Copyright 2008-2009 Johannes Berg <johannes@sipsolutions.net> | 8 * Copyright 2008-2009 Johannes Berg <johannes@sipsolutions.net> |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1413 } | 1413 } |
| 1414 } | 1414 } |
| 1415 EXPORT_SYMBOL_GPL(cfg80211_wext_siwessid); | 1415 EXPORT_SYMBOL_GPL(cfg80211_wext_siwessid); |
| 1416 | 1416 |
| 1417 int cfg80211_wext_giwessid(struct net_device *dev, | 1417 int cfg80211_wext_giwessid(struct net_device *dev, |
| 1418 struct iw_request_info *info, | 1418 struct iw_request_info *info, |
| 1419 struct iw_point *data, char *ssid) | 1419 struct iw_point *data, char *ssid) |
| 1420 { | 1420 { |
| 1421 struct wireless_dev *wdev = dev->ieee80211_ptr; | 1421 struct wireless_dev *wdev = dev->ieee80211_ptr; |
| 1422 | 1422 |
| 1423 data->flags = 0; |
| 1424 data->length = 0; |
| 1425 |
| 1423 switch (wdev->iftype) { | 1426 switch (wdev->iftype) { |
| 1424 case NL80211_IFTYPE_ADHOC: | 1427 case NL80211_IFTYPE_ADHOC: |
| 1425 return cfg80211_ibss_wext_giwessid(dev, info, data, ssid); | 1428 return cfg80211_ibss_wext_giwessid(dev, info, data, ssid); |
| 1426 case NL80211_IFTYPE_STATION: | 1429 case NL80211_IFTYPE_STATION: |
| 1427 return cfg80211_mgd_wext_giwessid(dev, info, data, ssid); | 1430 return cfg80211_mgd_wext_giwessid(dev, info, data, ssid); |
| 1428 default: | 1431 default: |
| 1429 return -EOPNOTSUPP; | 1432 return -EOPNOTSUPP; |
| 1430 } | 1433 } |
| 1431 } | 1434 } |
| 1432 EXPORT_SYMBOL_GPL(cfg80211_wext_giwessid); | 1435 EXPORT_SYMBOL_GPL(cfg80211_wext_giwessid); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1506 [IW_IOCTL_IDX(SIOCGIWAUTH)] = (iw_handler) cfg80211_wext_giwauth, | 1509 [IW_IOCTL_IDX(SIOCGIWAUTH)] = (iw_handler) cfg80211_wext_giwauth, |
| 1507 [IW_IOCTL_IDX(SIOCSIWENCODEEXT)]= (iw_handler) cfg80211_wext_siwencodeex
t, | 1510 [IW_IOCTL_IDX(SIOCSIWENCODEEXT)]= (iw_handler) cfg80211_wext_siwencodeex
t, |
| 1508 [IW_IOCTL_IDX(SIOCSIWPMKSA)] = (iw_handler) cfg80211_wext_siwpmksa, | 1511 [IW_IOCTL_IDX(SIOCSIWPMKSA)] = (iw_handler) cfg80211_wext_siwpmksa, |
| 1509 }; | 1512 }; |
| 1510 | 1513 |
| 1511 const struct iw_handler_def cfg80211_wext_handler = { | 1514 const struct iw_handler_def cfg80211_wext_handler = { |
| 1512 .num_standard = ARRAY_SIZE(cfg80211_handlers), | 1515 .num_standard = ARRAY_SIZE(cfg80211_handlers), |
| 1513 .standard = cfg80211_handlers, | 1516 .standard = cfg80211_handlers, |
| 1514 .get_wireless_stats = cfg80211_wireless_stats, | 1517 .get_wireless_stats = cfg80211_wireless_stats, |
| 1515 }; | 1518 }; |
| OLD | NEW |