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:无法同时激活 AP 和网状角色

Guru**** 2510095 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/900338/wl1835mod-unable-to-activate-simultaneous-ap-and-mesh-roles

器件型号: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

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好,

    您可以应用以下主题中提到的修补程序吗:

    谢谢

    Saurabh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Saurabh:

    该补丁解决了该问题。 谢谢!

    它不直接应用于 BeagleBone 内核的分支4.19、但很容易看到需要应用的驱动程序更改。

    对于使用 BeagleBones 的任何人、下面是我应用的补丁、它允许同时接入点和网状网络角色:

    diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
    INDEX 496b9b63ce1..db5bc51c 100644
    -a/drivers/net/wireless/ti/wl18xx/main_limits =
    
    @@.iface_limits =.i_18xx/wace_limits =.intrabs_/w18xx @@
    
    
    
    
    、.i_limits =.i_limits =.ies/wace_limits =.i_zh_limits =.ifaces_limits =.i18xx/waces_zh_limits =.ines_限制、.ies/waces_zh_限制、.ifaces_limits =.ifaces_zh_限制、.i_限制=.ines_zh_ines_ines_zh_限制、.i_限制=.ifaces_ines_ines_zh_限制=.ines_zh_ines_zh_ines=.ines_
    
    
    
    
    
    +.beacon _int_min_GCD = 1、
    .num_differe_channels = 1、
    .radar_detect_Widths =bit (NL80211_CHAN_NO_HT)|
    bit (NL80211_CHAN_HT20)|