cannot change the regulatory domain ath10k, QCA9984 (QNAP QWA-AC2600)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
linux-firmware (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
linux-image-
hello,
since the update to Ubuntu 20.04.1 I can no longer change the regulatory domain of my QCA9984 cards.
This works fine with Ubuntu 16.04.7 / DD-WRT / OpenWrt.
Or if I build the kernel modules myself .. ("Atheros dynamic user regulatory testing")
The card has "World" in the EEPROM and is sold worldwide.
[ 2.896628] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 2.960023] ath10k_pci 0000:04:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 3.015612] ath10k_pci 0000:03:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[ 3.015613] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[ 3.015934] ath10k_pci 0000:03:00.0: firmware ver 10.4-3.9.0.2-00124 api 5 features no-p2p,
[ 3.069593] ath10k_pci 0000:04:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[ 3.069594] ath10k_pci 0000:04:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[ 3.069933] ath10k_pci 0000:04:00.0: firmware ver 10.4-3.9.0.2-00124 api 5 features no-p2p,
[ 4.247469] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id 0:1 crc32 85498734
[ 4.298899] ath10k_pci 0000:04:00.0: board_file api 2 bmi_id 0:2 crc32 85498734
[ 6.980756] ath10k_pci 0000:03:00.0: unsupported HTC service id: 1536
[ 7.087506] ath10k_pci 0000:03:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 512 raw 0 hwcrypto 1
[ 7.125981] ath10k_pci 0000:04:00.0: unsupported HTC service id: 1536
[ 7.149519] ath: EEPROM regdomain: 0x0
[ 7.149520] ath: EEPROM indicates default country code should be used
[ 7.149520] ath: doing EEPROM country->regdmn map search
[ 7.149521] ath: country maps to regdmn code: 0x3a
[ 7.149521] ath: Country alpha2 being used: US
[ 7.149521] ath: Regpair used: 0x3a
[ 7.152614] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0
[ 7.235146] ath10k_pci 0000:04:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 512 raw 0 hwcrypto 1
[ 7.297494] ath: EEPROM regdomain: 0x0
[ 7.297495] ath: EEPROM indicates default country code should be used
[ 7.297495] ath: doing EEPROM country->regdmn map search
[ 7.297496] ath: country maps to regdmn code: 0x3a
[ 7.297496] ath: Country alpha2 being used: US
[ 7.297497] ath: Regpair used: 0x3a
The ath driver incorrectly sets the card to "US" ( phy0 + phy1 )
global
country DE: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 13), (N/A)
(57000 - 66000 @ 2160), (N/A, 40), (N/A)
phy#1
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30), (N/A)
(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 63720 @ 2160), (N/A, 40), (N/A)
phy#0
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30), (N/A)
(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 63720 @ 2160), (N/A, 40), (N/A)
phy#2 (self-managed)
country DE: DFS-UNSET
(2402 - 2437 @ 40), (6, 22), (N/A), AUTO-BW, NO-HT40MINUS, NO-80MHZ, NO-160MHZ
(2422 - 2462 @ 40), (6, 22), (N/A), AUTO-BW, NO-80MHZ, NO-160MHZ
(2447 - 2482 @ 40), (6, 22), (N/A), AUTO-BW, NO-HT40PLUS, NO-80MHZ, NO-160MHZ
(5170 - 5190 @ 80), (6, 22), (N/A), NO-OUTDOOR, AUTO-BW, IR-CONCURRENT, NO-HT40MINUS, NO-160MHZ, PASSIVE-SCAN
(5190 - 5210 @ 80), (6, 22), (N/A), NO-OUTDOOR, AUTO-BW, IR-CONCURRENT, NO-HT40PLUS, NO-160MHZ, PASSIVE-SCAN
(5210 - 5230 @ 80), (6, 22), (N/A), NO-OUTDOOR, AUTO-BW, IR-CONCURRENT, NO-HT40MINUS, NO-160MHZ, PASSIVE-SCAN
(5230 - 5250 @ 80), (6, 22), (N/A), NO-OUTDOOR, AUTO-BW, IR-CONCURRENT, NO-HT40PLUS, NO-160MHZ, PASSIVE-SCAN
(5250 - 5270 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40MINUS, NO-160MHZ, PASSIVE-SCAN
(5270 - 5290 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40PLUS, NO-160MHZ, PASSIVE-SCAN
(5290 - 5310 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40MINUS, NO-160MHZ, PASSIVE-SCAN
(5310 - 5330 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40PLUS, NO-160MHZ, PASSIVE-SCAN
(5490 - 5510 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40MINUS, NO-160MHZ, PASSIVE-SCAN
(5510 - 5530 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40PLUS, NO-160MHZ, PASSIVE-SCAN
(5530 - 5550 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40MINUS, NO-160MHZ, PASSIVE-SCAN
(5550 - 5570 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40PLUS, NO-160MHZ, PASSIVE-SCAN
(5570 - 5590 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40MINUS, NO-160MHZ, PASSIVE-SCAN
(5590 - 5610 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40PLUS, NO-160MHZ, PASSIVE-SCAN
(5610 - 5630 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40MINUS, NO-160MHZ, PASSIVE-SCAN
(5630 - 5650 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40PLUS, NO-160MHZ, PASSIVE-SCAN
(5650 - 5670 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40MINUS, NO-160MHZ, PASSIVE-SCAN
(5670 - 5690 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40PLUS, NO-160MHZ, PASSIVE-SCAN
(5690 - 5710 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40MINUS, NO-160MHZ, PASSIVE-SCAN
(5710 - 5730 @ 80), (6, 22), (0 ms), DFS, AUTO-BW, NO-HT40PLUS, NO-160MHZ, PASSIVE-SCAN
(5735 - 5755 @ 80), (6, 22), (N/A), AUTO-BW, NO-HT40MINUS, NO-160MHZ
(5755 - 5775 @ 80), (6, 22), (N/A), AUTO-BW, NO-HT40PLUS, NO-160MHZ
(5775 - 5795 @ 80), (6, 22), (N/A), AUTO-BW, NO-HT40MINUS, NO-160MHZ
(5795 - 5815 @ 80), (6, 22), (N/A), AUTO-BW, NO-HT40PLUS, NO-160MHZ
(5815 - 5835 @ 20), (6, 22), (N/A), AUTO-BW, NO-HT40MINUS, NO-HT40PLUS, NO-80MHZ, NO-160MHZ
This means that the card works on various channels with a transmission power that is far too high
country US: DFS-FCC
(5735 - 5835 @ 80), (N/A, 30), (N/A)
30dB = 1W
while in Germany only 25mW are allowed
DE: DFS-ETSI
(5725 - 5875 @ 80), (N/A, 13), (N/A)
So please patch out this eeprom nonsense or activate "Atheros dynamic user regulatory testing"
- it is also questionable whether the users need individual regdb settings for each NIC
So that we ubuntu users can operate our Qualcomm WLAN cards with the correct regdb settings!
5.4.0-47-generic #51-Ubuntu SMP Fri Sep 4 19:50:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
03:00.0 Network controller: Qualcomm Atheros QCA9984 802.11ac Wave 2 Wireless Network Adapter
04:00.0 Network controller: Qualcomm Atheros QCA9984 802.11ac Wave 2 Wireless Network Adapter
08:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
best regards
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.8
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CasperMD5CheckR
CurrentDesktop: GNOME-Flashback
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-08-28 (16 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
MachineType: MSI MS-7A59
Package: linux (not installed)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.187.3
Tags: focal
Uname: Linux 5.4.0-47-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 06/30/2018
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.A0
dmi.board.
dmi.board.name: Z270 SLI PLUS (MS-7A59)
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: MSI
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: Default string
dmi.product.name: MS-7A59
dmi.product.sku: Default string
dmi.product.
dmi.sys.vendor: MSI
description: | updated |
description: | updated |
description: | updated |
description: | updated |
no longer affects: | ubuntu |
affects: | linux-hwe-5.4 (Ubuntu) → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
tags: | added: hwe-networking-wifi |
for comparison a self-built backport version with "Atheros dynamic user regulatory testing"
compat: module verification failed: signature and/or required key missing - tainting kernel gbcf876870b95
[ 2.820437] Loading modules backported from Linux version v5.8-0-
[ 2.820437] Backport generated by backports.git v5.8-1-0-g79400d9e
[ 2.861508] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 mfp,peer- flow-ctrl, btcoex- param,allows- mesh-bcast, no-ps,peer- fixed-rate crc32 ea4c0777 mfp,peer- flow-ctrl, btcoex- param,allows- mesh-bcast, no-ps,peer- fixed-rate crc32 ea4c0777
[ 2.924268] ath10k_pci 0000:04:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 2.975254] ath10k_pci 0000:03:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[ 2.975255] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[ 2.975576] ath10k_pci 0000:03:00.0: firmware ver 10.4-3.9.0.2-00124 api 5 features no-p2p,
[ 3.038053] ath10k_pci 0000:04:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[ 3.038054] ath10k_pci 0000:04:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[ 3.038388] ath10k_pci 0000:04:00.0: firmware ver 10.4-3.9.0.2-00124 api 5 features no-p2p,
[ 4.209182] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id 0:1 crc32 85498734
[ 4.267400] ath10k_pci 0000:04:00.0: board_file api 2 bmi_id 0:2 crc32 85498734
[ 6.892192] ath10k_pci 0000:03:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 512 raw 0 hwcrypto 1
[ 6.938061] ath10k_pci 0000:04:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 512 raw 0 hwcrypto 1
[ 766.033876] ath: EEPROM regdomain: 0x8114
[ 766.033876] ath: EEPROM indicates we should expect a country code
[ 766.033877] ath: doing EEPROM country->regdmn map search
[ 766.033877] ath: country maps to regdmn code: 0x37
[ 766.033877] ath: Country alpha2 being used: DE
[ 766.033878] ath: Regpair used: 0x37
[ 766.033878] ath: regdomain 0x8114 dynamically updated by user
[ 766.034369] ath: EEPROM regdomain: 0x8114
[ 766.034369] ath: EEPROM indicates we should expect a country code
[ 766.034369] ath: doing EEPROM country->regdmn map search
[ 766.034370] ath: country maps to regdmn code: 0x37
[ 766.034370] ath: Country alpha2 being used: DE
[ 766.034370] ath: Regpair used: 0x37
[ 766.034371] ath: regdomain 0x8114 dynamically updated by user
global
country DE: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 13), (N/A)
(57000 - 66000 @ 2160), (N/A, 40), (N/A)
phy#0
country DE: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 13), (N/A)
(57000 - 66000 @ 2160), (N/A, 40), (N/A)
iw phy phy0 info
Frequencies:
* 5180 MHz [36] (20.0 dBm) (no IR)
* 5200 MHz [40] (20.0 dBm) (no IR)
* 5220 MHz [4...