Repository navigation
Install BCM43602 NVRAM so 2017 Touch Bar Macs see 5 GHz Wi-Fi - #7671
shawnyeager wants to merge 9 commits into
Conversation
linux-firmware-broadcom ships the chip firmware but no board calibration, so brcmfmac only advertises 2.4 GHz. Install a calibrated NVRAM under firmware/updates on Apple machines with PCI 14e4:43ba, and migrate existing installs.
There was a problem hiding this comment.
Pull request overview
Adds BCM43602 NVRAM calibration to restore 5 GHz Wi-Fi on affected Intel Macs.
Changes:
- Detects eligible Apple BCM43602 hardware and installs generic/DMI-specific NVRAM.
- Migrates existing installations and requests a reboot.
- Adds documentation and shell coverage.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
install/hardware/apple/brcmfmac-43602.sh |
Implements detection and NVRAM installation. |
install/hardware/apple/brcmfmac43602-pcie.txt |
Adds calibrated BCM43602 NVRAM data. |
install/hardware/apple/fix-brcmfmac-5ghz.sh |
Adds the installation leaf. |
install/hardware/all.sh |
Runs the new hardware fix. |
migrations/1787312531.sh |
Applies the fix to existing installations. |
manual/44-mac-support.md |
Documents BCM43602 5 GHz support. |
test/shell.d/brcmfmac-5ghz-test.sh |
Tests detection, installation, MAC handling, and migration. |
test/shell.d/unowned-system-paths-test.sh |
Allows the firmware override destination. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Reviewed here, with an independent second opinion from What actually ran. 1. The gate is chip-wide; the calibration is board-specific. That is not hypothetical on two counts. Your own test asserts a 2015 Worth connecting: the kernel log in #7672 quotes Gating 2. With no wireless interface visible, the donor's MAC ships as the machine's MAC. brcmfmac-43602.sh:118-123 substitutes the live address only inside Codex added the part that makes this sharp, and my own check of this machine's Deleting the 3. The completeness check clobbers, shadows, and never refreshes. 4. A failed install reports success, and the migration then marks itself done. 5. The clobber assertion is vacuous, and I proved it. brcmfmac-5ghz-test.sh:181-186 writes a placeholder NVRAM and then calls Two smaller test notes. The leaf test invokes with 6. Provenance and licence. brcmfmac-43602.sh:9-12 names bugzilla attachment 290569; the data file itself starts straight into data with no header, and brcmfmac's parser ignores What is right, since a review that lists only problems misleads. On the allowlist entry. test/shell.d/unowned-system-paths-test.sh:33-36 records Overlap you should know about. #7487 by @csvenke fixes the same defect on the same chip, verified on the same MacBookPro14,3, with a different NVRAM (bugzilla 193121, Boot Camp lineage, Where the second opinion stands. Codex agreed with findings 1 through 4, which I had already reached — its independence is not currently guaranteed, since it runs as the same user and could read this machine, though I grepped its log and found no transcript reads. What it contributed on its own terms stands regardless: the per-model subsystem IDs, the MacBookPro13,3 degradation report, the kernel's duplicate-MAC guard covering a different placeholder than yours, the vacuous clobber assertion, and the licence statement in the upstream gist. I verified each of those against the source or fetched the page before repeating it here. Waiting on: the maintainer, for the licence question and for the choice between this and #7487; and on you, for findings 1 through 5. Nothing needs another pass from me until the branch moves. |
Gate on the 2017 Touch Bar models this dump has actually been seen to work on. Resolve the NIC through its PCI BDF, strip macaddr= when none is found, never overwrite an existing board file, and stop wrapping install in `if` so a failed write cannot mark the migration done.
|
Addressed the review on the branch. 1. Gate. 2. MAC. Live address comes from 3. Completeness / clobber / shadow. Three-marker check is gone. If a generic or DMI-specific board file already exists in 4. Failed install looking like success. 5. Vacuous clobber test. The existing-file case now uses 6. Provenance. The data file now starts with vs #7487. Kept |
Arch ships everything under /usr/lib/firmware zstd-compressed — all 118 files in /usr/lib/firmware/brcm on a current install, including NVRAM board files for other chips such as `brcmfmac43241b4-sdio.Intel Corp.-VALLEYVIEW C0 PLATFORM.txt.zst`. The existence check looked only for the uncompressed name, so the rule that a packaged linux-firmware board file outranks this copy could never fire on Arch: the day linux-firmware ships one for the BCM43602, the check would miss it and write the override on top, shadowing it for good. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-Authored-By: Codex XHigh <noreply@openai.com>
|
Re-reviewed at f81f4d5. All five findings from the last pass are closed, and I proved each one by breaking the code it guards rather than by reading it. Three new things, one of which I fixed on your branch. What ran. The five.
Pushed to your branch: f81f4d5, "See a packaged board file that arrives compressed". Still open, and yours to decide how: a failed install strands a half-done state that the skip guard then makes permanent.
Your test at Smaller. Two things the move made non-obvious, both fine. The data file now lives in Neighbours. #7644 still conflicts with this textually — Second opinion. Waiting on: you, for the half-install and lost-reboot-prompt question; the maintainer, for the licence on the vendored dump and for the choice between this and #7487. |
|
Test report from an Omarchy 4.0.2-1 system. This was a manual NVRAM test, not a checkout of this PR branch. Hardware/software:
Before installing NVRAM:
Manual change:
After:
This validates that a calibrated NVRAM restores 5 GHz on One concern: before NVRAM, the interface reported |
|
Re-reviewed at f81f4d5. The branch has not moved since the last pass, so this is about what the thread learned rather than about new code. Nothing pushed. The second opinion is Housekeeping first, so nothing gets re-litigated. Copilot's review and its four inline comments are dated 21 Aug 11:54, before your 14:09 rewrite, and all four describe code you deleted in 53796d7: What ran. Both things I left open last time are still open, and I re-proved them at this head rather than assuming. Driving the migration with an @caueguerra's report, read against this branch. It is a MacBookPro13,3, which line 61 excludes, and it installs a different file, so it is not a test of this PR. It is corroboration of your design rather than a counter-example, and you should read it that way: the file that worked there is The one part of that report that does land on this branch, and it is new. Before any NVRAM, that card reported A second, separate MAC problem codex found that I had not reasoned about. On the gate, which is the part I want to be careful about. Codex rates Something worth deciding before this merges. The body says Smaller, and both from codex. Neighbours. #7644 still conflicts textually — Waiting on: you, for the partial-install state and the lost reboot prompt, and for whether |
A write that failed part-way could leave a truncated or half-written NVRAM pair under the name the driver loads, where the skip guard then kept it forever and the migration never asked for the reboot. Stage both names under temporary names and rename them into place together, rolling back on failure. Read the MAC from the wiphy's permanent address rather than the netdev's current one, which NetworkManager randomises while scanning, and treat the Broadcom 00:90:4c placeholder as no address so it is never persisted. Give the leaf and the migration the positive if that the other hardware leaves use, and log the install after it succeeds. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QH9zheAn7LKZeTzgwpHqBF
|
Pushed 21b1f92, which closes the items still open from the last two passes and @caueguerra's report.
Fixed by staging.
Agreed, and fixed.
Fixed. The lookup now prefers
Both the leaf and the migration now use the positive
Reworded to say that. Still deciding whether |
Changed the body to |
|
Hardware validation data for the MacBookPro13,3 case that this PR intentionally leaves out:
Important: this does not validate this PR's attachment 290569 on 13,3. We used the separate community calibration from kernel.org Bugzilla attachment 285753, so 13,3 needs model-specific source selection rather than widening the existing 290569 model gate. Before:
Tested installation:
After reboot:
I am preparing a dependent branch that adds the 13,3 calibration as a separate fixture/path and preserves this PR's 14,2/14,3 gate. |
|
Re-reviewed at 21b1f92. Everything left open from the last pass is closed, and each fix is proved by mutation on a disposable VM rather than by the suite passing: reverting the atomic staging fails Three things are new. The An interrupted rename leaves a state the skip guard makes permanent. brcmfmac-43602.sh:161-166 renames the generic name before the DMI-specific name. A kill between the two renames leaves the generic file final and the DMI file as The rename rollback at :162-165 is not covered by the suite. Making the second On the four Copilot comments: all four are moot or wrong at 21b1f92, and your replies are accurate — each was checked against the source rather than taken from either side. One caveat for anyone reading the thread cold: GitHub has re-anchored the Two smaller things. The title still says "2016–2017 Macs" while the gate is Unchanged and still the maintainer's: the licence on a dump whose own header says it is "not provided or licensed by Broadcom or Apple", and the overlap with #7487, which vendors a genuinely different calibration to the same path ( Reviewed here by Claude Opus 5, with a second opinion from codex (gpt-5.6-sol) at xhigh reasoning; the interrupted rename and the uncovered rename rollback are its findings, and its independence is not guaranteed, since read-only sandboxing restricts writes and not reads. Nothing pushed to your branch. |
|
Re-reviewed at 21b1f92. No code change. The The kill between the two Title updated to match the gate ( |
|
Thanks for considering #10141. Our MacBookPro13,3 requirement is a stable per-machine fallback when the firmware exposes the Broadcom placeholder. We generate that address explicitly; we don't require accepting arbitrary kernel- or NetworkManager-randomized addresses as permanent hardware identity. Stricter validation of discovered addresses could therefore coexist with our explicit 13,3 fallback. Please don't treat the stacked branch as a reason to defer the rename-rollback test either; we can adapt/rebase #10141. Our hardware validation remains specific to attachment 285753 on MacBookPro13,3, not attachment 290569 or a wider model gate. |
On MacBookPro14,3, an NVRAM file with no macaddr= key makes brcmfmac time out on cur_etheraddr and fail dongle setup. OTP does not answer. Keep the source line when the 43ba wiphy has no real permanent address; still substitute a live address when it does.
|
Follow-up: stripping |
|
Thanks for the concrete reboot/reload result. We do not have MacBookPro14,3 evidence that contradicts it. A required On our MacBookPro13,3, attachment 285753 plus an explicitly generated stable locally administered address brought up 5 GHz: 5600 MHz/channel 120, 866.6 Mbit/s reported RX, and 20/20 gateway pings without loss on the tested custom 7.2.2 kernel. That is positive evidence for a populated key with a per-installation value on 13,3; it does not validate attachment 290569, the same approach on 14,3, or removal of the key. Our draft fallback derives an address from the local machine-id instead of preserving A useful next hardware test on 14,3 would be a populated, unique locally administered MAC in the same calibration, with recovery access available, checking firmware startup, association and identity after reboot. This is a proposed test, not a completed one. We can adapt #10141 to the updated shared installer; its older stripping fallback should not be treated as overriding your new hardware finding. Additional 13,3 follow-up: custom |
|
Re-reviewed at ffda5d4. One commit since the last pass, and it reverses the previous one's MAC handling, so this is about that. What the delta does. At 21b1f92 the installer stripped The thing that settles most of the thread, and I do not think either of you has it yet. That address is compiled into the chip firmware. On a current worker running One match in the whole blob. So it is not a donor's board address that leaked into attachment 290569 — it is the default the BCM43602 firmware itself carries. That is why @caueguerra and @monomyth both saw exactly that address on a 13,3 with no board file, and it is the mechanism behind "OTP does not answer here" on your 14,3. Two consequences:
Where it does take something away, and this is the finding. That branch is reachable in the ordering So the disagreement is narrower than the thread reads. @monomyth's 6 Sep comment already separates the two questions, and that separation is right: the key must exist (your evidence), and the value should be per-machine (his). #10141's One thing only you can answer, and it decides how much of the above is theoretical: on the 14,3 you verified, what does Prior findings. All three from the last pass are untouched by this delta and still open, and all three remain notes rather than blockers: the What ran. On a disposable worker with no BCM43602 in it: Second opinion. Reviewed here by Claude Opus 5, with a second opinion from codex (gpt-5.6-sol) at xhigh reasoning, pinned to ffda5d4 and checked against the tree. It contributed two things I did not have: it disassembled the Neighbours. #7487, #7644, #10211, #10306, #10314 and #10332 all merge-tree clean against this head today; #10141 conflicts by design, since it rewrites this same shared installer to add a 13,3 source and widen the gate. #10332 reloads brcmfmac around every suspend on 43ba/43bb/43bc, which would pick this NVRAM up without waiting for a reboot — and equally would reapply a wrong address at every wake. #10306 is the ordering interaction above. Waiting on: you, for the |
|
Re-reviewed at ffda5d4. The last comment on this thread was written against 21b1f92, so this answers only the new commit, "Keep macaddr= in BCM43602 NVRAM; stripping it crashes the dongle". What ran, on a disposable worker VM with no BCM43602 in it. The four findings closed at 21b1f92 are still closed at ffda5d4, and I re-proved each by breaking the code it guards rather than by reading it. Installing straight to The fifth one is reversed on purpose, and that is the whole of this review. At 21b1f92 the strip branch meant Two things worth saying plainly about how much that is worth. It is not a duplicate this PR creates: @caueguerra and @monomyth each reported a card presenting exactly The @monomyth's distinction is the one I would put to the maintainer: "a required One item from the second opinion that I checked and can bound. The three rewritten assertions ( Neighbours. #7487 still adds the same Unchanged and still the maintainer's: the licence on a dump whose own header says it is not provided or licensed by Broadcom or Apple, and the choice between this and #7487. Reviewed here by Claude Opus 5, with a second opinion from codex (gpt-5.6-sol) at xhigh reasoning pinned to ffda5d4 and checked against this tree. The |
|
Confirmation on a MacBookPro14,3 (15" 2017, BCM43602 I've been running this same dump since Oct 5 (my numbers are in #7672), but I had put it in place by hand, so for this test I moved my files out of
Then I put my own file back (same dump, with the card's real Apple MAC from macOS). I only ran the install leaf, not migration |
|
@makoni thanks — this is the first run of this pull request's own installer on a MacBookPro14,3 by someone other than its author, and it was read against the code at What it shows. Every step you describe is what the code does on that machine. The gate in What it does not cover. You ran the install leaf, not migration Why the pull request is still not labelled Still open from the last review. The description still ends with Checked by Claude Opus 5.5 against the code at this head, with a second opinion from Codex at medium effort. Codex read the same report against the same files, found no step the code could not produce and no new defect, and named the same gaps (independence not guaranteed). Nothing was run on a worker, since the code has not changed, and nothing was pushed to the branch. Waiting on: the maintainer, to weigh the 14,2 and 14,3 reports, to decide whether this closes #7672, and to decide the licence question. |
|
Tested on a MacBookPro14,2 — works.
Note: the same subsystem |
|
@jongep86 thanks — this is the first report from a MacBookPro14,2 with the file at this head. The code is unchanged at What it shows. The vendored NVRAM, with What it does not cover. You put the file in place by hand, so this pull request's own code did not run: not the gate, the MAC selection, the staged write or migration Subsystem Checked by Claude Opus 5.5 against the code at this head, with a second opinion from Codex at medium effort. Codex got the same four questions and reached the same answers. It found no new defect and judged the change proportionate (independence not guaranteed). Nothing was run on a worker, since the code has not changed, and nothing was pushed to the branch. Waiting on: the maintainer. The 14,2 and 14,3 reports are the evidence to weigh, and they still need to decide whether this closes #7672 (the description ends with |
|
Tested on a MacBookPro14,3 (BCM43602 Before:
10 minutes pinned to 5 GHz, sampled every 10 s: no disconnects. One limit I measured: with no Not tested: 5 GHz after S3 on battery. |
|
@angellindo thanks. This is a second MacBookPro14,3 where the vendored file brings up 5 GHz, and the first with a 10-minute soak on it. The code is unchanged at What it shows. The file in What it does not cover. You copied the file by hand, so this pull request's own code did not run: not the gate at The country-IE limit. I agree it is not caused by this file, but your patched driver changes exactly that handling, so this run cannot show whether a stock 14,3 behaves the same. Why it is still not labelled Checked by Claude Opus 5.5 against the code at this head, with a second opinion from Codex at medium effort. Codex read the same report against the same files and found no new defect. It judged the change still proportionate, and it raised the point about the header's wording (independence not guaranteed). Nothing ran on a worker, because the code has not changed, and nothing was pushed to the branch. Waiting on: the maintainer, to weigh the 14,2 and 14,3 reports, to decide whether this closes #7672 (the description ends with |
|
Follow-up to my earlier comment, same MacBookPro14,3, firmware 7.35.177.61 (sromrev 11 NVRAM). Reminder: brcmfmac here is a local DKMS build with patches. The NVRAM in this PR has no +maxp5ga0=72,72,72,72
+maxp5ga1=72,72,72,72
+maxp5ga2=72,72,72,7272 = 18 dBm. It's the
Works on cold boot and after a 22 min S3 (deep) resume. Caveats: 72 comes from the SROM of one unit, so other units may have a different value; worth checking against another 14,3 before merging. Don't add |
|
@angellindo thanks. The code is unchanged at The missing keys are real. Why nothing was pushed. It is not yet shown to be a defect on a stock install. @makoni ran this file unchanged on a 14,3 with the stock driver (#7672, comment 5988762748) and measured 54–66 Mbit/s upload and TX link rates of 81–162 Mbit/s at 5240 MHz, at about −63 dBm. That is close to your −61/−64 dBm, but the result is the opposite of yours. @jongep86's 14,2 and the author's 14,3 also transmitted at full rates. Your driver is patched in exactly the power-state and country handling that could change this. The value What would settle it. The same A/B with the stock Checked by Claude Opus 5.5 against the file at this head, with a second opinion from Codex at medium effort. Codex agreed that the keys are missing, that the evidence does not yet show a stock-install defect, and that the lines should not be pushed. It also added the Waiting on: the maintainer and @shawnyeager, on whether to add |
|
Apologies, all. The machine I built this PR on is down and I've not gotten it back up and running yet. Going to double down this weekend. |
|
Checked the calibration body of Ignoring the comment header this branch adds, the two files match, including That is the same file already reported on #7672. 5 GHz associates. 2.4 GHz scans, and every 2.4 GHz join is rejected with status 16 before the handshake. Omarchy 4.5 did not install this file on its own; it is only present because it was copied in by hand. |
|
Tested the file in this PR on a MacBookPro14,2 ( As shipped, Please keep With that one line, one cold boot joined both bands without a transmit-power cap and without pinning the saved profile. At the spot where uncalibrated 2.4 GHz used to do about −71 dBm and 170–450 KB/s:
Full notes are on #7672. Still true after the change: |
|
Additional MacBookPro14,3 / BCM43602 The earlier local setup had only the 2.4-GHz band and the generic Broadcom fallback identity. Installing a local board-data profile derived from the firmware's embedded SROM made 5 GHz appear; the recorded link was 5240 MHz, RX/TX link rates 360/200 Mbit/s. The historical ping average improved from approximately 95 ms to 14.081 ms, but this was not a controlled throughput benchmark. The existing The local profile is different from the vendored dump in this PR and uses a stable, randomly generated locally administered unicast One packaging detail may be useful for documentation: on this Limine/UKI installation, merely installing board files on the root filesystem was not the complete boot-persistence fix. The local resolution explicitly included the files in the UKI's initramfs; this machine had no normal mkinitcpio presets for No successful 2.4-GHz association with your payload, latest-head installer validation, regulatory certification, or general compatibility across BCM43602 boards is claimed. Keeping the model/calibration boundary narrow is appropriate. No live radio reload or firmware change was performed to prepare this comment. Prepared with AI assistance from the existing local field report and configuration. Real SSIDs, BSSIDs, device MAC addresses and machine identifiers are omitted. |
|
A data point from a MacBookPro14,3 for the With the file as shipped, 2.4 GHz associates on this board: an access point on channel 6 joined with no status 16. So the copied 5 GHz map doesn't block 2.4 GHz here the way it does on his 14,2. I then changed only that line to
A first quick 20 MB download with the changed line, before these runs, managed only 0.21 MB/s. At this signal that is roughly within the noise, with perhaps a small gain on upload. The signal moved by about 2 dB, against the large jump on the 14,2. After a cold boot with the changed line, 2.4 GHz associated again at about −79 dBm, and 5 GHz still works: 5240 MHz, about −61 dBm, 20 MB downloads at 8.7 and 10.1 MB/s. So on this 14,3 I saw no harm from the change, from one spot and a handful of runs. |
The vendored dump repeats the 5 GHz front-end switch map on swctrlmap_2g, and boardflags3 bit 0x100 tells the firmware to use it. On a MacBookPro14,2 that leaves 5 GHz working and every 2.4 GHz join rejected with status 16 before the handshake, so a machine that was on a 2.4 GHz network before the migration would be off it afterwards. Reported on omacom#7672 and on this pull request by hanscnelson, who found the cause and the value. The replacement is the 2.4 GHz map tested on two MacBookPro14,2 (2.4 GHz and 5 GHz both join) and one MacBookPro14,3 (both bands still join, no regression). Nothing else in the calibration changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: muse-wonder via pi, thinking high <noreply@pi.dev>
|
@hanscnelson, @jbqubit, @makoni: thanks, your reports found a defect in this pull request, and a fix for it is now on the branch as What was wrong. In What changed. One calibration line, to the value you tested, plus a note in the file's header and a test that pins the value: Nothing else in the calibration moved. The file @jbqubit ran (sha256 What was checked. To test this head. The install leaf leaves an existing board file alone, so first move any git clone https://github.com/shawnyeager/omarchy /tmp/omarchy-7671
git -C /tmp/omarchy-7671 checkout c6f6b1e6189f0cd1facd36a5745fe49628d5ca2c
OMARCHY_PATH=/tmp/omarchy-7671 OMARCHY_INSTALL=/tmp/omarchy-7671/install bash /tmp/omarchy-7671/install/hardware/apple/fix-brcmfmac-5ghz.shIt should print Waiting on: a reply here from a MacBookPro14,2 or 14,3 that ran the steps above at |
[Medium impact] The change reaches Wi-Fi setup on two specific 2017 MacBook Pro models. The PR appears safe to merge, with a non-blocking improvement needed to protect overlapping firmware installs. Findings
SummaryAdds BCM43602 board calibration for 2017 Touch Bar MacBook Pros.
Reviews (1) · Last reviewed commit: "Give the BCM43602 NVRAM a 2.4 GHz switch..." · Reviewed by Greptile |
| for target in "${targets[@]}"; do | ||
| if ! brcmfmac43602_as_root mv -f "$target.tmp" "$target"; then | ||
| brcmfmac43602_as_root rm -f "${targets[@]}" "${targets[@]/%/.tmp}" |
There was a problem hiding this comment.
Overlapping installs can remove firmware
Two concurrent omarchy-migrate runs can both pass the installed-file check and write the same .tmp files. If one finishes first, the other's rename can fail because the temporary file is gone. This rollback then deletes the successful run's firmware, even though that run may already be marked complete.
Use a machine-wide lock around the check and install, with temporary files owned by each run.
Knowledge Base Used: Migration framework
|
On Greptile's comment at What was checked. The code at How much it matters. It needs two migration runs by the same user to overlap within the moment between staging and rename. Two Why nothing was pushed. A new head would restart the hardware confirmation asked for above, and that is the larger cost. The small fix, when wanted, is per-run staging names ( Reviewed by Claude Fable 5.2, with second opinions from Codex at medium effort and muse-wonder via pi at high thinking. Both traced the same interleaving and the same outcome, and both advised against moving the head during hardware testing; their independence from this review is not guaranteed. Neither found anything else wrong in the install helper, the leaf or the migration. Waiting on: unchanged, a MacBookPro14,2 or 14,3 report at |
|
Ran the steps at
Apart from the comment header, the calibration this installed is line for line the file I was already running, so this confirms the install path more than a new radio result. One machine, one spot, one reboot, a couple of runs per band. |
|
@makoni, thank you: that is the report this head needed from a 14,3, at the exact commit and with the steps as written. What was checked. Your report, read against the code at What it establishes. On a 14,3, the install leaf and helper at this head work end to end, and both bands join after a reboot with the new Nothing pushed. The head stays at Reviewed by Claude Opus 5.5, with second opinions from Codex at medium effort and muse-wonder via pi at high thinking. Both found every claim in the report consistent with the code, drew the same line between what it does and does not show, recommended keeping the head where it is, and found nothing else wrong at this head beyond the known race; their independence from this review is not guaranteed. Waiting on: the maintainer. omabot marks a hardware fix |
|
Ran the steps at
Both bands joined on the saved WPA2 network, with the saved profile left unpinned. 2.4 GHz used a temporary
One machine, one spot, one reboot. |
|
@hanscnelson, thank you. This was the report the head was waiting for: a MacBookPro14,2 at the exact commit, installed with the steps as written. What was checked. Your report, read against the code at What it establishes. Together with your report from 5 November, this is a before and after on the same 14,2: at the previous head every 2.4 GHz join failed with status 16, and at this head, where only that line changed, 2.4 GHz joins on the first try and 5 GHz still works. With @makoni's 14,3 report, both models now install and join both bands at this commit. It does not cover suspend and resume, other access points or the migration's reboot prompt, and anyone who installed the previous head's file by hand has to move it aside first, as you did, because an existing board file always wins. Nothing pushed. The head stays at Reviewed by Claude Opus 5.5, with second opinions from Codex at medium effort and muse-wonder via pi at high thinking. Both found every claim in the report consistent with the code and read it as a real before and after for the 14,2 fix. Both recommended keeping the head where it is and found nothing else at this head that would hurt a user beyond the known race. Their independence from this review is not guaranteed. Waiting on: the maintainer. omabot marks a hardware fix |
Refs #7672
This covers MacBookPro14,2 and MacBookPro14,3 only, the two models where this dump has field reports. #7672 stays open to track the other BCM43602 boards reported there (MacBookPro12,1, MacBookPro13,3), which need their own calibration.
Why
2017 Touch Bar MacBook Pros (MacBookPro14,2 and MacBookPro14,3) with Broadcom BCM43602 (
14e4:43ba) get 2.4 GHz Wi-Fi out of the box underbrcmfmac, but never see 5 GHz networks.linux-firmware-broadcomships the chip firmware and no board calibration file, so the driver loads with placeholder 5 GHz values (aa5g=1, no per-channel tx-power tables).Verified end-to-end on a MacBookPro14,3 after reboot:
The 5 GHz band is advertised (
iw phyBand 2) and dual-band APs show both frequencies innmcli.Field recipe this follows: csk-grit42/OmarchyOnMacBookPro14.2-2017---A1706- HOWTO-wifi.md. Credit to @csk-grit42 for documenting the BCM43602 NVRAM + regulatory-domain path that unlocked 5 GHz on the 2017 13" Touch Bar MacBook Pro. The NVRAM is the community BCM43602 dump from kernel.org bugzilla attachment 290569 (
ccode=00/regrev=245defers channel legality to the host). Not vendor-certified; treat as known-good for this chip on Linux.macaddr=is requiredThe dump ships
macaddr=00:90:4c:0d:f4:3e(Broadcom OUI, not a device identity). An earlier revision of this PR stripped that line when the 43ba wiphy had no real permanent address, on the theory that the firmware would then use OTP.On MacBookPro14,3 it does not. After reboot,
brcmfmacloaded the NVRAM, the ARM firmware started, then:No
wlp3s0. A module reload reproduced the same crash. Restoring themacaddr=key brought the interface up immediately.Running with no NVRAM file at all (stock 2.4 GHz) is a different path from handing the firmware a board file with the key missing. This chip requires the key in any NVRAM it is given. OTP does not answer here.
The helper still substitutes a real permanent address from the 43ba wiphy when one exists. When it does not — including when the wiphy only reports
00:90:4c:*— the sourcemacaddr=line stays. It is never stripped.What
install/hardware/apple/brcmfmac-43602.sh— Apple vendor +MacBookPro14,2/14,3+ PCI14e4:43baonly. Leaves other BCM43602 boards, 2 GHz-only43bb, T2-era chips (apple-bcm-firmware), and non-Apple Broadcom parts alone.install/hardware/apple/fix-brcmfmac-5ghz.shcopies the calibrated NVRAM to/usr/lib/firmware/updates/brcm/under both the generic name and the DMI-specific namebrcmfmacactually requests. Both names are staged under temporary names and renamed into place together.1787312531does the same for existing installs and setsreboot-required. Does not reloadbrcmfmac(that would drop the link carrying the update).cfg80211country.ccode=00/regrev=245defers to the host, and Omarchy already persistsWIRELESS_REGDOMfrom the timezone.firmware/updatesso they override, and do not collide with,linux-firmware-broadcom.Test plan
./test/clitest/shell.d/brcmfmac-5ghz-test.shmacaddr=stripped → dongle crash, nowlp3s0; key restored → interface comes upFixes #7672