Rock 4 SE WiFi Debian 11 regulatory database

Hi.

I have installed the Debian 11 image on a Rock 4 SE.
https://github.com/radxa-build/rock-4se/releases/download/20230312-1521/rock-4se_debian_bullseye_kde_b33.img.xz

The system works OK but the WiFi configuration is wrong. I cannot see all the WiFi channels. I think this is because the WiFi country:

root@rock-4se:~# iw reg get
global
country 00: DFS-UNSET
        (2402 - 2472 @ 40), (6, 20), (N/A)
        (2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
        (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
        (5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
        (5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
        (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
        (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
        (57240 - 63720 @ 2160), (N/A, 0), (N/A)

If I try to set the country to ES, there is no change. I have also used the rsetup utility.
Maybe the error comes from this one in dmesg:

[   20.718877] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   20.739776] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
...
[   20.741631] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   20.742135] cfg80211: failed to load regulatory.db

Any suggestions?

I looked into it briefly. -2 means file does not exist. However, we do have regulatory.db installed under /lib/firmware. I’ll need to check why it couldn’t load it later.

Please try the following commands to use the upstream regulatory database:

sudo apt update
sudo apt install wireless-regdb
sudo update-alternatives --set regulatory.db /lib/firmware/regulatory.db-upstream
sudo reboot

Thanks for the response. I tried that commands but no change.
I already had wireless-regdb installed, so I also tried:
$ dpkg-reconfigure wireless-regdb
But no luck.
I also tried to change it to DE (German) but the country is still in “00: DFS-UNSET”.

I tried to solve this issue and the solution was much simpler than expected :sweat_smile:
I simply had to remove and reinstall the wireless-regdb package. I also installed the crda package.

# apt remove wireless-regdb
# apt install wireless-regdb
# apt install crda

Now I can set the WiFi country using rsetup or the “iw reg set COUNTRY” command.