WPA_CSE_WEP104 was being incorrectly checked.
Found with: clang
This commit is contained in:
parent
f18b8b6287
commit
a6d8c83fd9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user