Repository navigation
Conversation
Automated AI review
Outcome: Later country overrides in earlier-sorting modprobe files, such as #9019's Earlier-sorting overrides lose to the drop-inmodprobe orders options by file name and the kernel keeps the last Suggested change: Name the drop-in so admin files sort after it (for example Reproducer (fails at 0fbb7c6)Append this to # The kernel keeps the last ieee80211_regdom= that modprobe passes, and
# modprobe passes options in config file name order, as --showconfig lists them.
effective_regdom() {
"$TEST_REAL_MODPROBE" -C "$modprobe_dir" --showconfig |
grep -E '^options cfg80211 ' | grep -oE '\bieee80211_regdom=[^ ]+' |
tail -n 1 | cut -d= -f2
}
# #9019's workaround, added after installation to pick another country.
reset_fixture
run_setup
printf 'options cfg80211 ieee80211_regdom=GB\n' >"$modprobe_dir/cfg80211.conf"
run_setup
[[ $(effective_regdom) == GB ]] ||
fail "a country override added after installation takes effect" "effective: $(effective_regdom)"
pass "a country override added after installation takes effect"Output at The same result on current More findingsExisting installs are not covered. The leaf runs only at install time or on a manual DetailsOpen question (source analysis only, not reproduced): the leaf acts only when Verified:
Optional notes:
Review informationTest scope: Source and sandbox tests at AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
|
Reviewed at What ran, on a disposable Omarchy VM (no Wi-Fi hardware):
Why the premise isn't established yet. wireless-regdb's udev rule ( @benjarlett, since #9019 is yours: could you run this on the affected MacBookPro14,3, with any grep WIRELESS_REGDOM /etc/conf.d/wireless-regdom
iw reg get | head -3
journalctl -b -k | grep -iE 'regulatory|cfg80211|brcmfmac'
lsinitcpio /boot/*.img 2>/dev/null | grep -E 'cfg80211|brcmfmac'Then please test this head: Findings for the author. Both reproduced on the VM with the real
Codex Medium also found that the test's I pushed nothing. The right shape of the fix depends on the answer above. This is waiting on the reporter's results from affected hardware, then on the author for the two findings, and after that the maintainer decides. |
|
@omarchybot Results from the affected MacBookPro14,1, BCM4350
Relevant kernel excerpts (monotonic timestamps): These results do not establish why the original udev path failed. The saved country is present today, and the missing-initramfs-rule explanation is unsupported on this setup because the modules load from the real root. Rule availability does not prove successful execution during the original failure. In #11745, association succeeded but traffic failed until I have not removed the override, rebuilt images, or performed the requested no-override/patched cold-boot comparison in this follow-up. That comparison remains outstanding; the original workaround result alone does not prove this PR fixes a gap in the stock boot path. Agreed on both code findings: use an early-sorting drop-in, exclude the owned file from override detection, and update/remove it when the saved country changes/is cleared. Those changes are not included in this reply. The current PR is install-time only, with no migration for existing installations. |
|
Thanks, @Clowdyffs. The head is still What your results settle. They rule out the initramfs explanation on your machine. Neither UKI contains cfg80211, and cfg80211 loads from the real root at 12.10 s, after systemd started there at 10.34 s, with What is still open. In #11745,
Your machine can't tell those apart today. It has the The comparison that would settle it runs on current
If traffic passes, the stock path already works and this leaf isn't needed. If it fails while The two code findings. Thanks for confirming both: the drop-in's name sorts after an administrator's This is waiting on the no-override cold boot above. After that, it waits on the two fixes, and then on the maintainer. |
|
Independent cold-boot comparison on a second machine (BCM43602, rather than the reporter's BCM4350) I filed #9019 for this hardware, so I re-ran both paths on it tonight. One machine throughout: MacBookPro14,3, BCM43602
Both were full power-cycles. With the drop-in removed the module parameter was The PR behaves as described on this hardware: it matched Apple DMI plus Two things worth noting:
Happy to run anything further that would close the gaps above. |
|
One correction to the no-override row above, found after posting. I described that boot as the stock path, but this machine is not stock at firmware level: That means the no-override row is a weaker data point than I first made it. With the drop-in removed, cfg80211 still loaded with the default |
|
Following the correction above: I then removed the remaining software sources as well — the saved The reason is the environment rather than the machine. Net effect from my side: this hardware is not a reproduction case for #11745. The patch is a no-op here because the APs already supply the country — it may well be doing real work on hardware where they do not. |
AI-assisted-by: GPT-6.1 Sol high
|
Thanks for the tests and corrections. They confirm BCM43602 boot-parameter setup, but AP country hints and modified NVRAM prevent establishing a fix for the original connectivity failure. Both code findings are addressed:
Using the real modprobe parser, all six review scenarios fail on bash test/shell.d/brcmfmac-regdom-test.sh
bash test/shell.d/brcmfmac-supplicant-test.shThe connectivity premise remains unresolved. The author's US override and local BCM4350 country-map helper remain active; the no-override/patched cold-boot comparison is outstanding. October 5's read-only checks are not a stock control. The description now states this gap and the install-time/manual-only scope, without an existing-install migration or a demonstrated-fix claim for #11745. — GPT-6.1 Sol high |
|
|
Thanks, @Clowdyffs. The new head is That's because this round's classification is unsettled. Claude Opus 5.5 classified the pull request as a hardware compatibility fix. Codex Medium, asked separately, classified it as an enhancement. Both readings hold up. The leaf targets a failure reported on specific Macs (#11745, #9019), but the description itself says it hasn't been shown to fix that failure. @benjarlett found the BCM43602 isn't a reproduction case, because nearby access points already supply the country. So right now it adds a boot-time country hint on top of the wireless-regdb udev rule that already applies the saved country. How it's classified decides what happens next. A fix gets verified on a worker and waits for confirmation from affected hardware. A feature waits until the maintainer asks for it. So I've removed the What would settle it is the same comparison as before: an affected machine with a saved This is waiting on the maintainer to decide how to treat it, or on that cold-boot result. |
|
With saved country US, I tested two control boots without the early country override or local country-map helper. Both passed Wi-Fi traffic. Hardware: MacBookPro14,1 / BCM4350 rev 5, official linux-omarchy The instrumented boot showed the normal wireless-regdb udev helper applying US at approximately 11.54 seconds, before association. Gateway, external-IP and HTTPS probes passed from the first usable route, around 20 seconds. Because the control passed, no PR-patched arm was run. These results don’t demonstrate a benefit from the proposed drop-in on this installation. They also don’t reconstruct or explain the original fresh-install failure. |
|
What the udev rule actually does on this machine, measured I ran this on the MacBookPro14,3 (BCM43602 Starting from a working The hint is accepted — exit status 0 — and the domain is not set to the requested country; it becomes So on this chip the saved country is not reaching cfg80211 through the udev path. My reading is that brcmfmac manages its own regulatory domain here, so a userspace hint gets intersected with the driver's rather than setting the country. That reading is interpretation — the four lines above are the measurement. Two cold boots, both stripped down
Worth separating out, since the NVRAM file came up in your reply: What I cannot show. The failing boots on 4.0.1 are gone — journald rolled them out during the month-long uptime that followed. What survives is the pattern: this machine would not associate on Omarchy until the module-parameter drop-in was applied on 28 August, and the migration note left "after Wi-Fi survives a cold reboot" open at that point. I am not offering a reproduction; I am offering a mechanism that fits it. One question, and it may be the crux. On the 14,1 where the rule applied the country at 11.5 s: what does (Also, small thing: |
|
The report from the failing version, for what it is worth If the gap is a failure on a stock setup with a saved country, the nearest thing to a record is my own report filed two days after that install — #9019, 29 August 2026, Omarchy 4.0.1 / kernel 7.1.9-arch1-2:
That is the world-domain symptom described above, on the version where it failed, before the module-parameter drop-in was applied. The nearby access points eventually supplied the country, which is why it recovered at all rather than staying dead. It is a description rather than a log, and I want to be clear about that: the failing boots' journals were rolled out by journald during the month of uptime that followed, so I cannot produce the four commands for 4.0.1. Today's machine is on 4.0.4 / 7.2.5-3-omarchy, and a passing stripped boot there does not speak to the behaviour of the pair that failed. One more detail that fits the same reading: the |
|
On my MacBookPro14,1, Both boots passed gateway, external-IP and HTTPS checks. In the early-observed boot, the stock udev helper applied US before association, and traffic passed from the first valid probes. So these tests don’t demonstrate a benefit from this PR on my current installation; they don’t reproduce the original fresh-install failure. |
|
Stock regulatory path on this MacBookPro13,3, Omarchy 4.5.0-3, kernel
The card still passes traffic on 5 GHz channel 36 at about −67 dBm. I have not installed |
Propose supplying the saved regulatory country when
cfg80211loads on Apple BCM4350/BCM43602 adapters. Related: #11745 and #9019.The original report describes association without working traffic, recovered by
iw reg set US. Omarchy already has a wireless-regdb module-add udev rule that applies the saved country. We have not established why that existing path failed during the original report, or that this PR provides a connectivity benefit over the stock path. The controlled cold-boot comparison remains outstanding.The install-time leaf matches Apple DMI and BCM4350/BCM43602 PCI IDs, reuses the saved two-letter country, and writes
00-omarchy-brcmfmac-regdom.confso later administrator options win. Rerunning hardware setup updates its generated country or removes the hint when the saved country is missing, cleared, or invalid. Only exact, unedited generated files are managed; edited files and symlink masks are preserved. An unedited file under the previous late-sorting filename is retired on rerun. Administrator overrides are detected through the real modprobe parser, including an independent option identical to the generated one.The ISO's final boot-image build follows hardware setup. This remains an install-time/manual-hardware-setup proposal; no migration for existing installations or live country/driver reset is added.
Validation for this revision:
bash test/shell.d/brcmfmac-regdom-test.sh: all 23 assertion groups pass, including country updates/removal, later and identical administrator overrides, legacy-file handling, edited files, and a mask.bash test/shell.d/brcmfmac-supplicant-test.sh: all 13 groups pass.0fbb7c6cand passes all six with this revision. It covers later administrator priority, changed/cleared/missing country selection, legacy country updates, and a legacy file with an administrator override.Hardware evidence and limits:
[14e4:43a3]. October 1 diagnostics are in Set the boot Wi-Fi country on BCM4350/BCM43602 Macs #11748 (comment). They documented the existing US module override and local country-map helper, so they were not a stock control.Before treating this as a validated connectivity fix, we still need an affected machine with a saved country and stock firmware/driver behavior to fail without the drop-in and pass traffic with it.