Checking and setting the wireless regulatory domain [Solved]

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Checking and setting the wireless regulatory domain [Solved]

Postby Fitzcarraldo » Sun Jan 20, 2013 22:28

Today I wanted to find out which wireless regulatory domain is in use on my laptop running SL (installed from the SL 64-bit Xfce 10 LiveDVD and fully upgraded, including kernel), and correct it if necessary. To do that in the case of this installation, I had to install the packages crda and iw (and libnl-3.*, which is needed by iw):

Code: Select all
equo install crda libnl iw

I also had to create the file /etc/udev/rules.d/regulatory.rules containing the following rule:

Code: Select all
KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="/sbin/crda"

Then I could use the command iw reg get to find out the wireless regulatory domain being used by the kernel, and the command iw reg set <ISO 3166-1 alpha-2> to set the correct regulatory domain for the country I'm in:

Code: Select all
# iw reg get
country 00:
   (2402 - 2472 @ 40), (3, 20)
   (2457 - 2482 @ 20), (3, 20), PASSIVE-SCAN, NO-IBSS
   (2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
   (5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
   (5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
# iw reg set GB
# iw reg get
country GB:
   (2402 - 2482 @ 40), (N/A, 20)
   (5170 - 5250 @ 40), (N/A, 20)
   (5250 - 5330 @ 40), (N/A, 20), DFS
   (5490 - 5710 @ 40), (N/A, 27), DFS
#

This does not stick over reboots, but you can add the iw reg set <country code> to a script in /etc/local.d/ (see the README file in that directory for instructions) or, alternatively, if you use NetworkManager add a dispatcher script in the directory /etc/NetworkManager/dispatcher.d/ (DuckDuckGo is your friend).

Ref.: Setting the wireless regulatory domain in Linux on your laptop.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7984
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 1 guest