请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:WL1835MOD 您好!
使用运行 Debian 10和 Linux 内核4.19的 BeagleBone Green Wireless、我无法同时启动 AP 和网状角色(在同一频率/通道中)。
对于单个 AP 或 Mesh 角色、我没有问题。
以下是我的 hostapd 配置文件:
#### hostapd 配置文件 interface=SoftAp0 logger_syslogger=-1 logger_syslog_level=2 Ctrl_interface=/run/hostapd #### IEEE 802.11相关配置 SSID=BeagleBone country_code=PT ieee80211d=1 hw_mode=g channel=6 max_nnum_sta=10 macaddr_acl=0 auth_algs=1 WMM_enable=1 #### IEEE 802.11n 相关配置 ieee80211n=1 #### WPA/IEEE 802.11i 配置 WPA=2 wpa_passphras=BeagleBone wpa_key_mgmt=WPA-PSK RSN_pairwise =CCMP
下面是我的 wpa_supplicant 配置文件:
####网状网络(802.11s)的 wpa_supplicant 配置文件 ctrl_interface=/run/wpa_supplicant max_peer_links=10 mesh_max_inactivity=30 country=PT p2p_disabled=1 network={ SSID="BoneMesh " mode=5 frequency =2437 key_mgmt=none #key_SAE #PSK="BoneMesh }
如果我首先启动网状接口、当我尝试启动 AP 时、我会遇到以下错误:
Debian@BeagleBone:~ sudo hostapd /etc/hostapd.conf 配置文件:/etc/hostapd.conf SoftAp0:接口状态未初始化->使用 带有 hwaddr fc:69:47:32:59:23和 SSID "BeagleBone"的接口 Ap0:接口状态未初始化 -> COUNTRY 更新 ->禁用 SoftAp0:无法 设置信标参数接口 AP0:无法设置接口 Ap0。 SoftAp0:禁用接口状态->禁用 SoftAp0:禁用 AP SoftAp0:Ctrl-事件-终止 hostapd_free_hapt_data:未启动接口 SoftAp0 nl80211:deinit ifname=SoftAp0 disabled_11b_RAites=0
如果我在调试模式下启动 hostapd、我会看到有关错误的更多详细信息:
-- nl80211:assocresP_ies - hexdump (len=10):7F 08 04 00 02 00 40 nl80211:信标设置失败:-16 (设备或资源繁忙) 设置信标参数失败 SoftAp0:清除旧站条 目- nl80211:send_frame -> send_frame_nlcmd 80211 :frame 命令失败: RET=-16 (设备或资源占用)(freq=2437 wait=0) wpa_driver_nl80211_set_key:ifIndex=8 (SoftAp0) ALG=0 addr=(无) key_idx=0 Set_TX=0 len_len=0 key_seq=0 --
如果我首先启动 AP、当我尝试启动网状接口时、我会遇到此错误:
Debian@BeagleBone:~ sudo wpa_supplicant -i mesh0 -c /etc/wpa_supplicant/mesh.conf 使用 hwaddr 0c:1c:57:92:5c:82和 SSID " mesh0:接口状态未初始化->启用 的 mesh0:启用 AP 的 mesh0:加入 mesh BoneMesh 错误=0 :无法加入 mesh
内核4.19中是否存在同时工作 AP 和 Mesh 的任何已知限制?
是否需要在 hostapd 和/或 wpa_supplicant 中设置一些额外的配置才能使其正常工作?
此致、
Jos é Gonçalves í a
