Repository navigation
ESP-IDF example: fall back to WPA2 when WPA3 compatibility mode fails - #109
Merged
Merged
Conversation
Some boxes in WPA2/WPA3 compatibility mode (WPA2 announced, WPA3 offered in a separate element) fail the handshake when ESP-IDF 6 takes the WPA3 path: reason 17, IE_IN_4WAY_DIFFERS, in a loop. On that reason the example now disables WPA3 compatibility mode for the network (the driver saves it with the network), so it joins over WPA2; boxes where it works keep WPA3. The "Wi-Fi lost" message also logs the reason now. Tested on an ESP32-S3 against such a box, from an erased NVS: one refused attempt, then connected. Fixes #108
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #108
The user's box, switched to WPA2/WPA3 compatibility mode, made both ESP32 boards loop on Wi-Fi lost while the ESP8266 (WPA2 only) joined: ESP-IDF 6 takes the WPA3 path offered in the separate element and the box fails the 4-way handshake, reason 17 (
IE_IN_4WAY_DIFFERS).disable_wpa3_compatible_modefor the network (saved with it by the driver) and reconnects over WPA2. Boxes where compatibility mode works keep WPA3.Tested on a real ESP32-S3 against that box, NVS erased first: one refused attempt, the fallback, connected. Built for esp32 and esp32c6.
🤖 Generated with Claude Code