Bug 206469 - LAR (location aware regulatory) fails, removal of lar_disable module option breaks workaround.
Summary: LAR (location aware regulatory) fails, removal of lar_disable module option b...
Status: NEW
Alias: None
Product: Networking
Classification: Unclassified
Component: Wireless (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: networking_wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-08 16:14 UTC by dglt
Modified: 2020-04-24 13:35 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.5 kernels
Tree: Mainline
Regression: No


Attachments

Description dglt 2020-02-08 16:14:21 UTC
looks like lar_disable functionality was removed as of 5.5 kernel as a way to fix the firmware crash issue with iwlwifi, is that right? if i boot with 4.19 or 5.3 im able to use lar_diable but booting on 5.5 no longer even lists it as a iwlwifi module option.

without lar_disable all my 5ghz channels get disabled because the regulatory domain gets detected as shown by `iw reg get` as both "country US: DFS-FCC" which is correct (im in the US) and "country ID: DFS-UNSET" (Indonesia)which then disables all 5ghz channels except for 149-163 and only at 20mhz. the connection speed is less than 1/10th of what it should be. instead of the 360mbps i usually get, im barely able to get 9mbps when using those 5ghz channels. (actual fast.com speed test numbers, not link speed)

i've tried replacing the wifi adapter but this happens on intel wireless-ac 3165, 8265, and 9260 dual band 160Mhz (currently installed adapter). i should add that this happens on both windows and linux but at least on linux i had a way of disabling LAR so my regulatory domain gets detected properly and all the wifi channels/widths works as they should.

on all 5.3 and earlier kernels, using lar_disable=1 all my channels work and i get a full 1733mbps link speed (5ghz ch.36 at 160mhz)as shown here

relevant outputs from 5.3 kernel:

[code]
~ >>> uname -r                                                                                                                                                                                                     
5.3.13-zen1-1-zen
~ >>> iw reg get                                                                                                                                                                                                   
global
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)

~ >>> iw phy0 channels                                                                                                                                                                                             
Band 1:
	* 2412 MHz [1] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40+
	* 2417 MHz [2] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40+
	* 2422 MHz [3] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40+
	* 2427 MHz [4] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40+
	* 2432 MHz [5] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2437 MHz [6] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2442 MHz [7] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2447 MHz [8] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40-
	* 2452 MHz [9] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40-
	* 2457 MHz [10] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40-
	* 2462 MHz [11] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40-
	* 2467 MHz [12] (disabled)
	* 2472 MHz [13] (disabled)
Band 2:
	* 5180 MHz [36] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Channel widths: 20MHz HT40+ VHT80 VHT160
	* 5200 MHz [40] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5220 MHz [44] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5240 MHz [48] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	* 5260 MHz [52] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5280 MHz [56] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5300 MHz [60] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5320 MHz [64] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5500 MHz [100] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5520 MHz [104] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5540 MHz [108] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5560 MHz [112] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5580 MHz [116] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5600 MHz [120] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5620 MHz [124] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5640 MHz [128] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80 VHT160
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5660 MHz [132] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5680 MHz [136] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5700 MHz [140] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- HT40+ VHT80
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5720 MHz [144] 
	  Maximum TX power: 22.0 dBm
	  No IR
	  Radar detection
	  Channel widths: 20MHz HT40- VHT80
	  DFS state: usable (for 155 sec)
	  DFS CAC time: 60000 ms
	* 5745 MHz [149] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40+ VHT80
	* 5765 MHz [153] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5785 MHz [157] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- HT40+ VHT80
	* 5805 MHz [161] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- VHT80
	* 5825 MHz [165] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz
~ >>>                
~ >>> iw wlan0 info                                                                                                                                                                                                
Interface wlan0
	ifindex 3
	wdev 0x1
	addr 24:ee:9a:88:66:84
	ssid wrt5-160
	type managed
	wiphy 0
	channel 36 (5180 MHz), width: 160 MHz, center1: 5250 MHz
	txpower 22.00 dBm
	multicast TXQ:
		qsz-byt	qsz-pkt	flows	drops	marks	overlmt	hashcol	tx-bytes	tx-packets
		0	0	0	0	0	0	0	0		0
~ >>>              
[/code]

