- 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.
