All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64)
@ 2019-04-07  6:19 Rene 'Renne' Bartsch, B.Sc. Informatics
  2019-04-07  8:41 ` Sebastian Gottschall
  2019-04-07 20:28 ` Ben Greear
  0 siblings, 2 replies; 12+ messages in thread
From: Rene 'Renne' Bartsch, B.Sc. Informatics @ 2019-04-07  6:19 UTC (permalink / raw)
  To: ath10k

Hi,

I posted this to the linux-wireless mailing-list 4 days ago and did not receive an answer.

The ath10k module sets the country code to "US" at initialization. After that the country code can't be changed anymore (e.g. to "DE").

Compex support suggests setting "reg->country_code = CTRY_UNITED_STATES;" in "/drivers/net/wireless/ath/regd.c" to the local country.
Patching and re-compiling every kernel-update isn't an option on an UEFI-only production system.

Kernel version: 4.19.0-4-amd64 #1 SMP Debian 4.19.28-2 (2019-03-15) x86_64 GNU/Linux on Debian 10 Buster

The WLE900VX is based on the QCA XB140 reference design.

Until Thursday we have the option to return the cards to the dealer.

Thanx for any hint,

Renne


renne@cloud:/lib/firmware/ath10k/QCA988X/hw2.0$ uname -a
Linux cloud 4.19.0-4-amd64 #1 SMP Debian 4.19.28-2 (2019-03-15) x86_64 GNU/Linux

renne@cloud:~$ ls /lib/firmware/ath10k/QCA988X/hw2.0/
board.bin  firmware-4.bin  firmware-5.bin

What doesn't work:

/etc/modprobe.d/cfg80211.conf:
options cfg80211 ieee80211_regdom=DE

/etc/hostapd/hostapd.conf:
...
ieee80211d=1
country_code=DE
...

root@cloud:/# export COUNTRY=DE; /sbin/crda
Failed to set regulatory domain: -7

root@cloud:/# iw reg set DE && iw reg get
global
country 98: DFS-UNSET
    (2402 - 2472 @ 40), (N/A, 20), (N/A)
    (5170 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR, AUTO-BW
    (5250 - 5330 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
    (5490 - 5725 @ 160), (N/A, 23), (0 ms), DFS
    (5725 - 5730 @ 5), (N/A, 13), (0 ms), DFS
    (5735 - 5835 @ 80), (N/A, 13), (N/A)
    (57240 - 63720 @ 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)


LOGs:

renne@cloud:~$ sudo dmesg | grep ath
[    4.630113] ath10k_pci 0000:04:00.0: enabling device (0000 -> 0002)
[    4.630548] ath10k_pci 0000:04:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    4.803687] ath10k_pci 0000:04:00.0: firmware: failed to load ath10k/pre-cal-pci-0000:04:00.0.bin (-2)
[    4.803700] ath10k_pci 0000:04:00.0: firmware: failed to load ath10k/cal-pci-0000:04:00.0.bin (-2)
[    4.803872] ath10k_pci 0000:04:00.0: firmware: failed to load ath10k/QCA988X/hw2.0/firmware-6.bin (-2)
[    4.804994] ath10k_pci 0000:04:00.0: firmware: direct-loading firmware ath10k/QCA988X/hw2.0/firmware-5.bin
[    4.804999] ath10k_pci 0000:04:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[    4.805000] ath10k_pci 0000:04:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[    4.805147] ath10k_pci 0000:04:00.0: firmware ver 10.2.4-1.0-00041 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 f43fa422
[    4.840158] ath10k_pci 0000:04:00.0: firmware: failed to load ath10k/QCA988X/hw2.0/board-2.bin (-2)
[    4.840338] ath10k_pci 0000:04:00.0: firmware: direct-loading firmware ath10k/QCA988X/hw2.0/board.bin
[    4.840343] ath10k_pci 0000:04:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[    5.988575] ath10k_pci 0000:04:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[    6.067999] ath: EEPROM regdomain: 0x0
[    6.068000] ath: EEPROM indicates default country code should be used
[    6.068000] ath: doing EEPROM country->regdmn map search
[    6.068001] ath: country maps to regdmn code: 0x3a
[    6.068002] ath: Country alpha2 being used: US
[    6.068002] ath: Regpair used: 0x3a
[    6.078078] ath10k_pci 0000:04:00.0 wlp4s0: renamed from wlan0
[ 5099.420780] ath10k_pci 0000:04:00.0: pdev param 0 not supported by firmware

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-04-11  6:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-07  6:19 [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) Rene 'Renne' Bartsch, B.Sc. Informatics
2019-04-07  8:41 ` Sebastian Gottschall
2019-04-07  9:41   ` Rene 'Renne' Bartsch, B.Sc. Informatics
2019-04-07  9:56     ` Rene 'Renne' Bartsch, B.Sc. Informatics
2019-04-07 11:57     ` Sebastian Gottschall
2019-04-07 13:26       ` Rene 'Renne' Bartsch, B.Sc. Informatics
2019-04-07 16:11         ` Rene 'Renne' Bartsch, B.Sc. Informatics
2019-04-08  7:52           ` Sebastian Gottschall
2019-04-08  8:24             ` Rene 'Renne' Bartsch, B.Sc. Informatics
2019-04-08  8:46               ` Sebastian Gottschall
2019-04-11  6:48                 ` Rene 'Renne' Bartsch, B.Sc. Informatics
2019-04-07 20:28 ` Ben Greear

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.