Opened 14 months ago

Closed 14 months ago

Last modified 9 months ago

#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 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)

Making a ticket so that the book be fixed, before I forget...

Change History (10)

comment:1 by pierre, 14 months ago

Owner: changed from blfs-book to pierre
Status: newassigned

comment:2 by pierre, 14 months ago

I suspect setting the country needs a udev rule, as done in arch (package wireless-regdb).

comment:3 by pierre, 14 months ago

Description: modified (diff)

comment:4 by pierre, 14 months 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

Last edited 14 months ago by pierre (previous) (diff)

in reply to:  description comment:5 by Xi Ruoyao, 14 months 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:6 by Xi Ruoyao, 14 months ago

Looks like you can also set it in /etc/wpa_supplicant.conf.

in reply to:  6 comment:7 by pierre, 14 months 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 pierre, 14 months ago

Same problem when adding country="FR" in /etc/sysconfig/wpa_supplicant-wlan0.conf

comment:9 by pierre, 14 months ago

Resolution: fixed
Status: assignedclosed

Fixed at commit 0f5515df630

comment:10 by Bruce Dubbs, 9 months ago

Milestone: 11.412.0

Milestone renamed

Note: See TracTickets for help on using tickets.