projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a65205
)
mac80211: refuse shared key auth when WEP is unavailable
author
Johannes Berg
<johannes.berg@intel.com>
Wed, 21 Jul 2010 08:09:25 +0000
(10:09 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 21 Jul 2010 19:13:42 +0000
(15:13 -0400)
When WEP is not available, we should reject shared
key authentication because it could never succeed.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/mlme.c
b/net/mac80211/mlme.c
index 7a4e4bffbc7158a8fda8de7c2ee336eb8da54b3e..cf8d72196c6523926d3c309cf4dcdcc6d70ac8a1 100644
(file)
--- a/
net/mac80211/mlme.c
+++ b/
net/mac80211/mlme.c
@@
-2031,6
+2031,8
@@
int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,
auth_alg = WLAN_AUTH_OPEN;
break;
case NL80211_AUTHTYPE_SHARED_KEY:
+ if (IS_ERR(sdata->local->wep_tx_tfm))
+ return -EOPNOTSUPP;
auth_alg = WLAN_AUTH_SHARED_KEY;
break;
case NL80211_AUTHTYPE_FT: