Re: [PATCH] wifi: nl80211: don't WARN on a missing self-managed regdom
From: Diederik de Haas
Date: Wed Oct 07 2026 - 11:19:37 EST
On Wed Oct 7, 2026 at 4:55 PM CEST, Johannes Berg wrote:
> On Tue, 2026-10-06 at 18:17 +0200, François Roux wrote:
>> nl80211_get_reg_do() has a WARN_ON() for a self-managed wiphy without a
>> private regdomain. Userspace can trigger it with a plain
>> NL80211_CMD_GET_REG request.
>>
>> Drivers can register such a wiphy first and set its regdomain later.
>> ath12k, for example, calls ieee80211_register_hw() and only then applies
>> the regdomain with ath12k_regd_update(). iwd queries the regdomain of a
>> new wiphy as soon as it shows up, so it can hit that window at boot:
>>
>> WARNING: net/wireless/nl80211.c:10828 at nl80211_get_reg_do+0x1d0/0x1fc [cfg80211], CPU#5: iwd/721
>
> I'm not a fan of this, I think the drivers should have the regdom ready.
>
>> The same trace has been reported with an Intel BE200 (iwlwifi).
>
> I _thought_ we fixed that issue.
If that fix is supposed to be in 7.3-rc6 (from Linus), then no.
If that's a recent fix/patch which is f.e. slated for -next/7.4(-rc1),
then can you point me to it? Happy to test it.
Before I reported the/my issue with Intel BE200 [1] I did search a bit
on the linux-wireless ML and saw some patches where ACPI was an (important?)
part. That's why I (so) explicitly mentioned that my system does NOT have
an ACPI based firmware (but U-Boot (with TF-A)).
Cheers,
Diederik
[1] https://lore.kernel.org/linux-wireless/DL5P72WYQVOQ.23G9D01OY3BAA@xxxxxxxxxxxxxx/