aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-05-11 07:54:58 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-05-13 15:44:32 -0400
commit08645126dd24872c2e27014f93968f7312e29176 (patch)
tree2011cb3cb2f70d35278ef3b39ea696a058fb7b29 /include/net/cfg80211.h
parent7be69c0b9aa93ef655db4d46e5654996489d62f5 (diff)
cfg80211: implement wext key handling
Move key handling wireless extension ioctls from mac80211 to cfg80211 so that all drivers that implement the cfg80211 operations get wext compatibility. Note that this drops the SIOCGIWENCODE ioctl support for getting IW_ENCODE_RESTRICTED/IW_ENCODE_OPEN. This means that iwconfig will no longer report "Security mode:open" or "Security mode:restricted" for mac80211. However, what we displayed there (the authentication algo used) was actually wrong -- linux/wireless.h states that this setting is meant to differentiate between "Refuse non-encoded packets" and "Accept non-encoded packets". (Combined with "cfg80211: fix a couple of bugs with key ioctls". -- JWL) Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 4c748935ce5f..e69e6c66dd16 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1150,6 +1150,7 @@ struct wireless_dev {
1150 struct { 1150 struct {
1151 struct cfg80211_ibss_params ibss; 1151 struct cfg80211_ibss_params ibss;
1152 u8 bssid[ETH_ALEN]; 1152 u8 bssid[ETH_ALEN];
1153 s8 default_key, default_mgmt_key;
1153 } wext; 1154 } wext;
1154#endif 1155#endif
1155}; 1156};
@@ -1400,6 +1401,15 @@ int cfg80211_wext_siwretry(struct net_device *dev,
1400int cfg80211_wext_giwretry(struct net_device *dev, 1401int cfg80211_wext_giwretry(struct net_device *dev,
1401 struct iw_request_info *info, 1402 struct iw_request_info *info,
1402 struct iw_param *retry, char *extra); 1403 struct iw_param *retry, char *extra);
1404int cfg80211_wext_siwencodeext(struct net_device *dev,
1405 struct iw_request_info *info,
1406 struct iw_point *erq, char *extra);
1407int cfg80211_wext_siwencode(struct net_device *dev,
1408 struct iw_request_info *info,
1409 struct iw_point *erq, char *keybuf);
1410int cfg80211_wext_giwencode(struct net_device *dev,
1411 struct iw_request_info *info,
1412 struct iw_point *erq, char *keybuf);
1403 1413
1404/* 1414/*
1405 * callbacks for asynchronous cfg80211 methods, notification 1415 * callbacks for asynchronous cfg80211 methods, notification