and the same outputs from 5.5 kernel (lar_disable not an option)
[code]
~ >>> uname -r                                                                                                                                                                                                     
5.5.1-arch1-1
~ >>> iw reg get                                                                                                                                                                                                   
global
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 (self-managed)
country ID: DFS-UNSET
	(2402 - 2437 @ 40), (6, 22), (N/A), AUTO-BW, NO-HT40MINUS, NO-80MHZ, NO-160MHZ
	(2422 - 2462 @ 40), (6, 22), (N/A), AUTO-BW, NO-80MHZ, NO-160MHZ
	(2447 - 2482 @ 40), (6, 22), (N/A), AUTO-BW, NO-HT40PLUS, NO-80MHZ, NO-160MHZ
	(5735 - 5815 @ 20), (6, 22), (N/A), AUTO-BW, NO-HT40MINUS, NO-HT40PLUS, NO-80MHZ, NO-160MHZ

~ >>> iw phy0 channels                                                                                                                                                                                             
Band 1:
	* 2412 MHz [1] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40+
	* 2417 MHz [2] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40+
	* 2422 MHz [3] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40+
	* 2427 MHz [4] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40+
	* 2432 MHz [5] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2437 MHz [6] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2442 MHz [7] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2447 MHz [8] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2452 MHz [9] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40- HT40+
	* 2457 MHz [10] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40-
	* 2462 MHz [11] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40-
	* 2467 MHz [12] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40-
	* 2472 MHz [13] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz HT40-
	* 2484 MHz [14] (disabled)
Band 2:
	* 5180 MHz [36] (disabled)
	* 5200 MHz [40] (disabled)
	* 5220 MHz [44] (disabled)
	* 5240 MHz [48] (disabled)
	* 5260 MHz [52] (disabled)
	* 5280 MHz [56] (disabled)
	* 5300 MHz [60] (disabled)
	* 5320 MHz [64] (disabled)
	* 5340 MHz [68] (disabled)
	* 5360 MHz [72] (disabled)
	* 5380 MHz [76] (disabled)
	* 5400 MHz [80] (disabled)
	* 5420 MHz [84] (disabled)
	* 5440 MHz [88] (disabled)
	* 5460 MHz [92] (disabled)
	* 5480 MHz [96] (disabled)
	* 5500 MHz [100] (disabled)
	* 5520 MHz [104] (disabled)
	* 5540 MHz [108] (disabled)
	* 5560 MHz [112] (disabled)
	* 5580 MHz [116] (disabled)
	* 5600 MHz [120] (disabled)
	* 5620 MHz [124] (disabled)
	* 5640 MHz [128] (disabled)
	* 5660 MHz [132] (disabled)
	* 5680 MHz [136] (disabled)
	* 5700 MHz [140] (disabled)
	* 5720 MHz [144] (disabled)
	* 5745 MHz [149] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz
	* 5765 MHz [153] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz
	* 5785 MHz [157] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz
	* 5805 MHz [161] 
	  Maximum TX power: 22.0 dBm
	  Channel widths: 20MHz
	* 5825 MHz [165] (disabled)
	* 5845 MHz [169] (disabled)
	* 5865 MHz [173] (disabled)
	* 5885 MHz [177] (disabled)
	* 5905 MHz [181] (disabled)
~ >>>  
~ >>> iw wlan0 info                                                                                                                                                                                                
Interface wlan0
	ifindex 4
	wdev 0x100000001
	addr 24:ee:9a:88:66:84
	ssid HOME_2.4
	type managed
	wiphy 1
	channel 11 (2462 MHz), width: 40 MHz, center1: 2452 MHz
	txpower 22.00 dBm
	multicast TXQ:
		qsz-byt	qsz-pkt	flows	drops	marks	overlmt	hashcol	tx-bytes	tx-packets
		0	0	0	0	0	0	0	0		0

[/code]

when LAR fails, a way to disable it seems to be the only workaround and i say this after many hours over many months trying to figure out why. every kernel version ive tested (4.14 to 5.5) all behave the same if lar_disable=1 is not used.
Comment 1 dglt 2020-02-08 16:27:57 UTC
sorry, i wasnt sure on how code boxes are used here.

other possible causes i tested while trying to figure this out and made no difference.

- replaced router.

- replaced wifi adapter.

- reset bios multiple times and flashed with 3 different bios versions.

- rolled back linux-firmware and tried every version since jan 2019 to current.

- removed current drives, and tried both a clean linux install and also a clean windows install (each separately, not dual boot and with a fresh bios flash in between)

- powered down every other wifi device except for this laptop with the reasoning that LAR works by picking up on other device's regdom (cant find documentation for LAR so im not sure).

- made sure every device including router is set to a US locale.


this issue started about 4-6 months ago on my dell inspiron 15-7559 and it's now started to happen on an msi gf63-8rd (both have intel wifi adapters). please let me know if further info is needed, thanks for your time.

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