Skip to content

[Intel Mac P10] Recover the T2 BCM4377 saved-off Wi-Fi firmware stall - #3

Open
iJustinCabral wants to merge 2 commits into
andrew-boyd:intel-mac/p10-broadcom-wififrom
iJustinCabral:intel-mac/p10/t2-wifi-recovery
Open

iJustinCabral wants to merge 2 commits into
andrew-boyd:intel-mac/p10-broadcom-wififrom
iJustinCabral:intel-mac/p10/t2-wifi-recovery

Conversation

@iJustinCabral

Copy link
Copy Markdown

Follow-up to [Intel Mac P10] Consolidate Broadcom calibration and sleep recovery (omacom#12688). Part of the Intel Mac series.

Problem

On MacBookAir9,1 with BCM4377b, booting with Wi-Fi saved off can leave the firmware unresponsive when Wi-Fi is enabled later: NetworkManager shows the radio on, but scanning and association fail.

Change

  • omarchy-t2-wifi-recovery.service watches for the exact brcmf_msgbuf_query_dcmd timeout on the current PHY and schedules the driver's existing Wi-Fi firmware reset. It makes at most three attempts per boot, 120 seconds apart, and never forces Wi-Fi on or changes MPC or radio preferences.
  • Automatic setup is limited to MacBookAir9,1 + T2 + exactly one BCM4377b (14e4:4488). Other T2/BCM4377b models need --allow-untested-model. BCM4364 is always excluded.
  • Fix in this revision: omarchy setup t2-wifi-recovery --disable previously only disabled the unit, so the next hardware setup pass or another user's pending migration re-enabled it. It now also records a machine-wide opt-out (/var/lib/omarchy/t2-wifi-recovery-disabled). Automatic setup and the migration honor it. Running setup explicitly re-enables recovery, and the opt-out is cleared only after that succeeds.

Relationship to other P10 follow-ups

Independent. The suspend follow-up neither requires nor installs this watcher, so the two can merge in either order.

Validation

Shell and Python fixtures cover eligibility, idempotence, administrator units and overrides, the standalone-service conflict, the migration, and disable → hardware setup pass → pending migration → explicit re-enable → refused setup keeps the opt-out. Hardware: the recovery was validated on a saved-off stock boot of MacBookAir9,1 (combined integration install; see docs/t2-wifi-recovery.md). This is a recovery workaround, not a fix for the firmware fault. The opt-out change itself is tested with fixtures only.

🤖 Generated with Claude Code

iJustinCabral and others added 2 commits September 23, 2026 13:19
Saved-off Wi-Fi on MacBookAir9,1 can boot into a firmware query stall
that previously cleared only after a reboot. Watch that stall and apply
a bounded reset. The pre-T2 BCM4350/BCM43602 sleep rebind is unchanged.

Follow-up to intel-mac/p10-broadcom-wifi. Taken from
fix-t2-vintage-mac-support at 3063fa2.
--disable only disabled the unit, so the next hardware setup pass or
another user's pending migration enabled it again. Record a machine-wide
opt-out that automatic setup and the migration honor; explicit setup
re-enables recovery and clears it once setup succeeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant