Bug 200979 - Ath10k: Wifi channels 12 & 13 are disabled
Summary: Ath10k: Wifi channels 12 & 13 are disabled
Status: NEW
Alias: None
Product: Networking
Classification: Unclassified
Component: Wireless (show other bugs)
Hardware: All Linux
: P1 high
Assignee: networking_wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-30 12:30 UTC by Ionut Radu
Modified: 2020-04-30 20:53 UTC (History)
3 users (show)

See Also:
Kernel Version: kernel-5.6.7
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg (77.12 KB, text/plain)
2019-08-27 05:14 UTC, Ionut Radu
Details

Description Ionut Radu 2018-08-30 12:30:30 UTC
Description of problem:
I have a dual boot laptop with Windows 10 and Fedora 28.
On Fedora 28, wifi channel 13 is not available although on Windows 10 it is available.

Version-Release number of selected component (if applicable):
kernel-4.17.14-202.fc28.x86_64

%  dmesg | grep ath
[    4.537624] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    4.750882] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:03:00.0.bin failed with error -2
[    4.750891] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[    4.751140] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-6.bin failed with error -2
[    4.753104] ath10k_pci 0000:03:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 105b:e0a1
[    4.753106] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 0
[    4.753594] ath10k_pci 0000:03:00.0: firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5 features ignore-otp crc32 c3e0d04f
[    4.818271] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[    5.559047] ath10k_pci 0000:03:00.0: htt-ver 3.44 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[    5.566744] ath: EEPROM regdomain: 0x69
[    5.566745] ath: EEPROM indicates we should expect a direct regpair map
[    5.566746] ath: Country alpha2 being used: 00
[    5.566747] ath: Regpair used: 0x69
[    5.681425] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0

% lspci | grep -i ath
03:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)

% iw list
Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm)
			* 2472 MHz [13] (disabled)
			* 2484 MHz [14] (disabled)


%iw reg get
global
country RO: DFS-ETSI
	(2402 - 2482 @ 40), (N/A, 20), (N/A)
	(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
	(5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
	(57000 - 66000 @ 2160), (N/A, 40), (N/A)
Comment 1 Nicola Nicolov 2018-09-01 17:40:30 UTC
Since when do you experience this bug? Have you ever been able to get channel 13 working before?
Comment 2 Ionut Radu 2018-09-01 17:43:19 UTC
I've noticed it since two months ago.
Comment 3 Ionut Radu 2018-09-30 09:19:16 UTC
I'm mostly using 5GHz.
Comment 4 Ionut Radu 2019-06-02 06:34:24 UTC
Still, this is bothering when traveling. Are there any news?
Comment 5 Ionut Radu 2019-06-02 06:36:11 UTC

My current kernel is 5.1.5-300.fc30.x86_64 #1 SMP Sat May 25 18:00:11 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Comment 6 Ronald 2019-08-26 21:08:26 UTC
I see this as well !

providing a parameter for cfg80211 (for germany)

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

doesn't fix it.

channel 13 stays disabled !
Comment 7 Ionut Radu 2019-08-27 04:15:30 UTC
Why do you do that? Isn't your region set properly?
Comment 8 Ionut Radu 2019-08-27 05:14:20 UTC
Created attachment 284617 [details]
dmesg


Update for current kernel:

$ uname -a
Linux mendol4 5.2.9-200.fc30.x86_64 #1 SMP Fri Aug 16 21:37:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ dmesg | grep ath10k
[    5.103265] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    5.338117] ath10k_pci 0000:03:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 105b:e0a1
[    5.338118] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 0
[    5.338555] ath10k_pci 0000:03:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
[    5.402615] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[    5.477337] ath10k_pci 0000:03:00.0: unsupported HTC service id: 1536
[    5.495675] ath10k_pci 0000:03:00.0: htt-ver 3.56 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[    5.699482] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0

$ iw list | grep -A14 Frequencies | head -15
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm)
			* 2472 MHz [13] (disabled)
			* 2484 MHz [14] (disabled)

$ iw reg get
global
country RO: DFS-ETSI
	(2402 - 2482 @ 40), (N/A, 20), (N/A)
	(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
	(5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
	(57000 - 66000 @ 2160), (N/A, 40), (N/A)

I don't have a conf file:
$ ls /etc/modprobe.d/cfg80211.conf
ls: cannot access '/etc/modprobe.d/cfg80211.conf': No such file or directory
Comment 9 Ronald 2019-08-27 13:52:58 UTC
why do I do that ?
to check if it helps: it doesn't !


/etc/modprobe.d/cfg80211.conf 

it's a user created file, it doesn't come from Fedora (I'm running F30 too, btw)

modinfo cfg80211 says that "ieee80211_regdom" is a parameter for this module (see lines with parm:). 


for the record: 

hardware is no more available/700 km away.
it was just a installation/setup/configuration-job for my brothers new notebook
Comment 10 Ionut Radu 2019-08-27 13:57:50 UTC
But was "iw reg get" not returning DE? What was returning? 
In my case the return of "iw reg get" of RO is correct, so there is no point in 
trying to enforce that.
Comment 11 Ionut Radu 2019-08-30 08:13:52 UTC
On a Intel wifi 7260, the channel 13 is enabled:

$ lspci
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)

$ iw reg get
global
country RO: DFS-ETSI
	(2402 - 2482 @ 40), (N/A, 20), (N/A)
	(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
	(5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
	(57000 - 66000 @ 2160), (N/A, 40), (N/A)


$ iw list | grep -A14 Frequenc | head -15
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm) (no IR)
			* 2472 MHz [13] (20.0 dBm) (no IR)
	Band 2:
Comment 12 Ionut Radu 2019-10-28 20:02:24 UTC
Update: This bug is still present for kernel:

5.3.7-200.fc30.x86_64 #1 SMP Fri Oct 18 20:13:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm)
			* 2472 MHz [13] (disabled)
			* 2484 MHz [14] (disabled)
Comment 13 Ionut Radu 2019-10-30 18:06:51 UTC
I've used the information from here: https://forums.linuxmint.com/viewtopic.php?t=236357

specifically :

in drivers/net/wireless/ath/regd.c change the lines 235-237
CODE: SELECT ALL

	case 0x66:
	case 0x69:
		return &ath_world_regdom_66_69;
into
CODE: SELECT ALL

	case 0x66:
		return &ath_world_regdom_66_69;
	case 0x69:
		return &ath_world_regdom_60_61_62;

Re-compiled the module with 
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules

And now I have channel 13 functional until the next kernel update:

Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm) (no IR)
			* 2472 MHz [13] (20.0 dBm) (no IR)
Comment 14 Ionut Radu 2020-03-03 21:56:39 UTC
Update: This bug is still present for kernel:

5.5.7-200.fc31.x86_64 #1 SMP Fri Feb 28 17:18:37 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Comment 15 Ionut Radu 2020-04-12 10:43:20 UTC
With kernel 5.5.15-200.fc31.x86_64 #1 SMP Thu Apr 2 19:16:17 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Channel 12 has become also disabled:

Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (disabled)
			* 2472 MHz [13] (disabled)
			* 2484 MHz [14] (disabled)
Comment 16 Ionut Radu 2020-04-26 19:47:38 UTC
By the way:
iw reg get changed to:
global
country GB: DFS-ETSI
	(2402 - 2482 @ 40), (N/A, 20), (N/A)
	(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
	(5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
	(57000 - 66000 @ 2160), (N/A, 40), (N/A)

Note You need to log in before you can comment on or make changes to this bug.