1
0
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:
Ivan Grokhotkov 2014-12-23 12:43:19 +03:00
parent 2328e07637
commit 4287d522bd

View File

@ -311,10 +311,12 @@ uint8_t ESP8266WiFiClass::encryptionType(uint8_t i)
return ENC_TYPE_NONE;
if (authmode == AUTH_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;
if (authmode == AUTH_WPA2_PSK)
return ENC_TYPE_CCMP;
if (authmode == AUTH_WPA_WPA2_PSK)
return ENC_TYPE_AUTO;
return -1;
}