summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEmmanuel Grumbach2008-06-28 01:50:13 +0200
committerJohn W. Linville2008-06-30 21:43:53 +0200
commit23976efedd5ecb420b87455787c537eb4aed1981 (patch)
tree902550e2716af5682de8219da1f228e13a5f0adb /include
parenthostap: fix sparse warnings (diff)
downloadkernel-qcow2-linux-23976efedd5ecb420b87455787c537eb4aed1981.tar.gz
kernel-qcow2-linux-23976efedd5ecb420b87455787c537eb4aed1981.tar.xz
kernel-qcow2-linux-23976efedd5ecb420b87455787c537eb4aed1981.zip
mac80211: don't accept WEP keys other than WEP40 and WEP104
This patch makes mac80211 refuse a WEP key whose length is not WEP40 nor WEP104. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/mac80211.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index dae3f9ec1154..bcd1623245cb 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -595,6 +595,15 @@ enum ieee80211_key_alg {
ALG_CCMP,
};
+/**
+ * enum ieee80211_key_len - key length
+ * @WEP40: WEP 5 byte long key
+ * @WEP104: WEP 13 byte long key
+ */
+enum ieee80211_key_len {
+ LEN_WEP40 = 5,
+ LEN_WEP104 = 13,
+};
/**
* enum ieee80211_key_flags - key flags