207 points · by Avamander · 3y ago · 144 comments
>[...] i've tried replacing the wifi adapter but this happens on intel wireless-ac 3165, 8265, and 9260 dual band 160Mhz (currently installed adapter).
>[...] On Intel ax210ngw all 5ghz channels are disabled and cannot be used to transmit
So it's iwlwifi specifically.
>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
So it's not a Linux-specific issue. Rather it seems to be buggy firmware, and a method that OP was relying on to work around that bug was disabled because it was causing other issues with said buggy firmware.
https://github.com/torvalds/linux/commit/f06021a18fcf8d8a1e7...
But this commit message is burying the lede a bit. There are two problems here:
1) you can revert the change, but a large part of the regulatory logic lives in the firmware blob running on the chip and you can not change this.
2) the FCC doesn't look kindly upon functionality that ignores regulatory limits being available to end customers. It was already not legal for Intel to add this in the first place, and they certainly won't help you reinstate it.
The second part might be why these devices have been in a "broken" regulatory state forever now where they stay away from everything that touches upon e.g. DFS; someone at Intel might have realized that letting users pick their regulatory region is already not something they should be offering.
The reality is that these WiFi chips should probably have some fuse in them that decides what regulatory region they were made for and then run off that, but you can see the business people losing their mind over that: now you need to have a hundred different SKUs and worse you need to understand your distribution chain. So a software setting it is, and then you see why the FCC is upset.
Considering the average user would never bother to set their correct regdomain when they buy a crap Chinese wifi router, you are pretty much guaranteed to always be using the wrong (mostly CN) regdomain, because that's what your neighbours are using...
So you need to travel with like a dozen WiFi cards? Setting the region in software is a feature to all travelers...
It also doesn't seem to be that much of an issue for other vendors to allow the user to configure their regulatory locale, it definitely raises the question how necessary this current approach is.
In the end, Intel's current LAR implementation hurts users that want to use their hardware within their locale's regulatory limits. It does not prevent intentionally misleading the LAR implementation or acquiring other equipment to be disruptive. To me it seems to achieve very little positive, and I've not even touched the freedom aspect of Linux being violated.
The correct 'work around' is to build a kernel with a DEFAULT regulatory domain, abstract from any vendor's specific implementation, allow that domain to be updated at runtime (particularly for mobile devices), and follow the laws there in. I also advocate (in this post) for wifi_regulations=BREAKTHELAWANDDISABLE (allcaps required) to completely bypass filtering channels. This would be useful in some situations such as isolated testing environments, use in International Waters, and any other environment that's isolated enough.
It's not unreasonable to expect the customer to know which country he currently resides in.
Not my clown, not my circus.
If the wifi firmware thinks the regulatory area is ID (Indonesia) it's wrong anyway
> WiFi chips should probably have some fuse in them that decides what regulatory region they were made for
Yes let's block most of resale of used chip and make the problem worse by having the remaining market just be for chips for a "nice" regulatory region that has the channels you want even if it shouldn't! /s
No, the answer is to fix the sar logic so that if it gives obviously wrong results, the correct setting can be passed to the firmware.
It's up to the customer to obey the limits, and this feature wouldn't make it easy for customers to "ignore regulatory limits" but do the exact opposite: allow them to OBEY the regulatory limits while the setting clearly does the opposite for now (unless Indonesia is a subset of the US SAR settings, which I don't think it is)
If my wifi think I'm not in the US, I will tell it yes, indeed we are, and it's on me if I lie to software. Most people will not lie. Why make it harder to do the right things?
"Intel wireless cards are among the best for Linux, with support for new devices landing even before they are released. however, they have one big drawback: LAR (Location-Aware Regulatory).
basically the card detects in which country it is (and therefore the regulatory domain) based on nearby access points' ones, and doesn't let you change it manually. the sad thing is that it often sets the card to the wrong country, which is a problem.
prior to Linux 5.5 there was an option to disable this annoying feature in the iwlwifi module (lar_disable=1), but it was removed as later firmware versions caused card crashes and Intel claimed the option shouldn't be accessible anyway "
> since it does not disable LAR at all, it inherits the issue of requiring a 5GHz access point to be active and near the card in order to detect a 5GHz-able country.
I remember when the 8000 series radios were the gold standard for mobile wireless, all the newer AX cards have been nothing but pain and suffering.
Do you get a GPS fix nearby (~0.5m) of that card (eg. on your phone next to it)?
Due to some work i had ~6 of those dongles (Alfa AWUS036ACM), and all of them put out some noise in the gps range and break my gps connection the second they're plugged into the usb port (without any ifconfig up-ing them, setting a channel or connecting anywhere).
Unlike my Intel AX210 I can actually get a full gigabit down sat next to my router.
This is surprising for me to hear. My AX201 hasn't given me any trouble at all, ever. Maybe I've been getting lucky.
The thinkpad had lots of issues especially with 5G, firmware lockups, iwlwifi getting the kernel stuck etc.
The LG is rock-solid, no problems at all.
Either they are not the same card, or there are issues in the interplay of these cards with certain hardware.
My latest one has an MTK chip by no choice of my own, and it works fantastic. Shame on Intel.
My APs have an outdoor mode I was curious about and turns out it’s for plane radars. I was very confused when I turned it on. They were outside APs so I turned it on. I was looking at the channel interfaces and noticed missing channels.
Don't use non-standard channels. You're making it worse for everyone.
802.11n works perfectly fine with channels 1+5+9+13, letting the guard bands intersect. The 1/6/11 set common to the USA leaves plenty of guard space to prevent overlaps, but wastes bandwidth in jurisdictions where channel 12 and 13 are disallowed.
I haven't had a laptop that came with an Atheros chipset in a while, so I don't know if the buyout by Qualcomm has spoiled anything, but Atheros always had way better WiFi support on Linux than Intel did. And similarly, a recent AMD GPU with the community drivers in Mesa has given me way better stability than anything Intel has put out.
Open-source drivers are nice, but good open-source drivers are worth a lot more. Go for AMD or Atheros where you can.
(That said, I've had unproblematic experiences with a lot of other kinds of Intel hardware on Linux, like SSDs, wired NICs, NUCs, and even Thunderbolt. And for the most part, WiFi has been more or less good enough for me with Intel in the past few years that I haven't bothered to replace Intel WiFi cards when they've come included in my laptops.)
On most Linux laptops with no dedicated GPU, Intel GPUs seem to work fine, though.
In a similar fashion, I was also luckier with Nvidia proprietary drivers on Linux than with AMD open source drivers.
Seems like HW on Linux really is a box of chocolates, you never know what you're gonna get.
I can pull up the dmesg info later tonight when I reboot into linux if you want.
Bluetooth works fine on it on Linux as well between my phone and my Sony headphones. No complaints from me on Fedora/Opensuse.
Out of curiosity, what issues are you having with the Intel AX chip? I also have it on my Lenovo Intel work machine running Ubuntu 22.04 and it seems OK to me.
No that's fine, great info, cheers.
Now try `sudo iw dev wlan0 del` and the kernel will deadlock :)
Took me 3 days to get back to a GUI at boot, turns out I needed to delete the xorg.conf file.
Soundslike you got one of the chipsets that has in-kernel support, so that is good.
It's not a recommendation to go and buy a Realtek card, I was just sharing my anecdote.
If the out of tree driver becomes unmaintained / incompatible with future kernels, you are SoL. Also dkms is kind of a headache to deal with. Not sure if Nobara builds the module for you, but on traditional distros you would have to build the module via dkms on each kernel update, which again I have to repeat is not guaranteed to actually succeed.
There was another Intel related issue with this laptop also; the gpu would freeze/panic intermittently, multiple times a day. This was "fixed" by adding a boot flag in grub to turn off a certain feature, and I think the ultimate fix may be working its way into the kernel currently.
Really not the slick experience I was hoping for with the XPS13. I mostly work on my desktop so it's not the end of the world, but it has me thinking about getting a mac in 5 or so years, assuming Asahi reaches stability.
I had this on my Dell XPS13 (9310) as well, although in my case it was a few times a week, maybe .5 times a day. It also seemed to almost always trigger when kwin was animating something, particularly switching to another virtual desktop, but never when playing any games. I can't imagine why, but the problem mostly went away when I turned off all animations in kwin, and seems to have gone away completely sometime about a year or so ago.
All in all, it's still a better experience than the Macbook Air I was using prior to having this XPS13... That damn Macbook loved to vomit onto the screen and lock up without warning. No dust, thermals seemed fine, battery was healthy... no clue what was wrong with it. And without many exposed settings to fiddle with.
https://source.chromium.org/chromiumos/chromiumos/codesearch...
The reason these things are often broken on Ubuntu and the other distros is simply that the governance and organization of those projects is not incentivized to ship a working product.
I figured it was the walls until I setup a “slow” 2G network for an old printer and my PC was at full speed when connected to it. Figured out that it was a driver issue a few weeks ago. This is a problem I haven’t had since around 2000. Never would have guessed that the device I chose for compatibility and support would have a driver that flakey.
Here's a mirror: https://web.archive.org/web/20230317164517/https://bugzilla....
For fellow website admins, this is your regular reminder to use static site generators, where possible, and server-side cache where not.
local vs CDN that is...
Hey, it's still better than Windows:) To quote a bit from upthread,
>>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.
Generally I think Intel is one of the best companies at open-source by far & it's a huge competitive advantage. But all companies of any notable size are companies of many smaller orgs... Still surprising, as Intel has excellent dedication to wifi & has great works like connman.
But also... competitive advantages only matter if anyone notices or cares. This issue is incredible egg-in-the-face to literally all of us. That everyone missed this is absurd!
Ed: now that I see the full year, pretty shameful seemingly nothing has been done in 3 years. Why?!? Ed ed: oh, only affects AP mode... OK now that's not good but way more reasonable scope!!
I also didn't know at the time this was limited to AP mode. Still, it being bad for so long is ultra-embarassing. I sincerely appreciate the correction. My bad.
The link I'm looking at says 2020-02-08.
https://news.ycombinator.com/item?id=35113567
I think it is what you've been seeing.
I wonder if it was the same (or similar) issue... I wound up buying a mikrotik AP after all that nonsense.
It appears that this problem is related to Intel's WiFi firmware automatic detection of the regulatory domain, which is LAR. This is done on the basis of nearby access points, although the specifics of how this works is beyond me.
The problem is that if this gets detected incorrectly, there's no way to override. What the users in this bug report found that attempting to set the regulatory domain manually resulted in two separate regulatory domains being defined, which still left the 5 GHz channels disabled on their devices.
A workaround for this firmware issue, previously, was to disable LAR, which would force the card to use the manually set regulatory domain. But this option was removed from the kernel due to it causing other problems.
So I don't think this is (exclusively) a non-US issue, it's an issue for people who live in a place where nearby access points will teach the WiFi driver the wrong regulatory domain ... however that works. It's probably less common for this to happen in the US, but not impossible.
Partially contrary to the title, I would expect this problem to affect a relatively small number of users.
Edit: I found a great blog post talking about the issue in more detail, although it's from the point of view of hosting an AP on the device. https://tildearrow.org/?p=post&month=7&year=2022&item=lar
A nearby AP is not always sufficient for LAR to work properly, making AP startup finicky and slow at best. While also causing the issue that scans later on might affect functionality (https://tildearrow.org/?p=post&month=7&year=2022&item=lar). I guess you could also end up with totally incorrect (and illegal) location detection, but that's less likely than it not working at all (leaving everything disabled).
With 6GHz in the mix, the likelihood of automatic detection failing to find any nearby relevant APs rises significantly. Breaking all IR (initiate-radiation) functionality, AP mode included.
Could it be as simple as somebody moving from Indonesia or wherever to America, and bringing their Indonesian/etc AP with them?
Still kind of crappy, but my experience with Broadcom is so bad that I'd rather lack the 160MHz channels (and use 80MHz) than try to get Broadcom's drivers to work right.
Shame about all the other problems with it.