mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Fix encryptionType for AUTH_WPA_WPA2_PSK
This commit is contained in:
parent
2328e07637
commit
4287d522bd
@ -311,10 +311,12 @@ uint8_t ESP8266WiFiClass::encryptionType(uint8_t i)
|
|||||||
return ENC_TYPE_NONE;
|
return ENC_TYPE_NONE;
|
||||||
if (authmode == AUTH_WEP)
|
if (authmode == AUTH_WEP)
|
||||||
return ENC_TYPE_WEP;
|
return ENC_TYPE_WEP;
|
||||||
if (authmode == AUTH_WPA_PSK || authmode == AUTH_WPA_WPA2_PSK) // fixme: is this correct?
|
if (authmode == AUTH_WPA_PSK)
|
||||||
return ENC_TYPE_TKIP;
|
return ENC_TYPE_TKIP;
|
||||||
if (authmode == AUTH_WPA2_PSK)
|
if (authmode == AUTH_WPA2_PSK)
|
||||||
return ENC_TYPE_CCMP;
|
return ENC_TYPE_CCMP;
|
||||||
|
if (authmode == AUTH_WPA_WPA2_PSK)
|
||||||
|
return ENC_TYPE_AUTO;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user