This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WL1835MOD: Issue on setting the reg domain country

Part Number: WL1835MOD

Tool/software:

Hi , I am using the kernel version "6.1.112" and wireless-regdb package version "2024.07.04" and i am not including the crda package as it is deprecated , i tried to set the regulatory domain  using the command "iw reg set US " but when i tried to set it is throwing the error as "cfg80211: loaded regulatory.db is malformed or signature is missing/invalid"  as i have checked iam installing the proper regulatory.db and regulatory.db.p7s files in /lib/firmware path but not getting the what is the issue behind this please provide the solution for this any pathches or kernel driver change need to be done it will be helpful .

  • Hi Vaddinakatti,

    Can you check if your kernel has these patches? The wireless regdb maintainers have changed so their public keys have changed as well. This changes how the regulatory.db gets loaded. Can you share your kernel boot logs? You should see something about 'sforshee' and 'wens'.   
    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/net/wireless/certs?h=v6.1.112 

    Can you share your defconfig and final .config? From the KConfig page, it seems all you need is CONFIG_CFG80211=m and everything should be configured for you. 

  • Hi sabeeh khan, 

    I have verified the kernel v6.1.112 the patches which you have shared those patches are applied in the kernel and I have  checked the dmesg of the kernel im not seeing anything like 'sforshee and wen' . so I have attached the dmesg logs of kernel and defconfig ,.config below please check and let me know what change i need to do to fix the above issue as soon as possible .

    kernel 6.1.112.zip

  • Hi Vaddinakatti,

    It seems you are not using systemd in your kernel, so the cfg80211 kernel module does not load from the dmesg log. It's also strange that MAC80211, CFG80211, are not listed in the defconfig, but they do show up in the .config. Perhaps there is another defconfig or prune config that is being called before .config is generated? Can you show me the logs when cfg80211 module is loaded?

    By chance are you using buildroot? If so, which platform? I can help to try to reproduce this issue (assuming platform is supported in buildroot and/or opensource), but it seems a configuration issue with the buildroot rather than anything specific to wl18xx software. 

  • Just for clarity,

    These are the logs I am expecting to see:

    Fullscreen
    1
    2
    3
    [ 22.519104] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [ 22.961312] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [ 22.970016] cfg80211: Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX