Repository navigation
Default to no WiFi power save on ESP-Hosted boards (temporary) - #11930
Merged
Merged
Conversation
With some access points, inbound traffic to the Metro ESP32-P4 stalls in MIN_MODEM power save. A likely cause is the ESP32-C6 co-processor missing broadcast and ARP frames in power save: espressif/esp-idf#16096 Default to WIFI_PS_NONE until this is fixed upstream. Workaround for adafruit#11682. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Diagnosis by Claude and @dhalbert, with testing by @BlitzCityDIY. Code by Claude.
Problem
On the Metro ESP32-P4, with some access points (noticed on a WiFi 6 router with its 6 GHz band enabled), inbound traffic stalls: gateway pings time out and TLS connections fail with EOF errors.
This happens with
wifi.radio.power_managementset to the default,wifi.PowerManagement.MIN. We discovered that setting it towifi.PowerManagement.NONEavoids the problem.This problem seems like what is described in espressif/esp-idf#16096, where an ESP32-C6 in power save misses broadcast and ARP frames from the access point.
Thanks to @BlitzCityDIY for her testing, as I was unable to reproduce the problem on my own network, which does not have WiFi 6.
Workaround fix
On boards whose WiFi runs on an ESP-Hosted co-processor, set
WIFI_PS_NONEwhen the radio starts, sowifi.radio.power_managementdefaults towifi.PowerManagement.NONE. Code can still set it toMINorMAX.The docstring was changed to note the different default and say it is a temporary workaround.
Testing
The workaround setting change was tested on a Metro ESP32-P4 (ESP-Hosted 2.12.11 on the C6):
power_managementreadsNONEafter boot and after re-enabling the radio, settingMINworks, and gateway pings are clean. However, it needs testing on a susceptible network to make sure it's effective.#11682 stays open to track the upstream fix.
@BlitzCityDIY, could you test the build? Thanks.