-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Cannot connect to WEP network with WiFi.enableInsecureWEP() #5359
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
Comments
@porkyneal said:
It's required, please edit your post and complete the sketch. In the meantime:
Out of curiosity, why do you want WEP? It's trivially breakable, and the recommendation is to not use it in any app that has even a tiny shred of seriousness. There was a reason why it was left exposed in our core, but I can't even remember it anymore. |
@devyte While WEP is a legitimate configurable option for an access point (even Ubiquiti leave it as an option) I believe I should support it for the ease of my customers. I will get back to you on the points you have raised in due course. |
My quick tests and MVCE: Changing CPU Freq, using the Arduino IDE and setting WIFI_STA only had no effect. With regards to the core versions: I had a git master installed in Arduino IDE from 23/10/18 in which the WiFi.enableInsecureWEP(); acted as expected, when not in the code no WEP connection, when added connection is fine. <-- WORKING In the latest git the same code does not connect, with or without WiFi.enableInsecureWEP();. <-- NOT WORKING In 2.4.2 WiFi.enableInsecureWEP(); was not implemented and WEP connection works fine. <-- WORKING Here is my MVCE that I used for the above, based on the WiFiClientBasic example:
|
UPDATE: When I revert #5317 in the latest git, WiFi.enableInsecureWEP(); works again. |
I believe #5364 should fix this. |
Thanks @dav1901, this does seem to solve my problem. 👍 |
Basic Infos
Platform
Settings in IDE
Problem Description
An existing working setup has stopped being able to connect to a WEP network. If i change AP settings to WPA2 everything works as expected. This has been since upgrading the git core, unfortunately I cannot pinpoint the exact previous working git version.
I have tried before WiFi begin:
WiFi.enableInsecureWEP(true);
WiFi.enableInsecureWEP();
WiFi error is 1 - Unreachable WiFi Network
All other device connect and work perfectly fine with the access point and the same credentials.
Here is a wifiscan output from the ESP, I have obscured the SSIDs, SSIDWPA2 is WPA2 encrytption and SSID WEP - WEP.
"SSID" : SSIDWEP,
"RSSI" : -30,
"encryption" : 5,
"BSSID" : 46:D9:E7:F3:35:B8,
"channel" : 6,
"isHidden" : false
"SSID" : SSIDWPA2,
"RSSI" : -30,
"encryption" : 4,
"BSSID" : 44:D9:E7:F3:35:B8,
"channel" : 6,
"isHidden" : false
MCVE Sketch
I will create an MVCE if required, but my setup routine looks like this:
Debug Messages
The text was updated successfully, but these errors were encountered: