(1)需要开启以下宏:

CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y

CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y

(2)下载 regulatory.db and regulatory.db.p7s. Place them into /lib/firmware/ directory.

Index of /pub/software/network/wireless-regdb/https://mirrors.edge.kernel.org/pub/software/network/wireless-regdb/或者git clone git://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git

注:4.15之后内核的net/wireless/certs中已经存在sforshee.hex文件,所以可以直接可以直接使用regulatory.db and regulatory.db.p7s

(3)如果需要自己自定义 regulatory.db and regulatory.db.p7s,按如下操作:

git init

git clone git://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git

下载code之后进行make(可能编译不过,需要安装一些工具库)

之后会生成另一组rsa的秘钥,以及新的regulatory.db and regulatory.db.p7s

需要把私钥转换一下格式,执行如下命令:

openssl asn1parse -out xxx.hex -i -inform PEM < xxx.x509.pem

xxx.hex还不是16进制格式,需要把字符串转化成16进制,然后把xxx.hex放入内核的net/wireless/certs,把新的regulatory.db and regulatory.db.p7s放到/lib/firmware/目录,重新编译

Logo

更多推荐