diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-01 15:26:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:01:51 -0400 |
commit | f21293549f60f88c74fcb9944737f11048896dc4 (patch) | |
tree | d4a00663f87816c0c742e74d7b2c9bad31a18816 /include | |
parent | 6829c878ecd24ff0ae41b4668c7e9d0f11b66942 (diff) |
cfg80211: managed mode wext compatibility
This adds code to make it possible to use the cfg80211
connect() API with wireless extensions, and because the
previous patch added emulation of that API with auth()
and assoc(), by extension also supports wext on that.
At the same time, removes code from mac80211 for wext,
but doesn't yet clean up mac80211's mlme code more.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 24fab439d415..07085216532d 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1253,8 +1253,14 @@ struct wireless_dev { | |||
1253 | #ifdef CONFIG_WIRELESS_EXT | 1253 | #ifdef CONFIG_WIRELESS_EXT |
1254 | /* wext data */ | 1254 | /* wext data */ |
1255 | struct { | 1255 | struct { |
1256 | struct cfg80211_ibss_params ibss; | 1256 | union { |
1257 | struct cfg80211_ibss_params ibss; | ||
1258 | struct cfg80211_connect_params connect; | ||
1259 | }; | ||
1260 | u8 *ie; | ||
1261 | size_t ie_len; | ||
1257 | u8 bssid[ETH_ALEN]; | 1262 | u8 bssid[ETH_ALEN]; |
1263 | u8 ssid[IEEE80211_MAX_SSID_LEN]; | ||
1258 | s8 default_key, default_mgmt_key; | 1264 | s8 default_key, default_mgmt_key; |
1259 | } wext; | 1265 | } wext; |
1260 | #endif | 1266 | #endif |
@@ -1535,6 +1541,34 @@ int cfg80211_ibss_wext_giwap(struct net_device *dev, | |||
1535 | struct iw_request_info *info, | 1541 | struct iw_request_info *info, |
1536 | struct sockaddr *ap_addr, char *extra); | 1542 | struct sockaddr *ap_addr, char *extra); |
1537 | 1543 | ||
1544 | int cfg80211_mgd_wext_siwfreq(struct net_device *dev, | ||
1545 | struct iw_request_info *info, | ||
1546 | struct iw_freq *freq, char *extra); | ||
1547 | int cfg80211_mgd_wext_giwfreq(struct net_device *dev, | ||
1548 | struct iw_request_info *info, | ||
1549 | struct iw_freq *freq, char *extra); | ||
1550 | int cfg80211_mgd_wext_siwessid(struct net_device *dev, | ||
1551 | struct iw_request_info *info, | ||
1552 | struct iw_point *data, char *ssid); | ||
1553 | int cfg80211_mgd_wext_giwessid(struct net_device *dev, | ||
1554 | struct iw_request_info *info, | ||
1555 | struct iw_point *data, char *ssid); | ||
1556 | int cfg80211_mgd_wext_siwap(struct net_device *dev, | ||
1557 | struct iw_request_info *info, | ||
1558 | struct sockaddr *ap_addr, char *extra); | ||
1559 | int cfg80211_mgd_wext_giwap(struct net_device *dev, | ||
1560 | struct iw_request_info *info, | ||
1561 | struct sockaddr *ap_addr, char *extra); | ||
1562 | int cfg80211_wext_siwgenie(struct net_device *dev, | ||
1563 | struct iw_request_info *info, | ||
1564 | struct iw_point *data, char *extra); | ||
1565 | int cfg80211_wext_siwauth(struct net_device *dev, | ||
1566 | struct iw_request_info *info, | ||
1567 | struct iw_param *data, char *extra); | ||
1568 | int cfg80211_wext_giwauth(struct net_device *dev, | ||
1569 | struct iw_request_info *info, | ||
1570 | struct iw_param *data, char *extra); | ||
1571 | |||
1538 | struct ieee80211_channel *cfg80211_wext_freq(struct wiphy *wiphy, | 1572 | struct ieee80211_channel *cfg80211_wext_freq(struct wiphy *wiphy, |
1539 | struct iw_freq *freq); | 1573 | struct iw_freq *freq); |
1540 | 1574 | ||