新安装的 arch 无法连接到 wifi

新安装的 arch 无法连接到 wifi

所以我最近在一台全新的计算机上安装了 arch linux。我使用的是有线连接,但现在我想切换到 wifi。但是我无法让它连接(尽管网络确实显示)。

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
3: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether f6:1e:11:6f:fb:bb brd ff:ff:ff:ff:ff:ff
4: enp0s20f0u2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 70:88:6b:81:1b:de brd ff:ff:ff:ff:ff:ff


$ lspci -knn | grep Net -A2 

02:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)
Subsystem: Bigfoot Networks, Inc. QCA6174 802.11ac Wireless Network Adapter [1a56:1535]
Kernel driver in use: ath10k_pci
Kernel modules: ath10k_pci

$ iwconfig wlp2s0
wlp2s0    IEEE 802.11  ESSID:off/any  
      Mode:Managed  Access Point: Not-Associated   Tx-Power=24 dBm   
      Retry short limit:7   RTS thr:off   Fragment thr:off
      Power Management:on

$ cat /etc/wpa_supplicant

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
    ssid="network"
    psk="password"
}

$ dmesg | grep ath10k
[    2.015433] ath10k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[    2.016534] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2     irq_mode 0 reset_mode 0
[    2.275427] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[    2.275444] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[    2.276892] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[    2.276895] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 0
[    2.278075] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.4.4.1-00051-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 c3fd4411
[    2.342633] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 0e26ef70
[    2.928779] ath10k_pci 0000:02:00.0: Unknown eventid: 118809
[    2.931450] ath10k_pci 0000:02:00.0: Unknown eventid: 90118
[    2.932101] ath10k_pci 0000:02:00.0: htt-ver 3.44 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[    3.012656] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
[    4.567797] ath10k_pci 0000:02:00.0: Unknown eventid: 118809
[    4.570707] ath10k_pci 0000:02:00.0: Unknown eventid: 90118
[    5.421254] ath10k_pci 0000:02:00.0: Unknown eventid: 118809
[    5.424174] ath10k_pci 0000:02:00.0: Unknown eventid: 90118

不知道该怎么办。尝试过 wifi-menu、iw、netctl 和网络管理器。无论我如何尝试都无法连接。但接入点显示。已找到我尝试连接的网络。

答案1

当您运行 NetworkManager 时,您可以使用它配置您的 WLAN,然后在 /var/log/syslog 或 /var/log/messages 中记录日志,并查看 NetworkManager 正在做什么以及哪里出了问题。

相关内容