projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cfg80211: disallow shared key authentication with key index 4
[cascardo/linux.git]
/
net
/
wireless
/
nl80211.c
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index
7ebad35
..
c11c1ef
100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-7388,7
+7388,7
@@
static int nl80211_authenticate(struct sk_buff *skb, struct genl_info *info)
(key.p.cipher != WLAN_CIPHER_SUITE_WEP104 ||
key.p.key_len != WLAN_KEY_LEN_WEP104))
return -EINVAL;
- if (key.idx >
4
)
+ if (key.idx >
3
)
return -EINVAL;
} else {
key.p.key_len = 0;