You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
WLED 0.15.x on an ESP32 (Athom Addressable Strip Controller) connects to Wifi only via WPA2. With WPA2, several kind of attacks are possible that are not possible with WPA3. (e.g. neighbors can disconnect your devices via an deauthentication attack)
Describe the solution you'd like
Support WPA3. The esp-idf SDK seems to be able to do this out of the box since versions 4.3/4.4. ESPHome works with WPA3 on the same hardware too.
Describe alternatives you've considered
If WPA3 cannot be considered, supporting PMF (protected management frames) on WPA2 would provide a similar level of security.
The first mention of WPA3 security mode is in the ESP-IDF v4.3.x docs. So it might be that WPA3 is only possible when building with the newer platform framework - WLED is still on ESP-IDF 3.3.6 (platform = [email protected]) while you might need platform = espressif32@ ^5.0.0 or later to have the WPA3 functionality included in the framework.
Currently we cannot simply "upgrade" the platform, due to crazy bugs and stability problems in ESP-IDF 4.x.y - WLED on esp32 would basicially become unusable and crash randomly. But OK, at least we could have WPA3 ;-)
When espressif would finally get their act together and start testing/fixing regressions on esp32, then -maybe- WPA3 could come in future WLED release ... Right now our chinese friends seem to be more focused on destruction of existing APIs - like deprecating the I2S driver completely - and replacing it with something even more cazy 🤣
As much as I want to belief you ... I've tried the latest core 2.0.6 on a -C3 and -S2, and what i saw was worse than 2.0.4/2.0.5. "Classic ESP32" also crashes too often on latest cores, compared to rock-solid builds with platform version 3.5.0. Maybe we are not ready yet for new cores and newest ESP-IDF.
From my (limited) experiences, arduino-esp32 2.04/2.0.5 (and ESP-IDF 4.4.1 / 4.4.2) still seem to be the better choice when a new platform version is absolutely necessary.
Just can say Tasmota runs weeks without an reboot or WDT on ESP32, ESP32-S2, ESP32-S3 and the ESP32-C3. Yes, it needs changes in code, to get there.
Don't get me wrong, in no way i mean the next statement offending.
WLED is and was (until now) never rock solid on an ESP32.
Never managed to have an uptime over 2 months without an reboot or WDT.
With the old core I doubt you will manage this. The underlying IDF and Arduino code has too many bugs.
To be clear i love WLED and use it!!!
The issue with LittleFS and the older cores is related to the not correct builded precompiled bootloaders. There is no real fix for. Only moving to actual core (2.0.5 and 2.0.6)
Or you have to backport the way the bootloader is builded introduced with core 2.0.5 to older cores. One of more reasons why i started to maintain our own fork and compile the Arduino libs our self. We used only one Flash mode (DOUT) in this time. Other modes will make havoc.
In short flash mode is not always correctly initialized (from the Bootloader) and data gets corrupted when flash is accessed from LittleFS. That's not LittleFS fault.
Probably you have a message like corrupted dir pair
The old cores have a wrong Platformio Python script in Arduino core regarding flash mode.
The next issue Platformio sets the flash mode wrong too for mode QIO.
Took some time to find. If you look you will find PRs from me in both repo.
Next level was to fix the issues with non working S3 and OPI flash. It is working now 100% too.
That is an eye opener. Thank you.
We experimented with QIO and DIO and flash speed of 80MHz due to occasional flickering while frequently accessing flash and/or PSRAM during effect calculations.
To summarize:
update to most recent bootloader
use DOUT flash mode
user more recent PIO platform if it is still compatible with WLED components
Yes, right direction.
EDIT Iirc we used our own builded bootloader too. The provided tried always to switch in mode QIO.
So in these days it can work to use bootloaders from core 2.0.5 for the older cores.
EDIT2: Mode QIO enhances speed not that much. Using 80Mhz is way better increasing speed.
@netmindz My home router (a FritzBox, very common in Germany) doesn't have "WPA3 only". Rather, the highest setting is "WPA2 + WPA3".
Yet, WLED is the only firmware that still connects via WPA2 although it should be possible to use WPA3 on that hardware. Is it perhaps possible to restrict WLED to WPA3, or at least assign a higher priority to WPA3?
@schildbach There is no priority setting in IDF core. Would have to be implemented manually. Not recommended since this will add complexity and additional time for connect.
Normally this is done in the AP. Bad luck Fritz Box does not provide this feature. Probably done not to generate issues from users not knowing what the do.
Btw. removed WPA 3 support in our Tasmota Arduino framework based on IDF 5.x. It takes too much flash and RAM. Can be added when using HybridCompile mode.
@Jason2866 would we need to add specific arduino-esp32 API calls for enabling WPA3 with the WiFi object? Similar to WPA2-enterprise which required some special handling in the WLED code?
@softhack007 No, it will connect to WPA3. The problem is the handshake between Fritz Box and the device. For some reason idk Fritz Box does not use WPA3 and uses WPA2. To solve such behaviour most routers have a setting to allow WPA3 only.
EDIT: Non consumer APs provide a lot of settings for WPA3. There is no WPA3 feature settings setup which is optimal for everything. After some trys i found a setup where the espressif devices always connects in mode WPA3 even there is WPA2 support enabled. And all other WiFi devices are still connecting in mode WPA3.
espressif wifi stack do not support all possible WPA3 ciphers. Not possible for a tiny MCU where wifi is "just" an add on feature and some ciphers needs a lot of resources.
Btw. removed WPA 3 support in our Tasmota Arduino framework based on IDF 5.x. It takes too much flash and RAM. Can be added when using HybridCompile mode.
@softhack007 No, it will connect to WPA3. The problem is the handshake between Fritz Box and the device. For some reason idk Fritz Box does not use WPA3 and uses WPA2. To solve such behaviour most routers have a setting to allow WPA3 only.
I don't think this issue is specific to FritzBox. None of Android, Windows, Linux, ESPHome and various propietary Google, Nest and Tado devices connect with WPA2, all use WPA3 as expected. And they all of course have the ability to fallback to WPA2 if necessary.
Rather, I think this is something in the WPA handling of WLED.
Well, Tasmota priorizes features over security. So I dropped it from my home, in most cases in favor of ESPHome.
WLED on the other hand so far hasn't made an "official" statement about this. To me it appears WPA3 is supported, but a bug prevents it from working in all cases.
Rather, I think this is something in the WPA handling of WLED.
@schildbach WLED does not really "handle" WPA, we just use the standard wifi feature of arduino-esp32. Basicially wifi.begin(...) and nothing more.
Sure, I'm aware WLED isn't implementing the Wifi protocols themselves. When I say WLED, I mean the entire firmware, including all its linked dependencies.
Ok, below info is directly from espressif docs for arduino-esp32 v2.0.17 (our latest 16.0 nightly uses v2.0.18 with the "tasmota" core)
Espressif states that "WPA3 support is resource-intensive", which could imply that 4MB flash becomes too small to store existing wled feature, plus WPA3 "ressource-intensive" extras.
@schildbach as 4MB esp32 are quite old hardware, would you say that dropping 4MB board support (=8MB flash is the new minimum) is an adequate price to pay for WPA3?
as 4MB esp32 are quite old hardware, would you say that dropping 4MB board support (=8MB flash is the new minimum) is an adequate price to pay for WPA3?
Personally, I've got an Athom LS8P and an LS8P-dual, both of which I believe come equipped with 8 MB flash. However, I'd perhaps look at your device statistics to get a feel for the userbase. If people use WLED for smart bulbs, that's probably 4 MB territory.
In any case, enabling WPA3 for an 8 MB image would be a great start!
Quote myself. WPA3 support for 8MB devices can be done:
Btw. removed WPA 3 support in our Tasmota Arduino framework based on IDF 5.x. It takes too much flash and RAM. Can be added when using HybridCompile mode.
Activity
blazoncek commentedon Jan 18, 2023
Can you point to the documentation on this?
Especially for Arduino platform.
schildbach commentedon Jan 18, 2023
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi-security.html
schildbach commentedon Jan 18, 2023
https://www.arduino.cc/reference/en/libraries/wifi/ only mentions WPA2 and below. I hope this doesn't mean Arduino doesn't support WPA3.
softhack007 commentedon Jan 19, 2023
The first mention of WPA3 security mode is in the ESP-IDF v4.3.x docs. So it might be that WPA3 is only possible when building with the newer platform framework - WLED is still on ESP-IDF 3.3.6 (
platform = [email protected]) while you might needplatform = espressif32@ ^5.0.0or later to have the WPA3 functionality included in the framework.Currently we cannot simply "upgrade" the platform, due to crazy bugs and stability problems in ESP-IDF 4.x.y - WLED on esp32 would basicially become unusable and crash randomly. But OK, at least we could have WPA3 ;-)
When espressif would finally get their act together and start testing/fixing regressions on esp32, then -maybe- WPA3 could come in future WLED release ... Right now our chinese friends seem to be more focused on destruction of existing APIs - like deprecating the I2S driver completely - and replacing it with something even more cazy 🤣
schildbach commentedon Jan 19, 2023
That's an interesting insight – thanks! Stability is certainly more important than WPA3.
Jason2866 commentedon Jan 25, 2023
@softhack007 Latest Arduino core 2.0.6 is stable. Tasmota does run rock solid with.
Code needs to be adopted to the changed APIs ;-)
softhack007 commentedon Jan 25, 2023
As much as I want to belief you ... I've tried the latest core 2.0.6 on a -C3 and -S2, and what i saw was worse than 2.0.4/2.0.5. "Classic ESP32" also crashes too often on latest cores, compared to rock-solid builds with platform version 3.5.0. Maybe we are not ready yet for new cores and newest ESP-IDF.
From my (limited) experiences, arduino-esp32 2.04/2.0.5 (and ESP-IDF 4.4.1 / 4.4.2) still seem to be the better choice when a new platform version is absolutely necessary.
Jason2866 commentedon Jan 25, 2023
Just can say Tasmota runs weeks without an reboot or WDT on ESP32, ESP32-S2, ESP32-S3 and the ESP32-C3. Yes, it needs changes in code, to get there.
Don't get me wrong, in no way i mean the next statement offending.
WLED is and was (until now) never rock solid on an ESP32.
Never managed to have an uptime over 2 months without an reboot or WDT.
With the old core I doubt you will manage this. The underlying IDF and Arduino code has too many bugs.
To be clear i love WLED and use it!!!
blazoncek commentedon Jan 25, 2023
@Jason2866 could you help us with issues with LittleFS on regular ESP32 and PlatformIO
coreplatform 3.5+?Jason2866 commentedon Jan 25, 2023
The issue with LittleFS and the older cores is related to the not correct builded precompiled bootloaders. There is no real fix for. Only moving to actual core (2.0.5 and 2.0.6)
Or you have to backport the way the bootloader is builded introduced with core 2.0.5 to older cores. One of more reasons why i started to maintain our own fork and compile the Arduino libs our self. We used only one Flash mode (DOUT) in this time. Other modes will make havoc.
In short flash mode is not always correctly initialized (from the Bootloader) and data gets corrupted when flash is accessed from LittleFS. That's not LittleFS fault.
Probably you have a message like
corrupted dir pairThe old cores have a wrong Platformio Python script in Arduino core regarding flash mode.
The next issue Platformio sets the flash mode wrong too for mode QIO.
Took some time to find. If you look you will find PRs from me in both repo.
Next level was to fix the issues with non working S3 and OPI flash. It is working now 100% too.
Jason2866 commentedon Jan 25, 2023
So long story short. To avoid flash corruptions (not restricted to LittleFS!) cores before 2.0.5 can only be used in mode
DOUTblazoncek commentedon Jan 25, 2023
That is an eye opener. Thank you.
We experimented with QIO and DIO and flash speed of 80MHz due to occasional flickering while frequently accessing flash and/or PSRAM during effect calculations.
To summarize:
Is that right?
Jason2866 commentedon Jan 25, 2023
Yes, right direction.
EDIT Iirc we used our own builded bootloader too. The provided tried always to switch in mode QIO.
So in these days it can work to use bootloaders from core 2.0.5 for the older cores.
EDIT2: Mode QIO enhances speed not that much. Using 80Mhz is way better increasing speed.
14 remaining items
schildbach commentedon Mar 8, 2026
@netmindz My home router (a FritzBox, very common in Germany) doesn't have "WPA3 only". Rather, the highest setting is "WPA2 + WPA3".
Yet, WLED is the only firmware that still connects via WPA2 although it should be possible to use WPA3 on that hardware. Is it perhaps possible to restrict WLED to WPA3, or at least assign a higher priority to WPA3?
Jason2866 commentedon Mar 8, 2026
@schildbach There is no priority setting in IDF core. Would have to be implemented manually. Not recommended since this will add complexity and additional time for connect.
Normally this is done in the AP. Bad luck Fritz Box does not provide this feature. Probably done not to generate issues from users not knowing what the do.
Btw. removed WPA 3 support in our Tasmota Arduino framework based on IDF 5.x. It takes too much flash and RAM. Can be added when using HybridCompile mode.
softhack007 commentedon Mar 8, 2026
@Jason2866 would we need to add specific arduino-esp32 API calls for enabling WPA3 with the
WiFiobject? Similar to WPA2-enterprise which required some special handling in the WLED code?Jason2866 commentedon Mar 8, 2026
@softhack007 No, it will connect to WPA3. The problem is the handshake between Fritz Box and the device. For some reason idk Fritz Box does not use WPA3 and uses WPA2. To solve such behaviour most routers have a setting to allow WPA3 only.
EDIT: Non consumer APs provide a lot of settings for WPA3. There is no WPA3 feature settings setup which is optimal for everything. After some trys i found a setup where the espressif devices always connects in mode WPA3 even there is WPA2 support enabled. And all other WiFi devices are still connecting in mode WPA3.
espressif wifi stack do not support all possible WPA3 ciphers. Not possible for a tiny MCU where wifi is "just" an add on feature and some ciphers needs a lot of resources.
netmindz commentedon Mar 8, 2026
Thanks very useful to know
schildbach commentedon Mar 8, 2026
I don't think this issue is specific to FritzBox. None of Android, Windows, Linux, ESPHome and various propietary Google, Nest and Tado devices connect with WPA2, all use WPA3 as expected. And they all of course have the ability to fallback to WPA2 if necessary.
Rather, I think this is something in the WPA handling of WLED.
softhack007 commentedon Mar 8, 2026
Btw, are we repeating this discussion from tasmota?
arendst/Tasmota#20472
Jason2866 commentedon Mar 8, 2026
Looks like ;-)
@schildbach WLED is WLED. Different design choices. Fork and change if you need different settings. It is Open Source.
schildbach commentedon Mar 8, 2026
Well, Tasmota priorizes features over security. So I dropped it from my home, in most cases in favor of ESPHome.
WLED on the other hand so far hasn't made an "official" statement about this. To me it appears WPA3 is supported, but a bug prevents it from working in all cases.
softhack007 commentedon Mar 8, 2026
@schildbach WLED does not really "handle" WPA, we just use the standard
wififeature of arduino-esp32. Basiciallywifi.begin(...)and nothing more.schildbach commentedon Mar 8, 2026
Sure, I'm aware WLED isn't implementing the Wifi protocols themselves. When I say WLED, I mean the entire firmware, including all its linked dependencies.
softhack007 commentedon Mar 8, 2026
Ok, below info is directly from espressif docs for arduino-esp32 v2.0.17 (our latest 16.0 nightly uses v2.0.18 with the "tasmota" core)
Espressif states that "WPA3 support is resource-intensive", which could imply that 4MB flash becomes too small to store existing wled feature, plus WPA3 "ressource-intensive" extras.
@schildbach as 4MB esp32 are quite old hardware, would you say that dropping 4MB board support (=8MB flash is the new minimum) is an adequate price to pay for WPA3?
https://github.com/espressif/arduino-esp32/blob/5e19e086c43d0fa5e5a596497ff8f11a0a43f6c2/docs/source/troubleshooting.rst?plain=1#L107-L125
https://github.com/espressif/arduino-esp32/blob/5e19e086c43d0fa5e5a596497ff8f11a0a43f6c2/libraries/WiFi/src/WiFiSTA.cpp#L417-L425
schildbach commentedon Mar 8, 2026
Personally, I've got an Athom LS8P and an LS8P-dual, both of which I believe come equipped with 8 MB flash. However, I'd perhaps look at your device statistics to get a feel for the userbase. If people use WLED for smart bulbs, that's probably 4 MB territory.
In any case, enabling WPA3 for an 8 MB image would be a great start!
Jason2866 commentedon Mar 8, 2026
Quote myself. WPA3 support for 8MB devices can be done: