我有一台笔记本电脑
- 英特尔公司无线 3160(修订版 83);固件版本 25.17.12.0
我看到了 WLAN,并且可以输入密码。尽管反复输入密码并目视检查密码,但仍未建立连接。
路由器上没有 MAC 过滤,允许所有(新)设备。
我已经安装了固件Linux 无线,之前我用Ubuntu安装的固件测试过网络。
我该如何解决这个问题?
更新 2015-05-30 22:34
我用智能手机创建了热点。同样的问题。
更新 2015-05-30 23:20
IPv6 已禁用,同样的问题
$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6
1
$ ip a | grep inet6
*no output*
更新 2015-05-31 17:26
$ journalctl -u NetworkManager
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) starting connection 'Dragonlance'
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Mai 31 17:25:11 fizban NetworkManager[692]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Mai 31 17:25:11 fizban NetworkManager[692]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0/wireless): access point 'Dragonlance' has security, but secrets are required.
Mai 31 17:25:11 fizban NetworkManager[692]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Mai 31 17:25:11 fizban NetworkManager[692]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Mai 31 17:25:11 fizban NetworkManager[692]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0/wireless): connection 'Dragonlance' has security, and secrets exist. No new secrets needed.
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Config: added 'ssid' value 'Dragonlance'
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Config: added 'scan_ssid' value '1'
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Config: added 'psk' value '<omitted>'
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Mai 31 17:25:11 fizban NetworkManager[692]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Mai 31 17:25:11 fizban NetworkManager[692]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Mai 31 17:25:11 fizban NetworkManager[692]: <info> Config: set interface ap_scan to 1
Mai 31 17:25:36 fizban NetworkManager[692]: <warn> Activation (wlan0/wireless): association took too long, failing activation.
Mai 31 17:25:36 fizban NetworkManager[692]: <info> (wlan0): device state change: config -> failed (reason 'ssid-not-found') [50 120 53]
Mai 31 17:25:36 fizban NetworkManager[692]: <warn> Activation (wlan0) failed for connection 'Dragonlance'
Mai 31 17:25:36 fizban NetworkManager[692]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Mai 31 17:25:36 fizban NetworkManager[692]: <info> (wlan0): deactivating device (reason 'none') [0]
Mai 31 17:25:36 fizban NetworkManager[692]: (NetworkManager:692): GLib-CRITICAL **: Source ID 503 was not found when attempting to remove it
Mai 31 17:25:36 fizban NetworkManager[692]: <info> (wlan0): supplicant interface state: scanning -> disconnected
Mai 31 17:25:36 fizban NetworkManager[692]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
更多细节:
$ lspci
00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e)
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
00:13.0 SATA controller: Intel Corporation Device 0f23 (rev 0e)
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB xHCI (rev 0e)
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0e)
00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 0e)
00:1c.0 PCI bridge: Intel Corporation Device 0f48 (rev 0e)
00:1c.1 PCI bridge: Intel Corporation Device 0f4a (rev 0e)
00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 0e)
00:1f.3 SMBus: Intel Corporation Device 0f12 (rev 0e)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
02:00.0 Network controller: Intel Corporation Wireless 3160 (rev 83)
固件版本是25.17.12.0
$ dmesg | grep iwlwifi
[ 15.853182] iwlwifi 0000:02:00.0: loaded firmware version 25.17.12.0 op_mode iwlmvm
模块已加载
$ lsmod | grep iwlwifi
iwlwifi 196608 1 iwlmvm
cfg80211 540672 3 iwlwifi,mac80211,iwlmvm
内核版本
$ uname -r
3.19.0-18-generic
答案1
我遇到了类似的问题:我的 AP(运行 OpenWRT - 其他 AP 问题较少)很少出现在扫描中,并且关联尝试大多数时候都失败,并显示“关联时间过长,激活失败”...“未找到 ssid”,但经过几分钟/尝试后,它通常会做过连接。我有一张 Intel 8265 wifi 卡(虽然我不知道该设备是否重要)。
由于某些原因,我不明白 NetworkManager 的 MAC 地址随机化功能——默认情况下用于扫描/etc/NetworkManager/conf.d/30-mac-randomization.conf
– 导致了这个问题。要修复它,请创建一个禁用该功能的文件:
[device-mac-randomization]
wifi.scan-rand-mac-address=no
... 其次是sudo systemctl restart NetworkManager
wifi.scan-rand-mac-address=no
更新:使用我的 AP运行几天后有时仍需要多次扫描才能购物。但至少关联始终有效。
在此处找到:https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/ 文档:https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html
答案2
从你的无线调试, 我会:
- 在路由器上停用 IPV6(或更新路由器的固件)
- 在路由器上停用 802.11N(或更新路由器的固件)