wpa_supplicant CTRL-EVENT-SCAN-FAILED 错误

wpa_supplicant CTRL-EVENT-SCAN-FAILED 错误

我有两张 WiFi 卡,其中一张用作热点。我的电脑上/var/log/syslog充满了wpa_supplicant错误:

Jul  2 07:50:44 ubuntu1 wpa_supplicant[1347]: wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Jul  2 07:55:00 ubuntu1 wpa_supplicant[1347]: message repeated 256 times: [ wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1]
Jul  2 07:55:01 ubuntu1 CRON[2708510]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jul  2 07:55:01 ubuntu1 wpa_supplicant[1347]: wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1

我的牌是

  *-network                 
       description: Ethernet interface
       product: I211 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: enp4s0
       version: 03
       serial: 70:85:c2:ae:42:71
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.6.0-k firmware=0. 4-1 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:36 memory:d9500000-d951ffff ioport:2000(size=32) memory:d9520000-d9523fff
  *-network
       description: Wireless interface
       product: Dual Band Wireless-AC 3168NGW [Stone Peak]
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:05:00.0
       logical name: wlp5s0
       version: 10
       serial: 18:56:80:92:f3:2e
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-40-generic firmware=29.1654887522.0 ip=10.42.0.1 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:95 memory:d9400000-d9401fff
  *-network
       description: Ethernet interface
       product: I211 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:06:00.0
       logical name: enp6s0
       version: 03
       serial: 70:85:c2:ae:42:6f
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.6.0-k firmware=0. 4-1 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:34 memory:d9300000-d931ffff ioport:1000(size=32) memory:d9320000-d9323fff
  *-network
       description: Wireless interface
       product: Wi-Fi 6 AX200
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: wlp7s0
       version: 1a
       serial: 5c:80:b6:fd:b4:7f
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-40-generic firmware=48.4fa0041f.0 ip=192.168.0.182 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:42 memory:d9200000-d9203fff

答案1

我遇到了类似的问题。一个 WLAN 卡,一个以太网。WLAN 设置为在我启动计算机时自动创建热点并始终保持开启状态。我完全没有连接问题,但我的日志文件中却充满了以下内容:

CTRL-EVENT-SCAN-FAILED ret=-95 retry=1

每秒都会有一个新的日志条目(持续数月)。

添加:

[device]
match-device=driver:<YOUR-DEVICE-NAME>
wifi.scan-rand-mac-address=no

似乎/etc/NetworkManager/NetworkManager.conf已经解决了。

<YOUR-DEVICE-NAME>ifconfig在我的情况下,它是通过在终端中运行并定位我的 WLAN 卡来收集的wlp4s0

答案2

你不会是无意间关闭了 WiFi(例如通过某些功能键)吧?过去曾有过一些关于此问题的回归聊天问题

我会尝试创建一个包含 /etc/NetworkManager/conf.d/intel_sp.conf以下内容的文件:

[device]
match-device=driver:iwlwifi
wifi.scan-rand-mac-address=no

重启并尝试。每个驱动程序都不同,但这可能有帮助

答案3

frogpeople 的回答对我来说不起作用。最后我发现添加以下部分/etc/NetworkManager/NetworkManager.conf效果很好:

[keyfile]
unmanaged-devices=mac:xx:xx:xx:xx:xx:xx

相关内容