hostapd问题解决

使用hostapd,配置wifi6模组为软AP模式

遇到的问题

运行报错

1
rfkill: Cannot open RFKILL control device

解决方法:

内核添加对应的驱动:

1
2
3
4
Networking support
<*> RF switch subsystem support --->
[*] Power off on suspend (NEW)
<*> Generic rfkill regulator driver

国家码设置不生效

不管设置什么,国家码都为00

解决方法:

由于内核版本在4.15以下,所以需要关闭CRDA,打开use statically compiled regulatory rules database

1
2
3
4
Wireless
....
[*] use statically compiled regulatory rules database
[ ] support CRDA

ax设置不生效

wifi模式配置ax不生效,原因是编译时配置没有打开

解决方法:

在defconfig中打开以下开关

1
2
3
CONFIG_WNM=y
CONFIG_IEEE80211AC=y
CONFIG_IEEE80211AX=y

在运行hostapd之前使用以下命令进行配置:

./mlanutl uap0 11axcfg 11axcfg_80-2x2.conf


hostapd问题解决
https://carl-5535.github.io/2022/06/05/工作总结/hostapd问题解决/
作者
Carl Chen
发布于
2022年6月5日
许可协议