NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.33k stars 14.3k forks source link

Feature Request - Wireless Regulatory Domain #25378

Open CMCDragonkai opened 7 years ago

CMCDragonkai commented 7 years ago

Just an idea for a NixOS module setting for setting the wireless regulatory domain. Usually set by doing iw reg set AU.

Note that this isn't always possible depending on the wireless driver and wireless card, some cards like Intel have some sort of managed mode or hardware lock that auto locks it to somewhere. My intel 7265D actually fixes it to "00-World", seemingly not able to detect where it is or allow it to be manually specified.

I do not know how this interacts with hostapd country_code specification.

mmahut commented 5 years ago

Any news on this issue?

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
AleXoundOS commented 4 years ago

Still important to me. Though it's closely related to #57053.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

FRidh commented 2 years ago

Database can be enabled with

  hardware.wirelessRegulatoryDatabase = true;

Choosing regdom needs to typically be done in

boot.extraModprobeConfig

For example

  boot.extraModprobeConfig = ''
    options cfg80211 ieee80211_regdom="SE"
  '';
thomaseizinger commented 11 months ago

@FRidh I tried your suggestion but it doesn't seem to apply correctly. Using iw (nix-shell -p iw), it still reads as the wrong regulatory domain afterwards. I can set the domain to something else using iw but that doesn't persist between boots.

Using systool, I can see that the parameter is set correctly:

  Parameters:
    bss_entries_limit   = "1000"
    cfg80211_disable_40mhz_24ghz= "N"
    ieee80211_regdom    = "US"

Is iw mis-reading it?