Repository navigation
Conversation
ccac1ff to
5e5e412
Compare
Add BCM43224 (14e4:4353) WiFi chip detection for MacBook Air 5,2. When b43/brcmsmac/bcma load before wl, they claim the device and prevent the proprietary wl driver from attaching. Blacklist them in /etc/modprobe.d/broadcom-wl.conf so broadcom-wl-dkms works out of the box on fresh installs. Verified on physical MacBook Air 5,2: 7.8x link speed improvement (144 Mbps → 1170 Mbps) with broadcom-wl-dkms vs brcmsmac.
5e5e412 to
ad56c45
Compare
Omarchy runs linux-omarchy, and the base install already supplies its headers before hardware setup, per agents/skills/install-scripts.md. linux-headers is the stock Arch kernel's, so it pulled in headers for a kernel that is not installed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The latest changes appear safe to merge; no new blocking issue was established. SummaryAdds BCM43224 to Broadcom driver setup, provides an upgrade migration, and tests all three supported chips.
Reviews (6) · Last reviewed commit: "Keep the BCM43224 migration pending when..." · Reviewed by Greptile |
The package already ships /usr/lib/modprobe.d/broadcom-wl-dkms.conf blacklisting b43, b43legacy, bcm43xx, bcma, brcm80211, brcmfmac, brcmsmac and ssb, so the extra /etc file added nothing while wl is installed. Unlike the package's file, it outlived the package: removing broadcom-wl-dkms to fall back to brcmsmac or b43 left both blacklisted and the machine without Wi-Fi after reboot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
|
Thanks for this, @andyholst. I reviewed it and pushed two commits to your branch. The detection line for BCM43224 ( What changed on the branch, and why
What ran, and where All of this ran on a disposable Omarchy VM with a stubbed
The VM has no BCM43224, so whether wl actually binds and performs better on a MacBook Air 5,2 hasn't been tested here. Second opinion Codex Medium reviewed the PR. Its independence from my review isn't guaranteed. It agreed about the headers and the redundant blacklist, and it was the one that spotted the leftover file breaking a fallback to brcmsmac. On the pushed head it found nothing left to act on. For the maintainer The open question isn't about the code. brcmsmac supports BCM43224 in the kernel, and the table in the description shows it connected. So on quattro this machine already has Wi-Fi, and this PR is a choice to switch it to the proprietary wl driver for performance. That decision is the maintainer's. The 1170 Mbit/s figure can't be a link rate for this chip: BCM43224 is 2x2 802.11n, which tops out around 300 Mbit/s. @andyholst, could you say where that number came from? Could you also confirm that Related open PRs also change This now waits on the maintainer. |
|
Diff only adds PCI Please confirm on a MacBook Air 5,2 that wl is the right driver here; #7593 / #13532 are the cautionary tale for shipping wl on Airs where b43/brcmsmac was safer. Nearby chip PRs: #15106 (BCM43228), #11311 (BCM4322 b43-firmware). |
|
Retested on the same MacBook Air 5,2 (BCM43224, What changed in the branch since that table was written:
What was tested:
Not tested: 5 GHz on One practical note for an already installed machine: the interface name changes from |
|
@jandrusk Confirmed on this MacBook Air 5,2. This is not the #7593 / #13532 case. Those are a MacBookAir4,1 with BCM4331 ( What ran, 15 November 2026, Omarchy 4.5.0-3, kernel Same 2.4 GHz network, channel 12, same access point, profile left on
So the switch is for loss and throughput. The client rate stays in the 802.11n range. #15106 is BCM43228 and #11311 is BCM4322 with Not checked: a soak longer than this session, 5 GHz on |
|
@omarchybot The two questions in #10910 (comment) are answered. The branch head is still Where 1170 Mbit/s came from. It was the Does The code points in that review still match the diff: no extra Of the other edits to |
Hardware setup only runs at install, so an Air already on brcmsmac never received broadcom-wl-dkms. The migration installs it when 14e4:4353 is present and b43-firmware is not, then asks for a reboot. BCM4360 and BCM4331 now go through the stubbed lspci path, so a comment that still mentions those IDs cannot keep the test green.
broadcom-wl-dkms blacklists brcmsmac for every kernel, but DKMS only builds wl for kernels whose headers are installed. A BCM43224 machine upgraded from 3.x keeps the stock linux kernel as its boot fallback without headers, so after this migration that kernel would boot with brcmsmac blacklisted and no wl. The header repair in omacom#12074 cannot cover it: it runs earlier, before broadcom-wl-dkms is installed here, and exits. The loop names every Arch repository kernel, the RT flavours included, since each one would lose its driver the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: muse-wonder via pi, thinking high <noreply@pi.dev>
A failed lspci inside the condition read as no BCM43224 present, so the migration exited 0 and was marked complete, never to run again. Capture the query on its own and exit non-zero instead, as the YT6801 migration does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: muse-wonder via pi, thinking high <noreply@pi.dev>
|
Thanks for the retest and the corrected numbers, @andyholst. I reviewed the new migration in 6dbc654 and pushed two commits to your branch. The installer change and your test are unchanged. What changed on the branch, and why
What ran, and where All of this ran on a disposable Omarchy VM on kernel 7.2.15-2-omarchy, with
The VM has no Broadcom radio. Whether Second opinion Codex Medium and muse-wonder (pi, thinking high) reviewed the change over three rounds. Their independence from my review isn't guaranteed. The missing RT kernels and the swallowed For the maintainer
This now waits on the maintainer. |
|
A second hardware data point for Setup. Omarchy 4.5.0-3, kernel
The ssh runs used the same command on both drivers and went through a WireGuard tunnel (Tailscale, direct on the LAN). 1. 2. 3. With
The same file served over HTTP from this machine went from 7.2 MB/s on I did not compare 4. Kernel log when The |
|
I read the new MacBookPro6,2 report and checked the installer and migration at unchanged head GPT-6 High in Codex performed this pass. The required second classification returned |
|
Follow-up on the open question: does the
On Under Omarchy's default The first This corrects my earlier comment. Its |
|
Classification is now agreed as hardware compatibility. I rechecked unchanged head On a fresh disposable Omarchy worker, GPT-6 High in Codex reviewed this pass, with Opus 5.5 High and muse-wonder via pi, thinking high providing the second opinion on this head. They found no verified new code defect and agreed that the automatic driver switch needs a maintainer decision; independence from my review is not guaranteed. One package-conflict lead was checked on another disposable worker: the normal system upgrade replaces the retired prebuilt This remains unverified and waits on the maintainer's decision about the automatic switch, given the reported upload regression under the default congestion control. The hardware reports installed the package manually and do not validate this full head. A maintainer testing an affected machine can fetch this PR into a separate checkout, detach at |
What changes
A 2012 MacBook Air 5,2 (BCM43224, PCI
14e4:4353) gets Wi-Fi from the in-kernelbrcmsmacdriver. Omarchy already installsbroadcom-wl-dkmsfor BCM4360 (14e4:43a0) and BCM4331 (14e4:4331). This chip was left out, and on this Airbrcmsmacassociates but loses a large share of packets to the access point.install/hardware/fix-bcm43xx.shnow treats14e4:4353the same way and installsbroadcom-wl-dkms. The package already blacklistsb43,brcmsmac,bcma, and the other in-kernel Broadcom drivers from/usr/lib/modprobe.d/broadcom-wl-dkms.conf, so this script does not write its own blacklist. That file leaves with the package. An extra/etc/modprobe.dfile would stay behind after uninstall and leave the machine with no Wi-Fi driver.test/shell.d/bcm43xx-wifi-fix-test.shchecks that BCM4360 and BCM4331 are still detected, that BCM43224 installs onlybroadcom-wl-dkms, that no blacklist file is written, and that an Intel card installs nothing.Verification
The branch adds
test/shell.d/bcm43xx-wifi-fix-test.shfor BCM43224 detection, the single package install, no script-written blacklist, and the Intel skip. I did not re-run that script today. The review on 2 October 2026 reported it passing. Today's check is the hardware retest below.Hardware, 15 November 2026, on the physical MacBook Air 5,2 this change is for. Omarchy 4.5.0-3, kernel
7.2.15-1-omarchy, card14e4:4353rev 01. The package was installed by hand on that system (broadcom-wl-dkms6.30.223.271-50). DKMS builtwlfor the running kernel. A live module swap leftbcmabusy, so the clean result is from after a reboot, withwlbound towlp2s0andbrcmsmac/bcmanot loaded. Both sides used the same saved 2.4 GHz network, channel 12, same access point. The profile stayed on802-11-wireless.band=bg.brcmsmacwlafter rebootiw)iwreports no RX rate and no station dump onwlspeed.cloudflare.comThe earlier "1170 Mbit/s" and "100%" figures in this pull request were wrong. 1170 Mbit/s is the rate
nmcliprints for the access point, and it still prints that withwlloaded. BCM43224 is 2x2 802.11n, so the client link stays under about 300 Mbit/s. The measured gain is loss and throughput on the same link: packet loss 20% to 0%, download about 4.4×, average latency unchanged.Not checked: this was not a fresh install through the script, 5 GHz was not remeasured on
wl, and there is no long soak beyond this session. Onbrcmsmac, forcing the profile onto the 5 GHz radio of the same network (channel 36) associated and then fell to MCS 0 with 27% loss, which is why the comparison stayed on 2.4 GHz. The kernel warns thatwlis unmaintained and taints the kernel.Screenshots
No visible change: the installer script and a shell test. Nothing in the shell, panels, or theme changes. On a BCM43224 machine the Wi-Fi interface name changes from
wlp2s0b1towlp2s0oncewlbinds, so a saved NetworkManager profile pinned to the old name has to be unpinned before it reconnects.