-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
64 Character WPA2 passwords do not work #1921
Comments
Please check 2.2.0-rc1 or git version, this has been fixed in 1b8f6d2: Arduino/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp Lines 109 to 124 in 1b8f6d2
|
According to 802.11 spec, WPA passphrases are 8-63 ASCII chars so this is not a bug and I guess it should stay as it was. See https://stackoverflow.com/a/21554182/12138 |
This bug of sorts seems to be in ESP8266WiFiMulti.cpp as well, around line 174...
While it's right that the passphrase can't be more than 63 chars it should be possible to specify a 64 hex character PSK, as mentioned in zgoda's link, for a non-ASCII based PSK. |
Basic Info
64 Character WPA2 passwords do not work.
Hardware
Hardware: ESP-12 (NodeMCU 1.0 V3)
Core Version: 2.1.0
Description
64 byte(character) WPA2 passwords do not work. The library will return WL_CONNECT_FAILED then WL_IDLE_STATUS. In ESP8266WiFiSTA.cpp in the begin function there is a condition stating that if the password is longer than 63 characters return WL_CONNECT_FAILED. This needs to be 64 characters because strlen is 1 indexed not 0 indexed. When I made that change it worked correctly.
Settings in IDE
Module: NodeMCU 1.0(ESP-12E Module)
Flash Size: 4M
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: nodemcu
Sketch
Debug Messages(Serial Monitor)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: