#17780 closed defect (fixed)
loading regulatory.db needs cfg80211 enabled as module
Reported by: | pierre | Owned by: | pierre |
---|---|---|---|
Priority: | normal | Milestone: | 12.0 |
Component: | BOOK | Version: | git |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by ) ¶
I had a problem with loading of regulatory.db failing whatever I had done, until I had an epiphany and realized that cgf80211 was trying to access the disk before the disk was initialized...
Enabling cfg80211 as 'M' fixed that (I still cannot set the country to FR, but this is a start)
Making a ticket so that the book be fixed, before I forget...
Change History (10)
comment:1 by , 2 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 2 years ago
comment:3 by , 2 years ago
Description: | modified (diff) |
---|
comment:4 by , 2 years ago
BTW, there is no /proc/net/wireless dir (as stated on the iw page) if not using wext, or enabling cfg80211 wireless extensions compatibility
, which I wouldn't recommend.
Note that testing whether the interface is recognized by the kernel can be done with iw dev, instead of listing /proc/net/wireless
comment:5 by , 2 years ago
Replying to pierre:
I had a problem with loading of regulatory.db failing whatever I had done, until I had an epiphany and realized that cgf80211 was trying to access the disk before the disk was initialized...
Enabling cfg80211 as 'M' fixed that (I still cannot set the country to FR, but this is a start)
In my network environment it's set to CN once I connect with an AP, so it seems the AP advertises the country code to the system. Maybe your AP isn't advertising it...
comment:7 by , 2 years ago
Replying to Xi Ruoyao:
Looks like you can also set it in /etc/wpa_supplicant.conf.
Well, I can change it for the "dev" (in iw terminology), but not for the "phy" (again iw terminology). So it looks like my AP (which is in the box supplied by my ISP) does not transmits packets with proper country identification (or that something else is broken).
The fact that the interface can use the packets transmitted from an AP to set the regulatory country is called "LAR" (Location Aware Regulatory) and it could be disabled in former iwlwifi versions (kernel 4.something). But now, unless changing the driver code, it cannot be disabled anymore. This fact is shown in "iw reg get" output, by adding (self-managed) on the phy#x line.
Let me try in wpa_supplicant.conf though. Maybe it somehow bypasses the LAR code.
comment:8 by , 2 years ago
Same problem when adding country="FR"
in /etc/sysconfig/wpa_supplicant-wlan0.conf
comment:9 by , 2 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed at commit 0f5515df630
I suspect setting the country needs a udev rule, as done in arch (package wireless-regdb).