我正在使用正常设置连接到本地 WiFi 网络(请参阅下面的系统规格),即一个 Fritz!Box 路由器和一个用于扩大覆盖范围的 WiFi 中继器。通常一切都很好,我有正常的连接并且可以访问互联网。然而,有时看似随机(但可能在暂停后更常见?!),NetworkManager gui 将我踢出 WiFi 并要求我输入密码。因为它已经知道了,我只需按 Enter 键,但它就会一遍又一遍地问我。这迫使我重复按 Enter 键 10-20 次。然后,它再次随机连接。这种情况每天会发生 20-30 次,确实让人分心。知道问题是什么吗?也许是 WiFi 中继器设置导致有两个同名网络?但即使我只在路由器本身的范围内而不是中继器,我也会遇到问题......
重要补充:我使用任何其他设备都没有这个问题(例如手机、平板电脑、运行 Windows 的笔记本电脑)
到目前为止我发现了什么:我发现了这和这帖子,我已经尝试过以下操作:
- 设置
/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
为wifi.powersave = 2
(但这会破坏 NetworkManager,即systemctl status NetworkManager.service
产生 statusfailed
) - 下面
journalctl -fu NetworkManager
看看它给了我什么错误
如果连接失败,journalctl -fu NetworkManager
给我:
[...]
device (wlp2s0): supplicant interface state: 4way_handshake -> disconnected
device (wlp2s0): Activation: (wifi) disconnected during association, asking for new key
device (wlp2s0): state change: activated -> need-auth (reason 'supplicant-disconnect', sys-iface-state: 'managed')
dhcp4 (wlp2s0): canceled DHCP transaction
dhcp4 (wlp2s0): state changed bound -> done
dhcp6 (wlp2s0): canceled DHCP transaction
dhcp6 (wlp2s0): state changed bound -> done
manager: NetworkManager state is now CONNECTING
device (wlp2s0): supplicant interface state: disconnected -> inactive
device (wlp2s0): supplicant interface state: inactive -> scanning
[...]
当按 Enter 键进入询问我密码的对话框时,它会显示以下内容:
device (wlp2s0): Activation: (wifi) connection 'my_home_wifi' has security, and secrets exist. No new secrets needed.
[... some stuff here about "Config: added"]
device (wlp2s0): supplicant interface state: inactive -> associating
device (wlp2s0): supplicant interface state: associating -> associated
device (wlp2s0): supplicant interface state: associated -> 4way_handshake
device (wlp2s0): supplicant interface state: 4way_handshake -> disconnected
device (wlp2s0): Activation: (wifi) disconnected during association, asking for new key
device (wlp2s0): state change: config -> need-auth (reason 'supplicant-disconnect', sys-iface-state: 'managed')
然后它又开始询问我密码...
我的系统规格:Manjaro 4.19.122-1
使用 xfce。我的无线网卡是Broadcom BCM4313
(与驱动程序一起运行broadcom-wl
)
答案1
我自己过去也曾在使用 Broadcom 芯片时遇到过此类问题。您可以尝试不同的驱动程序,例如逆向工程b43
驱动程序或brcmfmac
.前者应该可以在 AUR 上找到。后者应该内置到内核中。
请参阅此处进一步阅读:https://wiki.archlinux.org/index.php/Broadcom_wireless#Installation