Hello:
I seem to have some problems with my Regulatory Domain settings.
My setup is:
tc@box:~$ uname -a
Linux box 4.8.17-tinycore #2017 SMP Sun Mar 5 15:49:22 UTC 2017 i686 GNU/Linux
My wifi adapter is:
tc@box:~$ lsusb
Bus 002 Device 003: ID 0cf3:1006 Atheros Communications, Inc. TP-Link TL-WN322G v3 / TL-WN422G v2 802.11g [Atheros AR9271]
The Regulatory Domain is apaprently set (hard wired?) to CN (China):
(snip from dmesg)
ath9k_htc 2-5:1.0: FW RMW support: On
ath: EEPROM regdomain: 0x809c
ath: EEPROM indicates we should expect a country code
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x52
ath: Country alpha2 being used: CN
ath: Regpair used: 0x52
ieee80211 phy0: Atheros AR9271 Rev:1
But once boot is finished, it seems to have been set to 00:
tc@box:~$ iw reg get
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20)
(2457 - 2482 @ 20), (6, 20), PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), DFS, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0)
Now, when I try to set it to the code I need for where I am located (AR), it wont 'stick':
eg:
tc@box:~$ sudo iw reg set AR
tc@box:~$ iw reg get
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20)
(2457 - 2482 @ 20), (6, 20), PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), DFS, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0)
tc@box:~$
Any idea as how to set the country code properly?
Thanks in advance.
MM