* [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
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 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 20:28 ` Ben Greear 1 sibling, 1 reply; 12+ messages in thread From: Sebastian Gottschall @ 2019-04-07 8:41 UTC (permalink / raw) To: Rene 'Renne' Bartsch, B.Sc. Informatics, ath10k your documentation is very unspecific. its unclear if you even tried to change the country code using "iw reg set" like ony any other qca/atheros card you can simply change the country code using iw reg set Am 07.04.2019 um 08:19 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: > 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 > _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 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 0 siblings, 2 replies; 12+ messages in thread From: Rene 'Renne' Bartsch, B.Sc. Informatics @ 2019-04-07 9:41 UTC (permalink / raw) To: ath10k Ask specifics and you shall receive ;-) With WLE900VX: renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get [sudo] password for renne: 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#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) 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#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) Without WLE900VX: renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get [sudo] password for renne: global country 00: DFS-UNSET (2402 - 2472 @ 40), (6, 20), (N/A) (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN (57240 - 63720 @ 2160), (N/A, 0), (N/A) 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) Am 07.04.19 um 10:41 schrieb Sebastian Gottschall: > your documentation is very unspecific. its unclear if you even tried to change the country code using "iw reg set" > > like ony any other qca/atheros card you can simply change the country code using iw reg set > > Am 07.04.2019 um 08:19 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >> 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 >> _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 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 1 sibling, 0 replies; 12+ messages in thread From: Rene 'Renne' Bartsch, B.Sc. Informatics @ 2019-04-07 9:56 UTC (permalink / raw) To: ath10k renne@cloud:~$ sudo iw list Wiphy phy0 max # scan SSIDs: 16 max scan IEs length: 195 bytes max # sched scan SSIDs: 0 max # match sets: 0 max # scan plans: 1 max scan plan interval: -1 max scan plan iterations: 0 Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Device supports RSN-IBSS. Device supports AP-side u-APSD. Supported Ciphers: * WEP40 (00-0f-ac:1) * WEP104 (00-0f-ac:5) * TKIP (00-0f-ac:2) * CCMP-128 (00-0f-ac:4) * CMAC (00-0f-ac:6) * CMAC-256 (00-0f-ac:13) * GMAC-128 (00-0f-ac:11) * GMAC-256 (00-0f-ac:12) Available Antennas: TX 0x7 RX 0x7 Configured Antennas: TX 0x7 RX 0x7 Supported interface modes: * managed * AP * monitor * mesh point Band 1: Capabilities: 0x19ef RX LDPC HT20/HT40 SM Power Save disabled RX HT20 SGI RX HT40 SGI TX STBC RX STBC 1-stream Max AMSDU length: 7935 bytes DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 8 usec (0x06) HT TX/RX MCS rate indexes supported: 0-23 Bitrates (non-HT): * 1.0 Mbps * 2.0 Mbps (short preamble supported) * 5.5 Mbps (short preamble supported) * 11.0 Mbps (short preamble supported) * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.0 Mbps Frequencies: * 2412 MHz [1] (30.0 dBm) * 2417 MHz [2] (30.0 dBm) * 2422 MHz [3] (30.0 dBm) * 2427 MHz [4] (30.0 dBm) * 2432 MHz [5] (30.0 dBm) * 2437 MHz [6] (30.0 dBm) * 2442 MHz [7] (30.0 dBm) * 2447 MHz [8] (30.0 dBm) * 2452 MHz [9] (30.0 dBm) * 2457 MHz [10] (30.0 dBm) * 2462 MHz [11] (30.0 dBm) * 2467 MHz [12] (disabled) * 2472 MHz [13] (disabled) * 2484 MHz [14] (disabled) Band 2: Capabilities: 0x19ef RX LDPC HT20/HT40 SM Power Save disabled RX HT20 SGI RX HT40 SGI TX STBC RX STBC 1-stream Max AMSDU length: 7935 bytes DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 8 usec (0x06) HT TX/RX MCS rate indexes supported: 0-23 VHT Capabilities (0x338001b2): Max MPDU length: 11454 Supported Channel Width: neither 160 nor 80+80 RX LDPC short GI (80 MHz) TX STBC RX antenna pattern consistency TX antenna pattern consistency VHT RX MCS set: 1 streams: MCS 0-9 2 streams: MCS 0-9 3 streams: MCS 0-9 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported VHT RX highest supported: 0 Mbps VHT TX MCS set: 1 streams: MCS 0-9 2 streams: MCS 0-9 3 streams: MCS 0-9 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported VHT TX highest supported: 0 Mbps Bitrates (non-HT): * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.0 Mbps Frequencies: * 5180 MHz [36] (23.0 dBm) * 5200 MHz [40] (23.0 dBm) * 5220 MHz [44] (23.0 dBm) * 5240 MHz [48] (23.0 dBm) * 5260 MHz [52] (23.0 dBm) (no IR, radar detection) * 5280 MHz [56] (23.0 dBm) (no IR, radar detection) * 5300 MHz [60] (23.0 dBm) (no IR, radar detection) * 5320 MHz [64] (23.0 dBm) (no IR, radar detection) * 5500 MHz [100] (23.0 dBm) (no IR, radar detection) * 5520 MHz [104] (23.0 dBm) (no IR, radar detection) * 5540 MHz [108] (23.0 dBm) (no IR, radar detection) * 5560 MHz [112] (23.0 dBm) (no IR, radar detection) * 5580 MHz [116] (23.0 dBm) (no IR, radar detection) * 5600 MHz [120] (23.0 dBm) (no IR, radar detection) * 5620 MHz [124] (23.0 dBm) (no IR, radar detection) * 5640 MHz [128] (23.0 dBm) (no IR, radar detection) * 5660 MHz [132] (23.0 dBm) (no IR, radar detection) * 5680 MHz [136] (23.0 dBm) (no IR, radar detection) * 5700 MHz [140] (23.0 dBm) (no IR, radar detection) * 5720 MHz [144] (23.0 dBm) (radar detection) * 5745 MHz [149] (30.0 dBm) * 5765 MHz [153] (30.0 dBm) * 5785 MHz [157] (30.0 dBm) * 5805 MHz [161] (30.0 dBm) * 5825 MHz [165] (30.0 dBm) * 5845 MHz [169] (disabled) * 5865 MHz [173] (disabled) Supported commands: * new_interface * set_interface * new_key * start_ap * new_station * new_mpath * set_mesh_config * set_bss * authenticate * associate * deauthenticate * disassociate * join_ibss * join_mesh * remain_on_channel * set_tx_bitrate_mask * frame * frame_wait_cancel * set_wiphy_netns * set_channel * set_wds_peer * probe_client * set_noack_map * register_beacons * start_p2p_device * set_mcast_rate * connect * disconnect * channel_switch * set_qos_map * set_multicast_to_unicast Supported TX frame types: * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 Supported RX frame types: * IBSS: 0x40 0xb0 0xc0 0xd0 * managed: 0x40 0xd0 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * mesh point: 0xb0 0xc0 0xd0 * P2P-client: 0x40 0xd0 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * P2P-device: 0x40 0xd0 software interface modes (can always be added): * monitor valid interface combinations: * #{ AP, mesh point } <= 8, #{ managed } <= 1, total <= 8, #channels <= 1, STA/AP BI must match HT Capability overrides: * MCS: ff ff ff ff ff ff ff ff ff ff * maximum A-MSDU length * supported channel width * short GI for 40 MHz * max A-MPDU length exponent * min MPDU start spacing Device supports TX status socket option. Device supports HT-IBSS. Device supports SAE with AUTHENTICATE command Device supports scan flush. Device supports AP scan. Device supports per-vif TX power setting Driver supports full state transitions for AP/GO clients Driver supports a userspace MPM Driver/device bandwidth changes during BSS lifetime (AP/GO mode) Device supports static SMPS Device supports configuring vdev MAC-addr on create. Supported extended features: * [ VHT_IBSS ]: VHT-IBSS * [ RRM ]: RRM * [ SET_SCAN_DWELL ]: scan dwell setting * [ FILS_STA ]: STA FILS (Fast Initial Link Setup) * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211 * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs Am 07.04.19 um 11:41 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: > Ask specifics and you shall receive ;-) > > With WLE900VX: > renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get > [sudo] password for renne: > 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#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) > > > 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#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) > > > Without WLE900VX: > renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get > [sudo] password for renne: > global > country 00: DFS-UNSET > (2402 - 2472 @ 40), (6, 20), (N/A) > (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN > (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN > (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN > (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN > (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN > (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN > (57240 - 63720 @ 2160), (N/A, 0), (N/A) > > 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) > > > > Am 07.04.19 um 10:41 schrieb Sebastian Gottschall: >> your documentation is very unspecific. its unclear if you even tried to change the country code using "iw reg set" >> >> like ony any other qca/atheros card you can simply change the country code using iw reg set >> >> Am 07.04.2019 um 08:19 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>> 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 >>> > > _______________________________________________ > ath10k mailing list > ath10k@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/ath10k _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 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 1 sibling, 1 reply; 12+ messages in thread From: Sebastian Gottschall @ 2019-04-07 11:57 UTC (permalink / raw) To: Rene 'Renne' Bartsch, B.Sc. Informatics, ath10k then its time to check your system settings and to fix your os specific quirks you may have like bios/uefi specific country settings. so whatever your problem is, it seems to be OS/System specific. ath10k does handle bios specific country settings. see function "ath10k_mac_get_wrdd_regulatory / ath10k_mac_init_rd" in mac.c simply override this function to ignore the acpi table country settings root@ALPINE:~# iw reg get global country US: DFS-FCC (2402 - 2472 @ 40), (N/A, 30), (N/A) (5170 - 5330 @ 160), (N/A, 23), (N/A) (5490 - 5730 @ 160), (N/A, 23), (N/A) (5735 - 5835 @ 80), (N/A, 30), (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 - 5330 @ 160), (N/A, 23), (N/A) (5490 - 5730 @ 160), (N/A, 23), (N/A) (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 - 5330 @ 160), (N/A, 23), (N/A) (5490 - 5730 @ 160), (N/A, 23), (N/A) (5735 - 5835 @ 80), (N/A, 30), (N/A) (57240 - 63720 @ 2160), (N/A, 40), (N/A) root@ALPINE:~# iw reg set DE root@ALPINE:~# iw reg get global country DE: DFS-ETSI (2400 - 2483 @ 40), (N/A, 20), (N/A) (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR (5250 - 5350 @ 80), (N/A, 20), (N/A), NO-OUTDOOR (5470 - 5725 @ 160), (N/A, 30), (N/A) (5725 - 5875 @ 80), (N/A, 14), (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 - 5330 @ 160), (N/A, 23), (N/A) (5490 - 5730 @ 160), (N/A, 23), (N/A) (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 - 5330 @ 160), (N/A, 23), (N/A) (5490 - 5730 @ 160), (N/A, 23), (N/A) (5735 - 5835 @ 80), (N/A, 30), (N/A) (57240 - 63720 @ 2160), (N/A, 40), (N/A) Am 07.04.2019 um 11:41 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: > Ask specifics and you shall receive ;-) > > With WLE900VX: > renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw > reg set DE && sudo iw reg get > [sudo] password for renne: > 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#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) > > > 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#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) > > > Without WLE900VX: > renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw > reg set DE && sudo iw reg get > [sudo] password for renne: > global > country 00: DFS-UNSET > (2402 - 2472 @ 40), (6, 20), (N/A) > (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN > (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN > (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN > (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN > (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN > (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN > (57240 - 63720 @ 2160), (N/A, 0), (N/A) > > 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) > > > > Am 07.04.19 um 10:41 schrieb Sebastian Gottschall: >> your documentation is very unspecific. its unclear if you even tried >> to change the country code using "iw reg set" >> >> like ony any other qca/atheros card you can simply change the country >> code using iw reg set >> >> Am 07.04.2019 um 08:19 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>> 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 >>> > > _______________________________________________ > ath10k mailing list > ath10k@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/ath10k _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 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 0 siblings, 1 reply; 12+ messages in thread From: Rene 'Renne' Bartsch, B.Sc. Informatics @ 2019-04-07 13:26 UTC (permalink / raw) To: ath10k Mainboard: Fujitsu D-3643-H1x (https://www.fujitsu.com/global/products/computing/peripheral/mainboards/extended-lifecycle-main/d3643h.html) UEFI: 2.7; PI 1.6 System Language: English (Chinese is the only other option) Keyboard Layout: German No other country/location options TPM: disabled Secure Boot Control: disabled Secure Boot Mode: Standard Parsing ACPI tables fails: renne@cloud:~$ sudo cat /sys/firmware/acpi/tables/DSDT > dsdt.dat && iasl -d dsdt.dat Intel ACPI Component Architecture ASL+ Optimizing Compiler/Disassembler version 20181213 Copyright (c) 2000 - 2018 Intel Corporation Input file dsdt.dat, Length 0x1FBCD (129997) bytes ACPI: DSDT 0x0000000000000000 01FBCD (v02 FUJ D3643-H1 10500000 INTL 20160527) Pass 1 parse of [DSDT] Pass 2 parse of [DSDT] ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000010025D070100 => 5D070100 (20181213/dsobject-492) ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000110025D070100 => 5D070100 (20181213/dsobject-492) ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000210025D070100 => 5D070100 (20181213/dsobject-492) ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000310025D070100 => 5D070100 (20181213/dsobject-492) ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000010025D070000 => 5D070000 (20181213/dsobject-492) ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000110025D070000 => 5D070000 (20181213/dsobject-492) ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000210025D070000 => 5D070000 (20181213/dsobject-492) ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000310025D070000 => 5D070000 (20181213/dsobject-492) Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions) Parsing completed Disassembly completed ASL Output: dsdt.dsl - 892036 bytes Debian: Locale: GDM_LANG=de_DE.UTF-8 LANG=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_NAME=de_DE.UTF-8 LC_MONETARY=de_DE.UTF-8 LC_PAPER=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 LC_NUMERIC=de_DE.UTF-8 Where else can I look? Am 07.04.19 um 13:57 schrieb Sebastian Gottschall: > then its time to check your system settings and to fix your os specific quirks you may have like bios/uefi specific country settings. so whatever your problem is, it seems to be OS/System specific. > > ath10k does handle bios specific country settings. see function "ath10k_mac_get_wrdd_regulatory / ath10k_mac_init_rd" in mac.c > simply override this function to ignore the acpi table country settings > > > root@ALPINE:~# iw reg get > global > country US: DFS-FCC > (2402 - 2472 @ 40), (N/A, 30), (N/A) > (5170 - 5330 @ 160), (N/A, 23), (N/A) > (5490 - 5730 @ 160), (N/A, 23), (N/A) > (5735 - 5835 @ 80), (N/A, 30), (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 - 5330 @ 160), (N/A, 23), (N/A) > (5490 - 5730 @ 160), (N/A, 23), (N/A) > (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 - 5330 @ 160), (N/A, 23), (N/A) > (5490 - 5730 @ 160), (N/A, 23), (N/A) > (5735 - 5835 @ 80), (N/A, 30), (N/A) > (57240 - 63720 @ 2160), (N/A, 40), (N/A) > > root@ALPINE:~# iw reg set DE > root@ALPINE:~# iw reg get > global > country DE: DFS-ETSI > (2400 - 2483 @ 40), (N/A, 20), (N/A) > (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR > (5250 - 5350 @ 80), (N/A, 20), (N/A), NO-OUTDOOR > (5470 - 5725 @ 160), (N/A, 30), (N/A) > (5725 - 5875 @ 80), (N/A, 14), (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 - 5330 @ 160), (N/A, 23), (N/A) > (5490 - 5730 @ 160), (N/A, 23), (N/A) > (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 - 5330 @ 160), (N/A, 23), (N/A) > (5490 - 5730 @ 160), (N/A, 23), (N/A) > (5735 - 5835 @ 80), (N/A, 30), (N/A) > (57240 - 63720 @ 2160), (N/A, 40), (N/A) > > > Am 07.04.2019 um 11:41 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >> Ask specifics and you shall receive ;-) >> >> With WLE900VX: >> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get >> [sudo] password for renne: >> 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#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) >> >> >> 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#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) >> >> >> Without WLE900VX: >> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get >> [sudo] password for renne: >> global >> country 00: DFS-UNSET >> (2402 - 2472 @ 40), (6, 20), (N/A) >> (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >> (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN >> (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >> (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN >> (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN >> (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN >> (57240 - 63720 @ 2160), (N/A, 0), (N/A) >> >> 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) >> >> >> >> Am 07.04.19 um 10:41 schrieb Sebastian Gottschall: >>> your documentation is very unspecific. its unclear if you even tried to change the country code using "iw reg set" >>> >>> like ony any other qca/atheros card you can simply change the country code using iw reg set >>> >>> Am 07.04.2019 um 08:19 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>>> 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 >>>> >> >> _______________________________________________ >> ath10k mailing list >> ath10k@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/ath10k > > _______________________________________________ > ath10k mailing list > ath10k@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/ath10k _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 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 0 siblings, 1 reply; 12+ messages in thread From: Rene 'Renne' Bartsch, B.Sc. Informatics @ 2019-04-07 16:11 UTC (permalink / raw) To: ath10k On an notebook and a PC (both 10-year-old and without UEFI) "sudo iw reg set DE" doesn't work either (current Debian 10 Live-DVD non-free). Am 07.04.19 um 15:26 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: > Mainboard: Fujitsu D-3643-H1x (https://www.fujitsu.com/global/products/computing/peripheral/mainboards/extended-lifecycle-main/d3643h.html) > UEFI: 2.7; PI 1.6 > System Language: English (Chinese is the only other option) > Keyboard Layout: German > No other country/location options > TPM: disabled > Secure Boot Control: disabled > Secure Boot Mode: Standard > > > Parsing ACPI tables fails: > renne@cloud:~$ sudo cat /sys/firmware/acpi/tables/DSDT > dsdt.dat && iasl -d dsdt.dat > > Intel ACPI Component Architecture > ASL+ Optimizing Compiler/Disassembler version 20181213 > Copyright (c) 2000 - 2018 Intel Corporation > > Input file dsdt.dat, Length 0x1FBCD (129997) bytes > ACPI: DSDT 0x0000000000000000 01FBCD (v02 FUJ D3643-H1 10500000 INTL 20160527) > Pass 1 parse of [DSDT] > Pass 2 parse of [DSDT] > ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000010025D070100 => 5D070100 (20181213/dsobject-492) > ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000110025D070100 => 5D070100 (20181213/dsobject-492) > ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000210025D070100 => 5D070100 (20181213/dsobject-492) > ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000310025D070100 => 5D070100 (20181213/dsobject-492) > ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000010025D070000 => 5D070000 (20181213/dsobject-492) > ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000110025D070000 => 5D070000 (20181213/dsobject-492) > ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000210025D070000 => 5D070000 (20181213/dsobject-492) > ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000310025D070000 => 5D070000 (20181213/dsobject-492) > Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions) > > Parsing completed > Disassembly completed > ASL Output: dsdt.dsl - 892036 bytes > > > Debian: > Locale: > GDM_LANG=de_DE.UTF-8 > LANG=de_DE.UTF-8 > LC_ADDRESS=de_DE.UTF-8 > LC_NAME=de_DE.UTF-8 > LC_MONETARY=de_DE.UTF-8 > LC_PAPER=de_DE.UTF-8 > LC_IDENTIFICATION=de_DE.UTF-8 > LC_TELEPHONE=de_DE.UTF-8 > LC_MEASUREMENT=de_DE.UTF-8 > LC_TIME=de_DE.UTF-8 > LC_NUMERIC=de_DE.UTF-8 > > Where else can I look? > > Am 07.04.19 um 13:57 schrieb Sebastian Gottschall: >> then its time to check your system settings and to fix your os specific quirks you may have like bios/uefi specific country settings. so whatever your problem is, it seems to be OS/System specific. >> >> ath10k does handle bios specific country settings. see function "ath10k_mac_get_wrdd_regulatory / ath10k_mac_init_rd" in mac.c >> simply override this function to ignore the acpi table country settings >> >> >> root@ALPINE:~# iw reg get >> global >> country US: DFS-FCC >> (2402 - 2472 @ 40), (N/A, 30), (N/A) >> (5170 - 5330 @ 160), (N/A, 23), (N/A) >> (5490 - 5730 @ 160), (N/A, 23), (N/A) >> (5735 - 5835 @ 80), (N/A, 30), (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 - 5330 @ 160), (N/A, 23), (N/A) >> (5490 - 5730 @ 160), (N/A, 23), (N/A) >> (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 - 5330 @ 160), (N/A, 23), (N/A) >> (5490 - 5730 @ 160), (N/A, 23), (N/A) >> (5735 - 5835 @ 80), (N/A, 30), (N/A) >> (57240 - 63720 @ 2160), (N/A, 40), (N/A) >> >> root@ALPINE:~# iw reg set DE >> root@ALPINE:~# iw reg get >> global >> country DE: DFS-ETSI >> (2400 - 2483 @ 40), (N/A, 20), (N/A) >> (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR >> (5250 - 5350 @ 80), (N/A, 20), (N/A), NO-OUTDOOR >> (5470 - 5725 @ 160), (N/A, 30), (N/A) >> (5725 - 5875 @ 80), (N/A, 14), (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 - 5330 @ 160), (N/A, 23), (N/A) >> (5490 - 5730 @ 160), (N/A, 23), (N/A) >> (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 - 5330 @ 160), (N/A, 23), (N/A) >> (5490 - 5730 @ 160), (N/A, 23), (N/A) >> (5735 - 5835 @ 80), (N/A, 30), (N/A) >> (57240 - 63720 @ 2160), (N/A, 40), (N/A) >> >> >> Am 07.04.2019 um 11:41 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>> Ask specifics and you shall receive ;-) >>> >>> With WLE900VX: >>> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get >>> [sudo] password for renne: >>> 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#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) >>> >>> >>> 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#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) >>> >>> >>> Without WLE900VX: >>> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get >>> [sudo] password for renne: >>> global >>> country 00: DFS-UNSET >>> (2402 - 2472 @ 40), (6, 20), (N/A) >>> (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >>> (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN >>> (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >>> (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN >>> (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN >>> (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN >>> (57240 - 63720 @ 2160), (N/A, 0), (N/A) >>> >>> 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) >>> >>> >>> >>> Am 07.04.19 um 10:41 schrieb Sebastian Gottschall: >>>> your documentation is very unspecific. its unclear if you even tried to change the country code using "iw reg set" >>>> >>>> like ony any other qca/atheros card you can simply change the country code using iw reg set >>>> >>>> Am 07.04.2019 um 08:19 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>>>> 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 >>>>> >>> >>> _______________________________________________ >>> ath10k mailing list >>> ath10k@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/ath10k >> >> _______________________________________________ >> ath10k mailing list >> ath10k@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/ath10k > > _______________________________________________ > ath10k mailing list > ath10k@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/ath10k _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 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 0 siblings, 1 reply; 12+ messages in thread From: Sebastian Gottschall @ 2019-04-08 7:52 UTC (permalink / raw) To: ath10k that doesnt matter. the bios locked country code isnt a new feature. i dont know in which century it was introduced. just patch the function i told you in ath10k. Am 07.04.2019 um 18:11 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: > On an notebook and a PC (both 10-year-old and without UEFI) "sudo iw > reg set DE" doesn't work either (current Debian 10 Live-DVD non-free). > > > Am 07.04.19 um 15:26 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >> Mainboard: Fujitsu D-3643-H1x >> (https://www.fujitsu.com/global/products/computing/peripheral/mainboards/extended-lifecycle-main/d3643h.html) >> UEFI: 2.7; PI 1.6 >> System Language: English (Chinese is the only other option) >> Keyboard Layout: German >> No other country/location options >> TPM: disabled >> Secure Boot Control: disabled >> Secure Boot Mode: Standard >> >> >> Parsing ACPI tables fails: >> renne@cloud:~$ sudo cat /sys/firmware/acpi/tables/DSDT > dsdt.dat && >> iasl -d dsdt.dat >> >> Intel ACPI Component Architecture >> ASL+ Optimizing Compiler/Disassembler version 20181213 >> Copyright (c) 2000 - 2018 Intel Corporation >> >> Input file dsdt.dat, Length 0x1FBCD (129997) bytes >> ACPI: DSDT 0x0000000000000000 01FBCD (v02 FUJ D3643-H1 10500000 >> INTL 20160527) >> Pass 1 parse of [DSDT] >> Pass 2 parse of [DSDT] >> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >> 000010025D070100 => 5D070100 (20181213/dsobject-492) >> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >> 000110025D070100 => 5D070100 (20181213/dsobject-492) >> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >> 000210025D070100 => 5D070100 (20181213/dsobject-492) >> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >> 000310025D070100 => 5D070100 (20181213/dsobject-492) >> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >> 000010025D070000 => 5D070000 (20181213/dsobject-492) >> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >> 000110025D070000 => 5D070000 (20181213/dsobject-492) >> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >> 000210025D070000 => 5D070000 (20181213/dsobject-492) >> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >> 000310025D070000 => 5D070000 (20181213/dsobject-492) >> Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions) >> >> Parsing completed >> Disassembly completed >> ASL Output: dsdt.dsl - 892036 bytes >> >> >> Debian: >> Locale: >> GDM_LANG=de_DE.UTF-8 >> LANG=de_DE.UTF-8 >> LC_ADDRESS=de_DE.UTF-8 >> LC_NAME=de_DE.UTF-8 >> LC_MONETARY=de_DE.UTF-8 >> LC_PAPER=de_DE.UTF-8 >> LC_IDENTIFICATION=de_DE.UTF-8 >> LC_TELEPHONE=de_DE.UTF-8 >> LC_MEASUREMENT=de_DE.UTF-8 >> LC_TIME=de_DE.UTF-8 >> LC_NUMERIC=de_DE.UTF-8 >> >> Where else can I look? >> >> Am 07.04.19 um 13:57 schrieb Sebastian Gottschall: >>> then its time to check your system settings and to fix your os >>> specific quirks you may have like bios/uefi specific country >>> settings. so whatever your problem is, it seems to be OS/System >>> specific. >>> >>> ath10k does handle bios specific country settings. see function >>> "ath10k_mac_get_wrdd_regulatory / ath10k_mac_init_rd" in mac.c >>> simply override this function to ignore the acpi table country settings >>> >>> >>> root@ALPINE:~# iw reg get >>> global >>> country US: DFS-FCC >>> (2402 - 2472 @ 40), (N/A, 30), (N/A) >>> (5170 - 5330 @ 160), (N/A, 23), (N/A) >>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>> (5735 - 5835 @ 80), (N/A, 30), (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 - 5330 @ 160), (N/A, 23), (N/A) >>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>> (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 - 5330 @ 160), (N/A, 23), (N/A) >>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>> (5735 - 5835 @ 80), (N/A, 30), (N/A) >>> (57240 - 63720 @ 2160), (N/A, 40), (N/A) >>> >>> root@ALPINE:~# iw reg set DE >>> root@ALPINE:~# iw reg get >>> global >>> country DE: DFS-ETSI >>> (2400 - 2483 @ 40), (N/A, 20), (N/A) >>> (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR >>> (5250 - 5350 @ 80), (N/A, 20), (N/A), NO-OUTDOOR >>> (5470 - 5725 @ 160), (N/A, 30), (N/A) >>> (5725 - 5875 @ 80), (N/A, 14), (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 - 5330 @ 160), (N/A, 23), (N/A) >>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>> (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 - 5330 @ 160), (N/A, 23), (N/A) >>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>> (5735 - 5835 @ 80), (N/A, 30), (N/A) >>> (57240 - 63720 @ 2160), (N/A, 40), (N/A) >>> >>> >>> Am 07.04.2019 um 11:41 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>>> Ask specifics and you shall receive ;-) >>>> >>>> With WLE900VX: >>>> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo >>>> iw reg set DE && sudo iw reg get >>>> [sudo] password for renne: >>>> 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#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) >>>> >>>> >>>> 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#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) >>>> >>>> >>>> Without WLE900VX: >>>> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo >>>> iw reg set DE && sudo iw reg get >>>> [sudo] password for renne: >>>> global >>>> country 00: DFS-UNSET >>>> (2402 - 2472 @ 40), (6, 20), (N/A) >>>> (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >>>> (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN >>>> (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >>>> (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN >>>> (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN >>>> (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN >>>> (57240 - 63720 @ 2160), (N/A, 0), (N/A) >>>> >>>> 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) >>>> >>>> >>>> >>>> Am 07.04.19 um 10:41 schrieb Sebastian Gottschall: >>>>> your documentation is very unspecific. its unclear if you even >>>>> tried to change the country code using "iw reg set" >>>>> >>>>> like ony any other qca/atheros card you can simply change the >>>>> country code using iw reg set >>>>> >>>>> Am 07.04.2019 um 08:19 schrieb Rene 'Renne' Bartsch, B.Sc. >>>>> Informatics: >>>>>> 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 >>>>>> >>>> >>>> _______________________________________________ >>>> ath10k mailing list >>>> ath10k@lists.infradead.org >>>> http://lists.infradead.org/mailman/listinfo/ath10k >>> >>> _______________________________________________ >>> ath10k mailing list >>> ath10k@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/ath10k >> >> _______________________________________________ >> ath10k mailing list >> ath10k@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/ath10k > > _______________________________________________ > ath10k mailing list > ath10k@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/ath10k _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 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 0 siblings, 1 reply; 12+ messages in thread From: Rene 'Renne' Bartsch, B.Sc. Informatics @ 2019-04-08 8:24 UTC (permalink / raw) To: ath10k Which value for "*rd" in "ath10k_mac_get_wrdd_regulatory" would allow to set the country code with CRDA or "iw get set XX"? Am 08.04.19 um 09:52 schrieb Sebastian Gottschall: > that doesnt matter. the bios locked country code isnt a new feature. i dont know in which century it was introduced. just patch the function i told you in ath10k. > > Am 07.04.2019 um 18:11 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >> On an notebook and a PC (both 10-year-old and without UEFI) "sudo iw reg set DE" doesn't work either (current Debian 10 Live-DVD non-free). >> >> >> Am 07.04.19 um 15:26 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>> Mainboard: Fujitsu D-3643-H1x (https://www.fujitsu.com/global/products/computing/peripheral/mainboards/extended-lifecycle-main/d3643h.html) >>> UEFI: 2.7; PI 1.6 >>> System Language: English (Chinese is the only other option) >>> Keyboard Layout: German >>> No other country/location options >>> TPM: disabled >>> Secure Boot Control: disabled >>> Secure Boot Mode: Standard >>> >>> >>> Parsing ACPI tables fails: >>> renne@cloud:~$ sudo cat /sys/firmware/acpi/tables/DSDT > dsdt.dat && iasl -d dsdt.dat >>> >>> Intel ACPI Component Architecture >>> ASL+ Optimizing Compiler/Disassembler version 20181213 >>> Copyright (c) 2000 - 2018 Intel Corporation >>> >>> Input file dsdt.dat, Length 0x1FBCD (129997) bytes >>> ACPI: DSDT 0x0000000000000000 01FBCD (v02 FUJ D3643-H1 10500000 INTL 20160527) >>> Pass 1 parse of [DSDT] >>> Pass 2 parse of [DSDT] >>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000010025D070100 => 5D070100 (20181213/dsobject-492) >>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000110025D070100 => 5D070100 (20181213/dsobject-492) >>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000210025D070100 => 5D070100 (20181213/dsobject-492) >>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000310025D070100 => 5D070100 (20181213/dsobject-492) >>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000010025D070000 => 5D070000 (20181213/dsobject-492) >>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000110025D070000 => 5D070000 (20181213/dsobject-492) >>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000210025D070000 => 5D070000 (20181213/dsobject-492) >>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000310025D070000 => 5D070000 (20181213/dsobject-492) >>> Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions) >>> >>> Parsing completed >>> Disassembly completed >>> ASL Output: dsdt.dsl - 892036 bytes >>> >>> >>> Debian: >>> Locale: >>> GDM_LANG=de_DE.UTF-8 >>> LANG=de_DE.UTF-8 >>> LC_ADDRESS=de_DE.UTF-8 >>> LC_NAME=de_DE.UTF-8 >>> LC_MONETARY=de_DE.UTF-8 >>> LC_PAPER=de_DE.UTF-8 >>> LC_IDENTIFICATION=de_DE.UTF-8 >>> LC_TELEPHONE=de_DE.UTF-8 >>> LC_MEASUREMENT=de_DE.UTF-8 >>> LC_TIME=de_DE.UTF-8 >>> LC_NUMERIC=de_DE.UTF-8 >>> >>> Where else can I look? >>> >>> Am 07.04.19 um 13:57 schrieb Sebastian Gottschall: >>>> then its time to check your system settings and to fix your os specific quirks you may have like bios/uefi specific country settings. so whatever your problem is, it seems to be OS/System specific. >>>> >>>> ath10k does handle bios specific country settings. see function "ath10k_mac_get_wrdd_regulatory / ath10k_mac_init_rd" in mac.c >>>> simply override this function to ignore the acpi table country settings >>>> >>>> >>>> root@ALPINE:~# iw reg get >>>> global >>>> country US: DFS-FCC >>>> (2402 - 2472 @ 40), (N/A, 30), (N/A) >>>> (5170 - 5330 @ 160), (N/A, 23), (N/A) >>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>> (5735 - 5835 @ 80), (N/A, 30), (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 - 5330 @ 160), (N/A, 23), (N/A) >>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>> (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 - 5330 @ 160), (N/A, 23), (N/A) >>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>> (5735 - 5835 @ 80), (N/A, 30), (N/A) >>>> (57240 - 63720 @ 2160), (N/A, 40), (N/A) >>>> >>>> root@ALPINE:~# iw reg set DE >>>> root@ALPINE:~# iw reg get >>>> global >>>> country DE: DFS-ETSI >>>> (2400 - 2483 @ 40), (N/A, 20), (N/A) >>>> (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR >>>> (5250 - 5350 @ 80), (N/A, 20), (N/A), NO-OUTDOOR >>>> (5470 - 5725 @ 160), (N/A, 30), (N/A) >>>> (5725 - 5875 @ 80), (N/A, 14), (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 - 5330 @ 160), (N/A, 23), (N/A) >>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>> (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 - 5330 @ 160), (N/A, 23), (N/A) >>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>> (5735 - 5835 @ 80), (N/A, 30), (N/A) >>>> (57240 - 63720 @ 2160), (N/A, 40), (N/A) >>>> >>>> >>>> Am 07.04.2019 um 11:41 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>>>> Ask specifics and you shall receive ;-) >>>>> >>>>> With WLE900VX: >>>>> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get >>>>> [sudo] password for renne: >>>>> 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#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) >>>>> >>>>> >>>>> 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#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) >>>>> >>>>> >>>>> Without WLE900VX: >>>>> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get >>>>> [sudo] password for renne: >>>>> global >>>>> country 00: DFS-UNSET >>>>> (2402 - 2472 @ 40), (6, 20), (N/A) >>>>> (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >>>>> (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN >>>>> (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >>>>> (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN >>>>> (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN >>>>> (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN >>>>> (57240 - 63720 @ 2160), (N/A, 0), (N/A) >>>>> >>>>> 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) >>>>> >>>>> >>>>> >>>>> Am 07.04.19 um 10:41 schrieb Sebastian Gottschall: >>>>>> your documentation is very unspecific. its unclear if you even tried to change the country code using "iw reg set" >>>>>> >>>>>> like ony any other qca/atheros card you can simply change the country code using iw reg set >>>>>> >>>>>> Am 07.04.2019 um 08:19 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>>>>>> 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 >>>>>>> >>>>> >>>>> _______________________________________________ >>>>> ath10k mailing list >>>>> ath10k@lists.infradead.org >>>>> http://lists.infradead.org/mailman/listinfo/ath10k >>>> >>>> _______________________________________________ >>>> ath10k mailing list >>>> ath10k@lists.infradead.org >>>> http://lists.infradead.org/mailman/listinfo/ath10k >>> >>> _______________________________________________ >>> ath10k mailing list >>> ath10k@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/ath10k >> >> _______________________________________________ >> ath10k mailing list >> ath10k@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/ath10k > > _______________________________________________ > ath10k mailing list > ath10k@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/ath10k _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 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 0 siblings, 1 reply; 12+ messages in thread From: Sebastian Gottschall @ 2019-04-08 8:46 UTC (permalink / raw) To: ath10k just return a error code in that function so that the eeprom default is used instead of acpi like -EOPNOTSUPP static int ath10k_mac_get_wrdd_regulatory(struct ath10k *ar, u16 *rd) { return -EOPNOTSUPP; } Am 08.04.2019 um 10:24 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: > Which value for "*rd" in "ath10k_mac_get_wrdd_regulatory" would allow > to set the country code with CRDA or "iw get set XX"? > > > Am 08.04.19 um 09:52 schrieb Sebastian Gottschall: >> that doesnt matter. the bios locked country code isnt a new feature. >> i dont know in which century it was introduced. just patch the >> function i told you in ath10k. >> >> Am 07.04.2019 um 18:11 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>> On an notebook and a PC (both 10-year-old and without UEFI) "sudo iw >>> reg set DE" doesn't work either (current Debian 10 Live-DVD non-free). >>> >>> >>> Am 07.04.19 um 15:26 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>>> Mainboard: Fujitsu D-3643-H1x >>>> (https://www.fujitsu.com/global/products/computing/peripheral/mainboards/extended-lifecycle-main/d3643h.html) >>>> UEFI: 2.7; PI 1.6 >>>> System Language: English (Chinese is the only other option) >>>> Keyboard Layout: German >>>> No other country/location options >>>> TPM: disabled >>>> Secure Boot Control: disabled >>>> Secure Boot Mode: Standard >>>> >>>> >>>> Parsing ACPI tables fails: >>>> renne@cloud:~$ sudo cat /sys/firmware/acpi/tables/DSDT > dsdt.dat >>>> && iasl -d dsdt.dat >>>> >>>> Intel ACPI Component Architecture >>>> ASL+ Optimizing Compiler/Disassembler version 20181213 >>>> Copyright (c) 2000 - 2018 Intel Corporation >>>> >>>> Input file dsdt.dat, Length 0x1FBCD (129997) bytes >>>> ACPI: DSDT 0x0000000000000000 01FBCD (v02 FUJ D3643-H1 10500000 >>>> INTL 20160527) >>>> Pass 1 parse of [DSDT] >>>> Pass 2 parse of [DSDT] >>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >>>> 000010025D070100 => 5D070100 (20181213/dsobject-492) >>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >>>> 000110025D070100 => 5D070100 (20181213/dsobject-492) >>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >>>> 000210025D070100 => 5D070100 (20181213/dsobject-492) >>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >>>> 000310025D070100 => 5D070100 (20181213/dsobject-492) >>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >>>> 000010025D070000 => 5D070000 (20181213/dsobject-492) >>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >>>> 000110025D070000 => 5D070000 (20181213/dsobject-492) >>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >>>> 000210025D070000 => 5D070000 (20181213/dsobject-492) >>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: >>>> 000310025D070000 => 5D070000 (20181213/dsobject-492) >>>> Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions) >>>> >>>> Parsing completed >>>> Disassembly completed >>>> ASL Output: dsdt.dsl - 892036 bytes >>>> >>>> >>>> Debian: >>>> Locale: >>>> GDM_LANG=de_DE.UTF-8 >>>> LANG=de_DE.UTF-8 >>>> LC_ADDRESS=de_DE.UTF-8 >>>> LC_NAME=de_DE.UTF-8 >>>> LC_MONETARY=de_DE.UTF-8 >>>> LC_PAPER=de_DE.UTF-8 >>>> LC_IDENTIFICATION=de_DE.UTF-8 >>>> LC_TELEPHONE=de_DE.UTF-8 >>>> LC_MEASUREMENT=de_DE.UTF-8 >>>> LC_TIME=de_DE.UTF-8 >>>> LC_NUMERIC=de_DE.UTF-8 >>>> >>>> Where else can I look? >>>> >>>> Am 07.04.19 um 13:57 schrieb Sebastian Gottschall: >>>>> then its time to check your system settings and to fix your os >>>>> specific quirks you may have like bios/uefi specific country >>>>> settings. so whatever your problem is, it seems to be OS/System >>>>> specific. >>>>> >>>>> ath10k does handle bios specific country settings. see function >>>>> "ath10k_mac_get_wrdd_regulatory / ath10k_mac_init_rd" in mac.c >>>>> simply override this function to ignore the acpi table country >>>>> settings >>>>> >>>>> >>>>> root@ALPINE:~# iw reg get >>>>> global >>>>> country US: DFS-FCC >>>>> (2402 - 2472 @ 40), (N/A, 30), (N/A) >>>>> (5170 - 5330 @ 160), (N/A, 23), (N/A) >>>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>>> (5735 - 5835 @ 80), (N/A, 30), (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 - 5330 @ 160), (N/A, 23), (N/A) >>>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>>> (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 - 5330 @ 160), (N/A, 23), (N/A) >>>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>>> (5735 - 5835 @ 80), (N/A, 30), (N/A) >>>>> (57240 - 63720 @ 2160), (N/A, 40), (N/A) >>>>> >>>>> root@ALPINE:~# iw reg set DE >>>>> root@ALPINE:~# iw reg get >>>>> global >>>>> country DE: DFS-ETSI >>>>> (2400 - 2483 @ 40), (N/A, 20), (N/A) >>>>> (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR >>>>> (5250 - 5350 @ 80), (N/A, 20), (N/A), NO-OUTDOOR >>>>> (5470 - 5725 @ 160), (N/A, 30), (N/A) >>>>> (5725 - 5875 @ 80), (N/A, 14), (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 - 5330 @ 160), (N/A, 23), (N/A) >>>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>>> (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 - 5330 @ 160), (N/A, 23), (N/A) >>>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>>> (5735 - 5835 @ 80), (N/A, 30), (N/A) >>>>> (57240 - 63720 @ 2160), (N/A, 40), (N/A) >>>>> >>>>> >>>>> Am 07.04.2019 um 11:41 schrieb Rene 'Renne' Bartsch, B.Sc. >>>>> Informatics: >>>>>> Ask specifics and you shall receive ;-) >>>>>> >>>>>> With WLE900VX: >>>>>> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && >>>>>> sudo iw reg set DE && sudo iw reg get >>>>>> [sudo] password for renne: >>>>>> 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#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) >>>>>> >>>>>> >>>>>> 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#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) >>>>>> >>>>>> >>>>>> Without WLE900VX: >>>>>> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && >>>>>> sudo iw reg set DE && sudo iw reg get >>>>>> [sudo] password for renne: >>>>>> global >>>>>> country 00: DFS-UNSET >>>>>> (2402 - 2472 @ 40), (6, 20), (N/A) >>>>>> (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >>>>>> (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN >>>>>> (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >>>>>> (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN >>>>>> (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN >>>>>> (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN >>>>>> (57240 - 63720 @ 2160), (N/A, 0), (N/A) >>>>>> >>>>>> 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) >>>>>> >>>>>> >>>>>> >>>>>> Am 07.04.19 um 10:41 schrieb Sebastian Gottschall: >>>>>>> your documentation is very unspecific. its unclear if you even >>>>>>> tried to change the country code using "iw reg set" >>>>>>> >>>>>>> like ony any other qca/atheros card you can simply change the >>>>>>> country code using iw reg set >>>>>>> >>>>>>> Am 07.04.2019 um 08:19 schrieb Rene 'Renne' Bartsch, B.Sc. >>>>>>> Informatics: >>>>>>>> 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 >>>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> ath10k mailing list >>>>>> ath10k@lists.infradead.org >>>>>> http://lists.infradead.org/mailman/listinfo/ath10k >>>>> >>>>> _______________________________________________ >>>>> ath10k mailing list >>>>> ath10k@lists.infradead.org >>>>> http://lists.infradead.org/mailman/listinfo/ath10k >>>> >>>> _______________________________________________ >>>> ath10k mailing list >>>> ath10k@lists.infradead.org >>>> http://lists.infradead.org/mailman/listinfo/ath10k >>> >>> _______________________________________________ >>> ath10k mailing list >>> ath10k@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/ath10k >> >> _______________________________________________ >> ath10k mailing list >> ath10k@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/ath10k > > _______________________________________________ > ath10k mailing list > ath10k@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/ath10k _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 2019-04-08 8:46 ` Sebastian Gottschall @ 2019-04-11 6:48 ` Rene 'Renne' Bartsch, B.Sc. Informatics 0 siblings, 0 replies; 12+ messages in thread From: Rene 'Renne' Bartsch, B.Sc. Informatics @ 2019-04-11 6:48 UTC (permalink / raw) To: ath10k We solved the problem for now by running OpenWRT 18.06 in a virtual machine. As we had to look for two weeks to find the reason I suggest to add a human-readable (error) message to dmesg/syslog like "ath10k: Country code read from ACPI table: XX" and "ath10k: Reading country code from ACPI failed. Using EEPROM default value: XX" Honoring the regdomain value in cfg80211 would be great, too. regards, Renne Am 08.04.19 um 10:46 schrieb Sebastian Gottschall: > just return a error code in that function so that the eeprom default is used instead of acpi like -EOPNOTSUPP > > > static int ath10k_mac_get_wrdd_regulatory(struct ath10k *ar, u16 *rd) > { > return -EOPNOTSUPP; > } > > Am 08.04.2019 um 10:24 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >> Which value for "*rd" in "ath10k_mac_get_wrdd_regulatory" would allow to set the country code with CRDA or "iw get set XX"? >> >> >> Am 08.04.19 um 09:52 schrieb Sebastian Gottschall: >>> that doesnt matter. the bios locked country code isnt a new feature. i dont know in which century it was introduced. just patch the function i told you in ath10k. >>> >>> Am 07.04.2019 um 18:11 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>>> On an notebook and a PC (both 10-year-old and without UEFI) "sudo iw reg set DE" doesn't work either (current Debian 10 Live-DVD non-free). >>>> >>>> >>>> Am 07.04.19 um 15:26 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>>>> Mainboard: Fujitsu D-3643-H1x (https://www.fujitsu.com/global/products/computing/peripheral/mainboards/extended-lifecycle-main/d3643h.html) >>>>> UEFI: 2.7; PI 1.6 >>>>> System Language: English (Chinese is the only other option) >>>>> Keyboard Layout: German >>>>> No other country/location options >>>>> TPM: disabled >>>>> Secure Boot Control: disabled >>>>> Secure Boot Mode: Standard >>>>> >>>>> >>>>> Parsing ACPI tables fails: >>>>> renne@cloud:~$ sudo cat /sys/firmware/acpi/tables/DSDT > dsdt.dat && iasl -d dsdt.dat >>>>> >>>>> Intel ACPI Component Architecture >>>>> ASL+ Optimizing Compiler/Disassembler version 20181213 >>>>> Copyright (c) 2000 - 2018 Intel Corporation >>>>> >>>>> Input file dsdt.dat, Length 0x1FBCD (129997) bytes >>>>> ACPI: DSDT 0x0000000000000000 01FBCD (v02 FUJ D3643-H1 10500000 INTL 20160527) >>>>> Pass 1 parse of [DSDT] >>>>> Pass 2 parse of [DSDT] >>>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000010025D070100 => 5D070100 (20181213/dsobject-492) >>>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000110025D070100 => 5D070100 (20181213/dsobject-492) >>>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000210025D070100 => 5D070100 (20181213/dsobject-492) >>>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000310025D070100 => 5D070100 (20181213/dsobject-492) >>>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000010025D070000 => 5D070000 (20181213/dsobject-492) >>>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000110025D070000 => 5D070000 (20181213/dsobject-492) >>>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000210025D070000 => 5D070000 (20181213/dsobject-492) >>>>> ACPI Warning: Truncated 64-bit constant found in 32-bit table: 000310025D070000 => 5D070000 (20181213/dsobject-492) >>>>> Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions) >>>>> >>>>> Parsing completed >>>>> Disassembly completed >>>>> ASL Output: dsdt.dsl - 892036 bytes >>>>> >>>>> >>>>> Debian: >>>>> Locale: >>>>> GDM_LANG=de_DE.UTF-8 >>>>> LANG=de_DE.UTF-8 >>>>> LC_ADDRESS=de_DE.UTF-8 >>>>> LC_NAME=de_DE.UTF-8 >>>>> LC_MONETARY=de_DE.UTF-8 >>>>> LC_PAPER=de_DE.UTF-8 >>>>> LC_IDENTIFICATION=de_DE.UTF-8 >>>>> LC_TELEPHONE=de_DE.UTF-8 >>>>> LC_MEASUREMENT=de_DE.UTF-8 >>>>> LC_TIME=de_DE.UTF-8 >>>>> LC_NUMERIC=de_DE.UTF-8 >>>>> >>>>> Where else can I look? >>>>> >>>>> Am 07.04.19 um 13:57 schrieb Sebastian Gottschall: >>>>>> then its time to check your system settings and to fix your os specific quirks you may have like bios/uefi specific country settings. so whatever your problem is, it seems to be OS/System specific. >>>>>> >>>>>> ath10k does handle bios specific country settings. see function "ath10k_mac_get_wrdd_regulatory / ath10k_mac_init_rd" in mac.c >>>>>> simply override this function to ignore the acpi table country settings >>>>>> >>>>>> >>>>>> root@ALPINE:~# iw reg get >>>>>> global >>>>>> country US: DFS-FCC >>>>>> (2402 - 2472 @ 40), (N/A, 30), (N/A) >>>>>> (5170 - 5330 @ 160), (N/A, 23), (N/A) >>>>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>>>> (5735 - 5835 @ 80), (N/A, 30), (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 - 5330 @ 160), (N/A, 23), (N/A) >>>>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>>>> (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 - 5330 @ 160), (N/A, 23), (N/A) >>>>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>>>> (5735 - 5835 @ 80), (N/A, 30), (N/A) >>>>>> (57240 - 63720 @ 2160), (N/A, 40), (N/A) >>>>>> >>>>>> root@ALPINE:~# iw reg set DE >>>>>> root@ALPINE:~# iw reg get >>>>>> global >>>>>> country DE: DFS-ETSI >>>>>> (2400 - 2483 @ 40), (N/A, 20), (N/A) >>>>>> (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR >>>>>> (5250 - 5350 @ 80), (N/A, 20), (N/A), NO-OUTDOOR >>>>>> (5470 - 5725 @ 160), (N/A, 30), (N/A) >>>>>> (5725 - 5875 @ 80), (N/A, 14), (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 - 5330 @ 160), (N/A, 23), (N/A) >>>>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>>>> (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 - 5330 @ 160), (N/A, 23), (N/A) >>>>>> (5490 - 5730 @ 160), (N/A, 23), (N/A) >>>>>> (5735 - 5835 @ 80), (N/A, 30), (N/A) >>>>>> (57240 - 63720 @ 2160), (N/A, 40), (N/A) >>>>>> >>>>>> >>>>>> Am 07.04.2019 um 11:41 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>>>>>> Ask specifics and you shall receive ;-) >>>>>>> >>>>>>> With WLE900VX: >>>>>>> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get >>>>>>> [sudo] password for renne: >>>>>>> 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#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) >>>>>>> >>>>>>> >>>>>>> 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#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) >>>>>>> >>>>>>> >>>>>>> Without WLE900VX: >>>>>>> renne@cloud:~$ sudo iw reg get && sudo modprobe ath10k_pci && sudo iw reg set DE && sudo iw reg get >>>>>>> [sudo] password for renne: >>>>>>> global >>>>>>> country 00: DFS-UNSET >>>>>>> (2402 - 2472 @ 40), (6, 20), (N/A) >>>>>>> (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >>>>>>> (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN >>>>>>> (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN >>>>>>> (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN >>>>>>> (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN >>>>>>> (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN >>>>>>> (57240 - 63720 @ 2160), (N/A, 0), (N/A) >>>>>>> >>>>>>> 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) >>>>>>> >>>>>>> >>>>>>> >>>>>>> Am 07.04.19 um 10:41 schrieb Sebastian Gottschall: >>>>>>>> your documentation is very unspecific. its unclear if you even tried to change the country code using "iw reg set" >>>>>>>> >>>>>>>> like ony any other qca/atheros card you can simply change the country code using iw reg set >>>>>>>> >>>>>>>> Am 07.04.2019 um 08:19 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics: >>>>>>>>> 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 >>>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> ath10k mailing list >>>>>>> ath10k@lists.infradead.org >>>>>>> http://lists.infradead.org/mailman/listinfo/ath10k >>>>>> >>>>>> _______________________________________________ >>>>>> ath10k mailing list >>>>>> ath10k@lists.infradead.org >>>>>> http://lists.infradead.org/mailman/listinfo/ath10k >>>>> >>>>> _______________________________________________ >>>>> ath10k mailing list >>>>> ath10k@lists.infradead.org >>>>> http://lists.infradead.org/mailman/listinfo/ath10k >>>> >>>> _______________________________________________ >>>> ath10k mailing list >>>> ath10k@lists.infradead.org >>>> http://lists.infradead.org/mailman/listinfo/ath10k >>> >>> _______________________________________________ >>> ath10k mailing list >>> ath10k@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/ath10k >> >> _______________________________________________ >> ath10k mailing list >> ath10k@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/ath10k > > _______________________________________________ > ath10k mailing list > ath10k@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/ath10k _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64) 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 20:28 ` Ben Greear 1 sibling, 0 replies; 12+ messages in thread From: Ben Greear @ 2019-04-07 20:28 UTC (permalink / raw) To: Rene 'Renne' Bartsch, B.Sc. Informatics, ath10k On 04/06/2019 11:19 PM, Rene 'Renne' Bartsch, B.Sc. Informatics wrote: > 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"). You might have to patch the driver and maybe the ath/ logic too, but the country code is handled in driver/kernel, so at least you can fix it. Thanks, Ben > > 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 > -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com _______________________________________________ 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.