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
/
mlme.c
diff --git
a/net/wireless/mlme.c
b/net/wireless/mlme.c
index
c284d88
..
d6abb07
100644
(file)
--- a/
net/wireless/mlme.c
+++ b/
net/wireless/mlme.c
@@
-222,7
+222,7
@@
int cfg80211_mlme_auth(struct cfg80211_registered_device *rdev,
ASSERT_WDEV_LOCK(wdev);
if (auth_type == NL80211_AUTHTYPE_SHARED_KEY)
- if (!key || !key_len || key_idx < 0 || key_idx >
4
)
+ if (!key || !key_len || key_idx < 0 || key_idx >
3
)
return -EINVAL;
if (wdev->current_bss &&