diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-07-21 08:09:25 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-21 19:13:42 (GMT) |
commit | 9dca9c490146e787472bc05b264e043311a4c67b (patch) | |
tree | 67545964ffea81aa88e17d1a2dffe9a43f9ca973 /net/mac80211 | |
parent | 5a652052fedbd7869572c757dd2ffc2ed420c69d (diff) | |
download | linux-fsl-qoriq-9dca9c490146e787472bc05b264e043311a4c67b.tar.xz |
mac80211: refuse shared key auth when WEP is unavailable
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>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 7a4e4bf..cf8d721 100644 --- 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: |