Support Wi-Fi during light sleep - #6394
Merged
Merged
Conversation
bugadani
requested review from
JurajSadel,
MabezDev,
bjoernQ and
playfulFence
as code owners
September 24, 2026 19:51
bugadani
marked this pull request as draft
September 24, 2026 19:51
bugadani
force-pushed
the
wifi-light-sleep
branch
2 times, most recently
from
September 24, 2026 20:12
a5c0cf6 to
857c8dd
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
A radio driver in another crate can then claim its wakeup source, and refuse the sleeps that are not safe for it. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
bugadani
force-pushed
the
wifi-light-sleep
branch
from
September 25, 2026 07:46
857c8dd to
ac43eba
Compare
bugadani
marked this pull request as ready for review
September 25, 2026 11:07
Contributor
|
Looks good but breaks the |
Contributor
Author
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.
REGDMA-less variant, so it doesn't achieve the absolute minimum power consumption, but we have to start somewhere before implementing that machinery in a way that it can be part of esp-hal's public API.
Current draw was only tested on the jumpered devkits, C2, C3, S2 and S3 are only functionally tested for now.
Changelog
esp-hal
WakeupSource::enable_with_hooks. The entry hook can refuse a light sleep or keep a clock source running (WrappedSleepConfig).LowPower::sleep_lightreturnsLightSleep.LightSleep::Refusedtells that a wakeup source refused the sleep.esp-rtos
esp-radio