WPA_CSE_WEP104 was being incorrectly checked.

Found with:	clang
This commit is contained in:
Rui Paulo 2010-10-13 14:37:52 +00:00
parent f18b8b6287
commit a6d8c83fd9

View File

@ -2115,7 +2115,7 @@ ndis_set_cipher(sc, cipher)
len = sizeof(arg);
if (cipher == WPA_CSE_WEP40 || WPA_CSE_WEP104) {
if (cipher == WPA_CSE_WEP40 || cipher == WPA_CSE_WEP104) {
if (!(ic->ic_cryptocaps & IEEE80211_CRYPTO_WEP))
return (ENOTSUP);
arg = NDIS_80211_WEPSTAT_ENC1ENABLED;