Skip to content

Support WPA3 on Wifi #3040

Open
Open

Description

@schildbach

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.

Activity

  1. blazoncek commented on Jan 18, 2023

    @blazoncek
    Contributor

    Can you point to the documentation on this?
    Especially for Arduino platform.

  2. schildbach commented on Jan 18, 2023

    @schildbach
    Author

    https://www.arduino.cc/reference/en/libraries/wifi/ only mentions WPA2 and below. I hope this doesn't mean Arduino doesn't support WPA3.

  3. softhack007 commented on Jan 19, 2023

    @softhack007
    Member

    https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi-security.html

    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 🤣

  4. schildbach commented on Jan 19, 2023

    @schildbach
    Author

    That's an interesting insight – thanks! Stability is certainly more important than WPA3.

  5. Jason2866 commented on Jan 25, 2023

    @Jason2866
    Contributor

    @softhack007 Latest Arduino core 2.0.6 is stable. Tasmota does run rock solid with.
    Code needs to be adopted to the changed APIs ;-)

  6. softhack007 commented on Jan 25, 2023

    @softhack007
    Member

    @softhack007 Latest Arduino core 2.0.6 is stable.

    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.

  7. Jason2866 commented on Jan 25, 2023

    @Jason2866
    Contributor

    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!!!

  8. blazoncek commented on Jan 25, 2023

    @blazoncek
    Contributor

    @Jason2866 could you help us with issues with LittleFS on regular ESP32 and PlatformIO core platform 3.5+?

  9. Jason2866 commented on Jan 25, 2023

    @Jason2866
    Contributor

    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.

  10. Jason2866 commented on Jan 25, 2023

    @Jason2866
    Contributor

    So long story short. To avoid flash corruptions (not restricted to LittleFS!) cores before 2.0.5 can only be used in mode DOUT

  11. blazoncek commented on Jan 25, 2023

    @blazoncek
    Contributor

    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
    • try alternative flashing with esptool

    Is that right?

  12. Jason2866 commented on Jan 25, 2023

    @Jason2866
    Contributor

    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.

  13. 14 remaining items

  14. schildbach commented on Mar 8, 2026

    @schildbach
    Author

    @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?

  15. Jason2866 commented on Mar 8, 2026

    @Jason2866
    Contributor

    @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.

  16. softhack007 commented on Mar 8, 2026

    @softhack007
    Member

    @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?

  17. Jason2866 commented on Mar 8, 2026

    @Jason2866
    Contributor

    @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.

  18. netmindz commented on Mar 8, 2026

    @netmindz
    Member

    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.

    Thanks very useful to know

  19. schildbach commented on Mar 8, 2026

    @schildbach
    Author

    @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.

  20. softhack007 commented on Mar 8, 2026

    @softhack007
    Member

    Btw, are we repeating this discussion from tasmota?

    arendst/Tasmota#20472

  21. Jason2866 commented on Mar 8, 2026

    @Jason2866
    Contributor

    Looks like ;-)

    @schildbach WLED is WLED. Different design choices. Fork and change if you need different settings. It is Open Source.

  22. schildbach commented on Mar 8, 2026

    @schildbach
    Author

    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.

  23. softhack007 commented on Mar 8, 2026

    @softhack007
    Member

    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.

  24. schildbach commented on Mar 8, 2026

    @schildbach
    Author

    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.

  25. softhack007 commented on Mar 8, 2026

    @softhack007
    Member

    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

  26. schildbach commented on Mar 8, 2026

    @schildbach
    Author

    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!

  27. Jason2866 commented on Mar 8, 2026

    @Jason2866
    Contributor

    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.

  28. added this to the 17.0 milestone on Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions