Skip to content

Default to no WiFi power save on ESP-Hosted boards (temporary) - #11930

Merged
dhalbert merged 1 commit into
adafruit:mainfrom
dhalbert:esp-hosted-ps-none
Nov 20, 2026
Merged

dhalbert merged 1 commit into
adafruit:mainfrom
dhalbert:esp-hosted-ps-none

Conversation

@dhalbert

@dhalbert dhalbert commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

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_management set to the default, wifi.PowerManagement.MIN. We discovered that setting it to wifi.PowerManagement.NONE avoids 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_NONE when the radio starts, so wifi.radio.power_management defaults to wifi.PowerManagement.NONE. Code can still set it to MIN or MAX.

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_management reads NONE after boot and after re-enabling the radio, setting MIN works, 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.

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>
@dhalbert dhalbert changed the title Default to no WiFi power save on ESP-Hosted boards Default to no WiFi power save on ESP-Hosted boards (temporary) Nov 19, 2026

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks!

@dhalbert
dhalbert merged commit 6df3942 into adafruit:main Nov 20, 2026
309 checks passed
@dhalbert
dhalbert deleted the esp-hosted-ps-none branch November 20, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants