Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #86978 > unrolled thread

Bug#1104022: wireless-regdb: Consider importing setregdomain and udev rule from Fedora

Started byAdam <debian@voltagex.org>
First post2025-04-24 11:00 +0200
Last post2026-02-16 17:20 +0100
Articles 5 — 5 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#1104022: wireless-regdb: Consider importing setregdomain and udev rule from Fedora Adam <debian@voltagex.org> - 2025-04-24 11:00 +0200
    Bug#1104022: wireless-regdb: Consider importing setregdomain and udev rule from Fedora Salvatore Bonaccorso <carnil@debian.org> - 2025-04-24 14:10 +0200
    Bug#1104022: wireless-regdb: Consider importing setregdomain and udev rule from Fedora Richard Rosner <richard@rosner-online.de> - 2025-08-24 16:00 +0200
    Bug#1104022: wireless-regdb: Consider importing setregdomain and udev rule from Fedora Ben Hutchings <ben@decadent.org.uk> - 2026-02-15 14:40 +0100
    Bug#1104022: marked as done (wireless-regdb: Consider importing  setregdomain and udev rule from Fedora) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2026-02-16 17:20 +0100

#86978 — Bug#1104022: wireless-regdb: Consider importing setregdomain and udev rule from Fedora

FromAdam <debian@voltagex.org>
Date2025-04-24 11:00 +0200
SubjectBug#1104022: wireless-regdb: Consider importing setregdomain and udev rule from Fedora
Message-ID<KF0B3-fQ6T-9@gated-at.bofh.it>
Package: wireless-regdb
Version: 2025.02.20-1
Severity: wishlist
X-Debbugs-Cc: debian@voltagex.org

Dear Maintainer,

Fedora (and others?) have an additional script and udev rule as part of the wireless-regdb package
which attempts to set the wireless country code automatically.

See https://src.fedoraproject.org/rpms/wireless-regdb/tree/rawhide


   * What led up to the situation?
$ sudo iw reg get
global
country US: DFS-FCC
        (902 - 904 @ 2), (N/A, 30), (N/A)
        (904 - 920 @ 16), (N/A, 30), (N/A)
        (920 - 928 @ 8), (N/A, 30), (N/A)
        (2400 - 2472 @ 40), (N/A, 30), (N/A)
        (5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5350 @ 80), (N/A, 24), (0 ms), DFS, AUTO-BW
        (5470 - 5730 @ 160), (N/A, 24), (0 ms), DFS
        (5730 - 5850 @ 80), (N/A, 30), (N/A), AUTO-BW
        (5850 - 5895 @ 40), (N/A, 27), (N/A), NO-OUTDOOR, AUTO-BW, PASSIVE-SCAN
        (5925 - 7125 @ 320), (N/A, 12), (N/A), NO-OUTDOOR, PASSIVE-SCAN
        (57240 - 71000 @ 2160), (N/A, 40), (N/A)

I am not in the US and I belive this is contributing to some of my issues with wifi.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

"options cfg80211 ieee80211_regdom=AU" | sudo tee /etc/modprobe.d/mt7921.conf


   * What was the outcome of this action?
   * What outcome did you expect instead?
Wireless regulatory domain / country code to be set automatically


Regards,
Adam

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.22-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information

[toc] | [next] | [standalone]


#86979

FromSalvatore Bonaccorso <carnil@debian.org>
Date2025-04-24 14:10 +0200
Message-ID<KF3yV-fSdc-3@gated-at.bofh.it>
In reply to#86978
Hi Adam,

On Thu, Apr 24, 2025 at 06:47:34PM +1000, Adam wrote:
> Package: wireless-regdb
> Version: 2025.02.20-1
> Severity: wishlist
> X-Debbugs-Cc: debian@voltagex.org
> 
> Dear Maintainer,
> 
> Fedora (and others?) have an additional script and udev rule as part of the wireless-regdb package
> which attempts to set the wireless country code automatically.
> 
> See https://src.fedoraproject.org/rpms/wireless-regdb/tree/rawhide
> 
> 
>    * What led up to the situation?
> $ sudo iw reg get
> global
> country US: DFS-FCC
>         (902 - 904 @ 2), (N/A, 30), (N/A)
>         (904 - 920 @ 16), (N/A, 30), (N/A)
>         (920 - 928 @ 8), (N/A, 30), (N/A)
>         (2400 - 2472 @ 40), (N/A, 30), (N/A)
>         (5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
>         (5250 - 5350 @ 80), (N/A, 24), (0 ms), DFS, AUTO-BW
>         (5470 - 5730 @ 160), (N/A, 24), (0 ms), DFS
>         (5730 - 5850 @ 80), (N/A, 30), (N/A), AUTO-BW
>         (5850 - 5895 @ 40), (N/A, 27), (N/A), NO-OUTDOOR, AUTO-BW, PASSIVE-SCAN
>         (5925 - 7125 @ 320), (N/A, 12), (N/A), NO-OUTDOOR, PASSIVE-SCAN
>         (57240 - 71000 @ 2160), (N/A, 40), (N/A)
> 
> I am not in the US and I belive this is contributing to some of my issues with wifi.
> 
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?
> 
> "options cfg80211 ieee80211_regdom=AU" | sudo tee /etc/modprobe.d/mt7921.conf
> 
> 
>    * What was the outcome of this action?
>    * What outcome did you expect instead?
> Wireless regulatory domain / country code to be set automatically

Disclaimer, I have not checked how suitable the respective script in
fedora is, but as alternative I would propose that you might ask
Fedora people to submit their adaptions to upstream (even if only
provided as examples, there are already e.g. spec file or a
debian-exmaple directory upstream). Once it is there it would be more
streamline for distros to have a common base .

I'm not sure if this alternative road would be suitable, but proposing
an alternative road. Let's see what Ben thinks on it.

Regards,
Salvatore

[toc] | [prev] | [next] | [standalone]


#88970

FromRichard Rosner <richard@rosner-online.de>
Date2025-08-24 16:00 +0200
Message-ID<Lnjqh-9ZUn-9@gated-at.bofh.it>
In reply to#86978
I'd like to add to this that while it would be great if those scripts/rules could be added, they don't seem to be able to work for every WiFi module. I'm on an Intel AX210, all methods fixing the output of 'iw reg get' fail, via 'iw reg set', through modprobe options or whatever. So probably there is the need to indicate when a WiFi module will just plain out refuse to set the correct regdomain, maybe that can put enough pressure on vendors like Intel to get their stuff into a working state.


Best regards

Richard

[toc] | [prev] | [next] | [standalone]


#91231

FromBen Hutchings <ben@decadent.org.uk>
Date2026-02-15 14:40 +0100
Message-ID<MoKvT-MCc-13@gated-at.bofh.it>
In reply to#86978

[Multipart message — attachments visible in raw view] — view raw

On Thu, 2025-04-24 at 18:47 +1000, Adam wrote:
> Package: wireless-regdb
> Version: 2025.02.20-1
> Severity: wishlist
> X-Debbugs-Cc: debian@voltagex.org
> 
> Dear Maintainer,
> 
> Fedora (and others?) have an additional script and udev rule as part of the wireless-regdb package
> which attempts to set the wireless country code automatically.
> 
> See https://src.fedoraproject.org/rpms/wireless-regdb/tree/rawhide
[...]

In version 2026.02.04-1 I have added a script and udev rule to set the
country code.  However, they require manual configuration because I
don't think it's correct to infer the regulatory domain from time zone:

- The system time zone doesn't necessarily reflect its actual location
- Time zones can cross country boundaries
- Even where this works, there was no provision for handling changes of
time zone

I documented how to configure this in README.Debian, as well as the
limited usefulness of doing so.

Can I close this bug report?

Ben.

-- 
Ben Hutchings
Horngren's Observation:
              Among economists, the real world is often a special case.

[toc] | [prev] | [next] | [standalone]


#91242 — Bug#1104022: marked as done (wireless-regdb: Consider importing setregdomain and udev rule from Fedora)

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2026-02-16 17:20 +0100
SubjectBug#1104022: marked as done (wireless-regdb: Consider importing setregdomain and udev rule from Fedora)
Message-ID<Mp9uh-13Tm-13@gated-at.bofh.it>
In reply to#86978

[Multipart message — attachments visible in raw view] — view raw

Your message dated Mon, 16 Feb 2026 16:56:43 +0100
with message-id <c330a5458f44dd13e6ae1a9eec486d7eb6a1604e.camel@decadent.org.uk>
and subject line Re: Bug#1104022: wireless-regdb: Consider importing setregdomain and udev rule from Fedora
has caused the Debian Bug report #1104022,
regarding wireless-regdb: Consider importing setregdomain and udev rule from Fedora
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1104022: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104022
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web