All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rene 'Renne' Bartsch, B.Sc. Informatics" <ml@bartschnet.de>
To: ath10k@lists.infradead.org
Subject: Re: [BUG] Can't change default country code from US to DE with Compex WLE900VX (Debian 10 Buster amd64)
Date: Sun, 7 Apr 2019 18:11:56 +0200	[thread overview]
Message-ID: <65ceba57-5dcc-ea69-b513-641aac7bcf67@bartschnet.de> (raw)
In-Reply-To: <ee03993d-b125-26ba-34d3-e8ad6c588716@bartschnet.de>

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

  reply	other threads:[~2019-04-07 16:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=65ceba57-5dcc-ea69-b513-641aac7bcf67@bartschnet.de \
    --to=ml@bartschnet.de \
    --cc=ath10k@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.