fix(wifi): disable brcmfmac power save to prevent occasional drops - #8
Merged
Conversation
The brcmfmac driver (CM4 onboard WiFi) ships with power saving on; the chip occasionally sleeps and fails to recover, requiring a manual nmcli reconnect (verified on hardware: 'Power save: on', journal shows 'Couldn't initialize supplicant interface: Name owner lost'). Ship /etc/NetworkManager/conf.d/wifi-powersave-off.conf (wifi.powersave=2) in the image so all connections have power save disabled, and document the symptom/root cause/fix in MAINTAINING.
fabiiw05
added a commit
that referenced
this pull request
Jul 25, 2026
Power save (fixed in #8) was not the only WiFi drop. On a WPA2/WPA3- transition, band-steering AP (one SSID, several BSSIDs across 2.4/5 GHz), NetworkManager's background scan roams to another BSSID and brcmfmac fails SAE external auth on the transition BSSID (kernel: brcmf_cfg80211_external_ auth: External authentication failed: status=1). The link then dies -- or stays "connected" while passing no traffic -- until a manual nmcli reconnect. Verified on hardware; power_save was already off. Install a WiFi recovery watchdog (customize.sh): /usr/local/sbin/uconsole-wifi-watchdog driven by uconsole-wifi-watchdog.timer (every 30s). If wlan0 is disconnected, or connected but the default gateway is unreachable across two probes, it forces a NetworkManager reconnect. It only acts when an autoconnect wifi profile exists (never fights a deliberate disconnect) and uses only NetworkManager + iproute2 + iputils (all in base). Document both drop causes and the per-device 5 GHz band-pin mitigation in MAINTAINING (EN/JA). The band pin is network-specific, so it stays a device tweak, not an image default. Co-Authored-By: Claude Opus 4.8 <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.
Summary
WiFi on the uConsole (CM4, brcmfmac) occasionally dropped and required a manual
nmclireconnect.brcmfmacships with power saving on (Power save: on). The chip occasionally sleeps and fails to recover; the journal showsCouldn't initialize supplicant interface: Name owner lost(verified on hardware)./etc/NetworkManager/conf.d/wifi-powersave-off.conf(wifi.powersave=2) at image build time so power save is disabled for all connections, current and future.MAINTAINING.mdandMAINTAINING.ja.md.Verification
bash -n scripts/customize.shpassesiw dev wlan0 set power_save off+ the NM config file applied;iw dev wlan0 get power_savereportsoffand survives NM restart