From: Johannes Berg <johannes@sipsolutions.net>
To: "Diederik de Haas" <diederik@cknow-tech.com>,
"François Roux" <franzelfranzel@gmail.com>
Cc: Emmanuel Grumbach <emmanuel.grumbach@intel.com>,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] wifi: nl80211: don't WARN on a missing self-managed regdom
Date: Wed, 07 Oct 2026 17:20:03 +0200 [thread overview]
Message-ID: <2c756a40051873b93c6366b53d4cb35d83bf53c8.camel@sipsolutions.net> (raw)
In-Reply-To: <DLYPG0VDLX08.36QEI8PELLHV@cknow-tech.com>
On Wed, 2026-10-07 at 17:18 +0200, Diederik de Haas wrote:
> 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.
Well, it looks like it got *reverted*.
6895d74c11d8 ("wifi: iwlwifi: mld: initialize regulatory early")
f81aa834bfa9 ("wifi: iwlwifi: mld: Move regulatory domain initialization")
johannes
prev parent reply other threads:[~2026-10-07 15:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-06 16:17 François Roux
2026-10-07 12:33 ` Diederik de Haas
2026-10-07 14:55 ` Johannes Berg
2026-10-07 15:18 ` Diederik de Haas
2026-10-07 15:20 ` Johannes Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2c756a40051873b93c6366b53d4cb35d83bf53c8.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=diederik@cknow-tech.com \
--cc=emmanuel.grumbach@intel.com \
--cc=franzelfranzel@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®