野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2164|回复: 1

[bug讨论] LBC0 - wlan - 不稳定

[复制链接]
发表于 2023-4-25 09:58:41 | 显示全部楼层 |阅读模式
使用最新的 20230419 的 debain Lite版本。


使用wpa_supplicant建立 STA 方式的网络连接。

测试发现,每隔80多秒,wlan会自动断开,然后再次建立连接。如此反复。下面是两段日志。



[  788.696725] RTW: recv eapol packet 3/4
[  788.705885] RTW: send eapol packet 4/4
[  788.718706] RTW: set pairwise key camid:0, addr:0e:08:fb:4a:a9:65, kid:0, type:AES
[  788.728590] RTW: set group key camid:1, addr:0e:08:fb:4a:a9:65, kid:1, type:AES
[  872.514962] RTW: clear key for addr:0e:08:fb:4a:a9:65, camid:0
[  872.521971] RTW: clear key for addr:0e:08:fb:4a:a9:65, camid:1
[  875.686344] RTW: nolinked power save enter
[  877.939709] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  878.970974] RTW: nolinked power save leave
[  883.678009] ========== ACS (VER-3) ==========
[  883.684218] Best 24G Channel:13
[  883.690247] Best 5G Channel:36




[  884.062510] RTW: recv eapol packet 3/4
[  884.069823] RTW: send eapol packet 4/4
[  884.079176] RTW: set pairwise key camid:0, addr:0e:08:fb:4a:a9:65, kid:0, type:AES
[  884.085715] RTW: set group key camid:1, addr:0e:08:fb:4a:a9:65, kid:1, type:AES
[  968.024085] RTW: clear key for addr:0e:08:fb:4a:a9:65, camid:0
[  968.031970] RTW: clear key for addr:0e:08:fb:4a:a9:65, camid:1
[  971.257214] RTW: nolinked power save enter
[  973.451840] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  974.478715] RTW: nolinked power save leave
[  979.182602] ========== ACS (VER-3) ==========
[  979.186219] Best 24G Channel:13
[  979.190131] Best 5G Channel:36



这样也就解释了,为什么各类 ssh 客户端时常会出现 中断(因软件问题)的现象。

BTW:
wpa_supplicant.conf 无特殊处理

ctrl_interface=/var/run/wpa_supplicant GROUP=netdev #默认不建议修改!
ap_scan=1
update_config=1 #这个配置使wpa_cli命令配置的热点保存到conf文件里面(wpa_cli save_config)
#AP配置项
network={
    ssid="???" # Wi-Fi名字
    psk="1234567890" # Wi-Fi密码
    key_mgmt=WPA-PSK # 加密配置,不加密则改为:key_mgmt=NONE
}



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-11 17:22 , Processed in 0.030633 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表