* ath9k / kernel 5.4.13 unable to set Regdomain country ; stuck at =CN ?
@ 2020-01-21 4:41 PGNet Dev
0 siblings, 0 replies; only message in thread
From: PGNet Dev @ 2020-01-21 4:41 UTC (permalink / raw)
To: linux-wireless
i've a linux box, running latest kernel/stable
uname -rm
5.4.13-24.g5cf5394-default x86_64
with a usb-attached atheros wifi dongle
lsusb | grep -i ath
Bus 001 Device 006: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n
it's recognized & functioning on boot
lsmod | egrep -i "ath|80211"
ath9k_htc 81920 0
ath9k_common 20480 1 ath9k_htc
ath9k_hw 491520 2 ath9k_htc,ath9k_common
ath 36864 3 ath9k_htc,ath9k_common,ath9k_hw
mac80211 970752 4 ath9k_htc,rt2x00lib,rt2x00usb,rt2800lib
cfg80211 823296 5 ath9k_htc,ath9k_common,rt2x00lib,ath,mac80211
libarc4 16384 1 mac80211
rfkill 28672 5 rfkill_gpio,cfg80211
usbcore 307200 6 ath9k_htc,xhci_hcd,rt2800usb,usbhid,xhci_pci,rt2x00usb
dm_multipath 36864 0
dm_mod 155648 28 dm_multipath
hwinfo --wlan
...
21: USB 00.0: 0282 WLAN controller
[Created at usb.122]
Unique ID: BobO.B4pqOVVOeJE
Parent ID: ADDn.DFkaVl_rzX0
SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2:1.0
SysFS BusID: 1-1.2:1.0
Hardware Class: network
Model: "Qualcomm Atheros AR9271 802.11n"
Hotplug: USB
Vendor: usb 0x0cf3 "Qualcomm Atheros Communications"
Device: usb 0x9271 "AR9271 802.11n"
Revision: "1.08"
Serial ID: "12345"
Driver: "ath9k_htc"
Driver Modules: "ath9k_htc"
Device File: wlp0s20u1u2
Features: WLAN
Speed: 480 Mbps
HW Address: ec:08:6b:...
Permanent HW Address: ec:08:6b:...
Link detected: no
WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13
WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472
WLAN encryption modes: WEP40 WEP104 TKIP CCMP
WLAN authentication modes: open sharedkey wpa-psk wpa-eap
Module Alias: "usb:v0CF3p9271d0108dcFFdscFFdpFFicFFisc00ip00in00"
Driver Info #0:
Driver Status: ath9k_htc is active
Driver Activation Cmd: "modprobe ath9k_htc"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #26 (Hub)
...
but the region code sets to China, "=CN"
dmesg | egrep -i "ath|80211"
[ 8.359444] usb 1-1.2: Manufacturer: ATHEROS
[ 16.427256] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 16.427734] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47abc4dd84'
[ 16.871247] usb 1-1.2: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[ 16.871435] usbcore: registered new interface driver ath9k_htc
[ 17.019552] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3572, rev 0223 detected
[ 17.032734] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0009 detected
[ 17.033106] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 17.284607] usb 1-1.2: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[ 17.536427] ath9k_htc 1-1.2:1.0: ath9k_htc: HTC initialized with 33 credits
[ 17.803159] ath9k_htc 1-1.2:1.0: ath9k_htc: FW Version: 1.4
[ 17.803163] ath9k_htc 1-1.2:1.0: FW RMW support: On
[ 17.803166] ath: EEPROM regdomain: 0x809c
[ 17.803166] ath: EEPROM indicates we should expect a country code
[ 17.803168] ath: doing EEPROM country->regdmn map search
[ 17.803169] ath: country maps to regdmn code: 0x52
>>> [ 17.803170] ath: Country alpha2 being used: CN
[ 17.803171] ath: Regpair used: 0x52
[ 17.817209] ieee80211 phy1: Atheros AR9271 Rev:1
[ 17.820065] ath9k_htc 1-1.2:1.0 wlp0s20u1u2: renamed from wlan0
and
iw reg get
global
country CN: DFS-FCC
(2402 - 2482 @ 40), (N/A, 20), (N/A)
(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 59400 @ 2160), (N/A, 28), (N/A)
(59400 - 63720 @ 2160), (N/A, 44), (N/A)
(63720 - 65880 @ 2160), (N/A, 28), (N/A)
phy#1
country CN: DFS-FCC
(2402 - 2482 @ 40), (N/A, 20), (N/A)
(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 59400 @ 2160), (N/A, 28), (N/A)
(59400 - 63720 @ 2160), (N/A, 44), (N/A)
(63720 - 65880 @ 2160), (N/A, 28), (N/A)
even with
cat /etc/modprobe.d/atheros.conf
ath cn=US
cfg80211 ieee80211_regdom=US
what add'l config/workaround is needed to set the reg domain country? add'l kernel config? or
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-21 4:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-21 4:41 ath9k / kernel 5.4.13 unable to set Regdomain country ; stuck at =CN ? PGNet Dev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).