由于升级(全新安装)到 Trusty (Kubuntu)- 编辑,现在是 Ubuntu vanilla,我切换回来进一步排除故障)我注意到了网络问题。
每隔两分钟,我的网络就会突然断网一段时间,但很快又会恢复正常。这在系统日志中反映得很清楚:
Apr 24 07:52:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 07:52:51 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 07:54:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 07:54:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 07:56:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 07:56:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 07:58:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 07:58:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 08:00:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:00:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 08:02:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:04:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:04:51 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 08:06:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:06:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 08:08:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:08:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 08:10:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:10:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 08:12:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:12:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 08:14:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:14:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 08:16:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:16:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 08:18:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:18:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Apr 24 08:20:45 jordan-TECRA-R840 wpa_supplicant[1271]: wlan0: CTRL-EVENT-SCAN-STARTED
Apr 24 08:20:50 jordan-TECRA-R840 wpa_supplicant[1271]: nl80211: send_and_recv->nl_recvmsgs failed: -33
我还没有花太多时间进行故障排除,我刚刚安装一天。我想知道是否有人以前见过这个问题?我不记得在 3 天前使用完全相同的硬件使用 Ubuntu 13.10 时见过这个问题。
硬件:Tecra R840-S8430 网络控制器:Intel Corporation Centrino Advanced-N 6230 [Rainbow Peak] (rev 34) 风格:Kubuntu + Ubuntu 版本:14.04 LTS
更新 - 更多信息 (5/05/05)
是的,这似乎导致我的连接断开。以下是典型断线的一些系统日志,我必须禁用/重新启用 wifi 才能恢复连接:
May 5 09:29:57 Oban kernel: [74616.819616] wlan0: deauthenticated from 00:26:62:4f:c3:f6 (Reason: 6)
May 5 09:29:57 Oban wpa_supplicant[1368]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:26:62:4f:c3:f6 reason=6
May 5 09:29:57 Oban NetworkManager[1151]: <warn> Connection disconnected (reason 6)
May 5 09:29:57 Oban kernel: [74616.851674] cfg80211: Calling CRDA to update world regulatory domain
May 5 09:29:57 Oban wpa_supplicant[1368]: wlan0: SME: Trying to authenticate with 00:26:62:4f:c3:f6 (SSID='Air' freq=2462 MHz)
May 5 09:29:57 Oban NetworkManager[1151]: <info> (wlan0): supplicant interface state: completed -> disconnected
May 5 09:29:57 Oban wpa_supplicant[1368]: wlan0: CTRL-EVENT-SCAN-STARTED
May 5 09:29:57 Oban NetworkManager[1151]: <info> (wlan0): supplicant interface state: disconnected -> authenticating
May 5 09:29:57 Oban kernel: [74616.921570] wlan0: authenticate with 00:26:62:4f:c3:f6
May 5 09:29:57 Oban kernel: [74616.925036] wlan0: send auth to 00:26:62:4f:c3:f6 (try 1/3)
May 5 09:29:57 Oban kernel: [74616.931650] cfg80211: World regulatory domain updated:
May 5 09:29:57 Oban kernel: [74616.931654] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
May 5 09:29:57 Oban kernel: [74616.931656] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:29:57 Oban kernel: [74616.931658] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:29:57 Oban kernel: [74616.931659] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
May 5 09:29:57 Oban kernel: [74616.931661] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:29:57 Oban kernel: [74616.931662] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:29:57 Oban kernel: [74617.031487] wlan0: send auth to 00:26:62:4f:c3:f6 (try 2/3)
May 5 09:29:57 Oban kernel: [74617.035474] wlan0: authenticated
May 5 09:29:57 Oban wpa_supplicant[1368]: wlan0: Trying to associate with 00:26:62:4f:c3:f6 (SSID='Air' freq=2462 MHz)
May 5 09:29:57 Oban NetworkManager[1151]: <info> (wlan0): supplicant interface state: authenticating -> associating
May 5 09:29:57 Oban kernel: [74617.039506] wlan0: associate with 00:26:62:4f:c3:f6 (try 1/3)
May 5 09:29:57 Oban kernel: [74617.043029] wlan0: RX AssocResp from 00:26:62:4f:c3:f6 (capab=0x431 status=0 aid=4)
May 5 09:29:57 Oban wpa_supplicant[1368]: wlan0: Associated with 00:26:62:4f:c3:f6
May 5 09:29:57 Oban kernel: [74617.050233] wlan0: associated
May 5 09:29:57 Oban kernel: [74617.050393] cfg80211: Calling CRDA for country: US
May 5 09:29:57 Oban NetworkManager[1151]: <info> (wlan0): supplicant interface state: associating -> associated
May 5 09:29:57 Oban kernel: [74617.056664] cfg80211: Regulatory domain changed to country: US
May 5 09:29:57 Oban kernel: [74617.056673] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
May 5 09:29:57 Oban kernel: [74617.056679] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
May 5 09:29:57 Oban kernel: [74617.056685] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
May 5 09:29:57 Oban kernel: [74617.056690] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:29:57 Oban kernel: [74617.056695] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:29:57 Oban kernel: [74617.056700] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:29:57 Oban kernel: [74617.056705] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
May 5 09:29:57 Oban kernel: [74617.056711] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
May 5 09:29:57 Oban NetworkManager[1151]: <info> (wlan0): supplicant interface state: associated -> 4-way handshake
May 5 09:29:57 Oban wpa_supplicant[1368]: wlan0: WPA: Key negotiation completed with 00:26:62:4f:c3:f6 [PTK=CCMP GTK=CCMP]
May 5 09:29:57 Oban wpa_supplicant[1368]: wlan0: CTRL-EVENT-CONNECTED - Connection to 00:26:62:4f:c3:f6 completed [id=0 id_str=]
May 5 09:29:57 Oban NetworkManager[1151]: <info> (wlan0): supplicant interface state: 4-way handshake -> completed
May 5 09:31:34 Oban kernel: [74713.775114] wlan0: deauthenticated from 00:26:62:4f:c3:f6 (Reason: 6)
May 5 09:31:34 Oban wpa_supplicant[1368]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:26:62:4f:c3:f6 reason=6
May 5 09:31:34 Oban NetworkManager[1151]: <warn> Connection disconnected (reason 6)
May 5 09:31:34 Oban kernel: [74713.812782] cfg80211: Calling CRDA to update world regulatory domain
May 5 09:31:34 Oban NetworkManager[1151]: <info> (wlan0): supplicant interface state: completed -> disconnected
May 5 09:31:34 Oban kernel: [74713.816717] cfg80211: World regulatory domain updated:
May 5 09:31:34 Oban kernel: [74713.816724] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
May 5 09:31:34 Oban kernel: [74713.816729] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:31:34 Oban kernel: [74713.816732] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:31:34 Oban kernel: [74713.816735] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
May 5 09:31:34 Oban kernel: [74713.816738] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:31:34 Oban kernel: [74713.816741] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 5 09:31:34 Oban NetworkManager[1151]: <info> (wlan0): supplicant interface state: disconnected -> scanning
May 5 09:31:49 Oban NetworkManager[1151]: <warn> (wlan0): link timed out.
May 5 09:31:49 Oban NetworkManager[1151]: <info> (wlan0): device state change: activated -> failed (reason 'SSID not found') [100 120 53]
May 5 09:31:49 Oban NetworkManager[1151]: <info> NetworkManager state is now DISCONNECTED
May 5 09:31:49 Oban NetworkManager[1151]: <warn> Activation (wlan0) failed for connection 'Air'
May 5 09:31:49 Oban dbus[943]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
May 5 09:31:49 Oban NetworkManager[1151]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
May 5 09:31:49 Oban NetworkManager[1151]: <info> (wlan0): deactivating device (reason 'none') [0]
May 5 09:11:56 Oban whoopsie[1374]: online
May 5 09:31:49 Oban whoopsie[1374]: offline
May 5 09:31:49 Oban kernel: [74729.721867] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
May 5 09:31:49 Oban NetworkManager[1151]: <info> (wlan0): canceled DHCP transaction, DHCP client pid 11587
May 5 09:31:49 Oban avahi-daemon[1099]: Withdrawing address record for fe80::8a53:2eff:fe07:49c8 on wlan0.
May 5 09:31:49 Oban avahi-daemon[1099]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::8a53:2eff:fe07:49c8.
May 5 09:31:49 Oban avahi-daemon[1099]: Interface wlan0.IPv6 no longer relevant for mDNS.
May 5 09:31:49 Oban NetworkManager[1151]: <warn> DNS: plugin dnsmasq update failed
May 5 09:31:49 Oban NetworkManager[1151]: <info> Removing DNS information from /sbin/resolvconf
May 5 09:31:49 Oban avahi-daemon[1099]: Withdrawing address record for 192.168.1.5 on wlan0.
May 5 09:31:49 Oban avahi-daemon[1099]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.5.
May 5 09:31:49 Oban avahi-daemon[1099]: Interface wlan0.IPv4 no longer relevant for mDNS.
May 5 09:31:49 Oban dnsmasq[1888]: setting upstream servers from DBus
May 5 09:31:50 Oban NetworkManager[1151]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
May 5 09:31:50 Oban dbus[943]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
这太令人沮丧了。我不能总是使用 cat5。正如我之前所说,这种情况在 13.10 上从未发生过。我真的不想降级。有没有办法让我使用 13.10 中的 wifi 驱动程序?
另外,我将 WiFi 安全从 WPA2 改为 128 WEP,到目前为止,我只在几个小时内断开过一次。在 WPA2 上,平均每 10 分钟断开一次。
答案1
根据启动板上的评论,这是无害的:
WinEunuchs2Unix (ricklee518) 写于 2014-08-18: #24
哎呀,这种情况从 2009 年就开始了,一位开发人员确实回应说,这只是为了在有多个接入点可以连接的企业环境中漫游。如果你家里只有一个 AP,请进入网络管理器,选择“编辑连接”,突出显示你的 AP / wlan0 并单击“编辑”。然后单击空白的 BSSID 旁边的向下箭头。然后选择之前隐藏的 mac 地址。
抱歉,我把这个问题与 802.11n 问题联系起来了。我想,一朝被蛇咬,十年怕井绳吧……
我已经完成了这些步骤,扫描和错误行都不再被记录。 我还不能说这是否让我的连接更稳定,但我会尽量记得在一两天内更新这个答案。
三周后我回来了(丢失了打开的标签,哎呀),我认为它有所帮助。我仍然会遇到奇怪的连接中断,但它们似乎不像我记得当我第一次发现这个问题时那么常见。
答案2
我可能有同样的问题,请参阅“Centrino Advanced-N 6230 [Rainbow Peak] 中频繁取消 Wifi 认证(原因:6)“。
我认为我找到了一种解决方法,即禁用模式 N wifi。可以使用“modprobe iwlwifi 11n_disable=1”暂时禁用(移除模块后),也可以通过在 /etc/modprobe.d 中的某个文件中添加“options iwlwifi 11n_disable=1”永久禁用。
也许我们应该在 bugzilla.kernel.org 上打开一个 bug?
答案3
@Jordan,我找到了一种解决方法,即停止网络管理器以避免每 2 秒扫描一次 AP,我认为 wpa_supplicant 驱动程序代码中可能存在错误。连接到 AP 后,我运行以下命令...
sudo killall-STOP NetworkManager
虽然我在桌面上使用无线网络,但它是固定的,我真的不需要 NetworkManager 不断寻找 AP 并陷入这个问题。在驱动程序中修复此问题之前,我将继续进行上述工作。
答案4
这可能是 Linux 驱动程序或接入点固件中的错误,或者两者兼而有之。关闭省电功能有帮助吗?iwconfig wlan0 关闭电源
为了缩小问题范围,您可以尝试使用不同的接入点和 USB wifi 适配器。遗憾的是,这类问题很难诊断。