QCA6174 wifi doesn't work

inxi -Faz

produces:

System:    Kernel: 5.13.10-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0 
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=a2f9b7ce-1d14-45ec-960d-80f6deb84e9b 
           rw rootflags=subvol=@ quiet 
           cryptdevice=UUID=ed9fb91f-024a-4397-9ad0-e4eabee27366:luks-ed9fb91f-024a-4397-9ad0-e4eabee27366 
           root=/dev/mapper/luks-ed9fb91f-024a-4397-9ad0-e4eabee27366 splash rd.udev.log_priority=3 
           vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1 loglevel=3 
           Desktop: GNOME 40.3 tk: GTK 3.24.30 wm: gnome-shell dm: GDM 40.1 Distro: Garuda Linux 
           base: Arch Linux 
Machine:   Type: Laptop System: Acer product: Nitro AN515-42 v: V1.18 serial: <filter> 
           Mobo: RR model: Freed_RRS v: V1.18 serial: <filter> UEFI: Insyde v: 1.18 date: 06/18/2020 
Battery:   ID-1: BAT1 charge: 30.0 Wh (100.0%) condition: 30.0/48.9 Wh (61.3%) volts: 16.0 min: 15.2 
           model: LG 0x41,0x43,0x31,0x34,0x42,0x38,0x007A type: Li-ion serial: <filter> status: Unknown 
CPU:       Info: Quad Core model: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx bits: 64 type: MT MCP 
           arch: Zen family: 17 (23) model-id: 11 (17) stepping: 0 microcode: 810100B cache: L2: 2 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 31938 
           Speed: 2006 MHz min/max: 1600/2000 MHz boost: enabled Core speeds (MHz): 1: 2006 2: 1399 
           3: 1375 4: 1393 5: 1729 6: 2185 7: 1394 8: 2054 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 
           mitigation: Full AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X] 
           vendor: Acer Incorporated ALI driver: amdgpu v: kernel bus-ID: 01:00.0 chip-ID: 1002:67ef 
           class-ID: 0380 
           Device-2: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] 
           vendor: Acer Incorporated ALI driver: amdgpu v: kernel bus-ID: 04:00.0 chip-ID: 1002:15dd 
           class-ID: 0300 
           Device-3: Chicony HD WebCam type: USB driver: uvcvideo bus-ID: 3-1:2 chip-ID: 04f2:b5f7 
           class-ID: 0e02 
           Display: x11 server: X.Org 1.20.13 compositor: gnome-shell driver: loaded: amdgpu,ati 
           unloaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9") 
           Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6") diag: 395mm (15.5") 
           OpenGL: renderer: AMD Radeon Vega 8 Graphics (RAVEN DRM 3.41.0 5.13.10-zen1-1-zen LLVM 12.0.1) 
           v: 4.6 Mesa 21.1.6 direct render: Yes 
Audio:     Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Acer Incorporated ALI 
           driver: snd_hda_intel v: kernel bus-ID: 04:00.1 chip-ID: 1002:15de class-ID: 0403 
           Device-2: AMD Family 17h HD Audio vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
           bus-ID: 04:00.6 chip-ID: 1022:15e3 class-ID: 0403 
           Sound Server-1: ALSA v: k5.13.10-zen1-1-zen running: yes 
           Sound Server-2: JACK v: 1.9.19 running: no 
           Sound Server-3: PulseAudio v: 15.0 running: no 
           Sound Server-4: PipeWire v: 0.3.33 running: yes 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Acer Incorporated ALI 
           driver: r8169 v: kernel port: 2000 bus-ID: 02:00.1 chip-ID: 10ec:8168 class-ID: 0200 
           IF: enp2s0f1 state: down mac: <filter> 
           Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter vendor: Lite-On 
           driver: ath10k_pci v: kernel port: 2000 bus-ID: 03:00.0 chip-ID: 168c:003e class-ID: 0280 
           IF: wlp3s0 state: up mac: <filter> 
Bluetooth: Device-1: Lite-On type: USB driver: btusb v: 0.8 bus-ID: 1-4:2 chip-ID: 04ca:3016 
           class-ID: e001 
           Report: bt-adapter ID: hci0 rfk-id: 2 state: up address: <filter> 
Drives:    Local Storage: total: 931.51 GiB used: 727.95 GiB (78.1%) 
           SMART Message: Required tool smartctl not installed. Check --recommends 
           ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB block-size: 
           physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 033 scheme: GPT 
Partition: ID-1: / raw-size: 931.25 GiB size: 931.25 GiB (100.00%) used: 727.95 GiB (78.2%) fs: btrfs 
           dev: /dev/dm-0 maj-min: 254:0 mapped: luks-ed9fb91f-024a-4397-9ad0-e4eabee27366 
           ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.45%) used: 708 KiB (0.3%) fs: vfat 
           dev: /dev/sda1 maj-min: 8:1 
           ID-3: /home raw-size: 931.25 GiB size: 931.25 GiB (100.00%) used: 727.95 GiB (78.2%) fs: btrfs 
           dev: /dev/dm-0 maj-min: 254:0 mapped: luks-ed9fb91f-024a-4397-9ad0-e4eabee27366 
           ID-4: /var/log raw-size: 931.25 GiB size: 931.25 GiB (100.00%) used: 727.95 GiB (78.2%) 
           fs: btrfs dev: /dev/dm-0 maj-min: 254:0 mapped: luks-ed9fb91f-024a-4397-9ad0-e4eabee27366 
           ID-5: /var/tmp raw-size: 931.25 GiB size: 931.25 GiB (100.00%) used: 727.95 GiB (78.2%) 
           fs: btrfs dev: /dev/dm-0 maj-min: 254:0 mapped: luks-ed9fb91f-024a-4397-9ad0-e4eabee27366 
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: zram size: 30.27 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0 
Sensors:   System Temperatures: cpu: 48.9 C mobo: N/A 
           Fan Speeds (RPM): N/A 
           GPU: device: amdgpu temp: 48.0 C device: amdgpu temp: 36.0 C watts: 7.13 
Info:      Processes: 352 Uptime: 8h 9m wakeups: 1 Memory: 30.27 GiB used: 4.29 GiB (14.2%) Init: systemd 
           v: 249 tool: systemctl Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1743 lib: 538 
           Shell: fish v: 3.3.1 default: Bash v: 5.1.8 running-in: gnome-terminal inxi: 3.3.06 

Issue: Sometimes I boot up and the wifi scan will see all of the nearby networks for about three seconds before it indicates that there are no networks available.
Note: When it does work, it works permanently. There are no intermittent drops or slow speeds. My workaround has been restarting my computer over and over until the wifi works and then avoiding shutting down.

wlp3s0 is down.

$ iplink 
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
2: enp2s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 98:28:a6:30:84:11 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
    link/ether ea:99:e1:93:1f:76 brd ff:ff:ff:ff:ff:ff permaddr f8:a2:d6:55:24:a7
5: enp4s0f3u1c4i2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether be:fe:d9:37:f4:bb brd ff:ff:ff:ff:ff:ff

ath10k driver is being used, though modified to no effect (more on that below).

$ lspci -kv 
03:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
	Subsystem: Lite-On Communications Inc Device 0807
	Flags: bus master, fast devsel, latency 0, IRQ 65, IOMMU group 10
	Memory at e0200000 (64-bit, non-prefetchable) [size=2M]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=1/8 Maskable+ 64bit-
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Virtual Channel
	Capabilities: [168] Device Serial Number 00-00-00-00-00-00-00-00
	Capabilities: [178] Latency Tolerance Reporting
	Capabilities: [180] L1 PM Substates
	Kernel driver in use: ath10k_pci
	Kernel modules: ath10k_pci

When I searched the dmesg log for ath10k, everything is failing.

# dmesg | grep ath10k
[ 4059.023621] ath10k_pci 0000:03:00.0: failed to receive initialized event from target: 00000000
[ 4059.023627] ath10k_pci 0000:03:00.0: failed to wait for target after cold reset: -110
[ 4059.023631] ath10k_pci 0000:03:00.0: failed to reset chip: -110
[ 4059.023634] ath10k_pci 0000:03:00.0: Could not init hif: -110
[ 4475.040158] ath10k_pci 0000:03:00.0: failed to receive initialized event from target: 00000000
[ 4475.040163] ath10k_pci 0000:03:00.0: failed to wait for target after cold reset: -110
[ 4475.040167] ath10k_pci 0000:03:00.0: failed to reset chip: -110
[ 4475.040169] ath10k_pci 0000:03:00.0: Could not init hif: -110

This is the dmesg log on a good boot:

[   12.308497] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   12.575104] ath10k_pci 0000:03:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 11ad:0807
[   12.575114] ath10k_pci 0000:03:00.0: kconfig debug 1 debugfs 1 tracing 1 dfs 0 testmode 0
[   12.576026] ath10k_pci 0000:03:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[   12.644053] ath10k_pci 0000:03:00.0: board_file api 1 bmi_id N/A crc32 872f3cc5
[   12.737500] ath10k_pci 0000:03:00.0: htt-ver 3.26 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[   12.820143] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0

I have ath10k driver installed, but I messed with it to try to fix this. I have reversed and reimplemented the change to no effect.

# pacman -Fl linux | grep ath10k
linux usr/lib/modules/5.13.10-arch1-1/kernel/drivers/net/wireless/ath/ath10k/
linux usr/lib/modules/5.13.10-arch1-1/kernel/drivers/net/wireless/ath/ath10k/ath10k_core.ko.zst
linux usr/lib/modules/5.13.10-arch1-1/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko.zst
linux usr/lib/modules/5.13.10-arch1-1/kernel/drivers/net/wireless/ath/ath10k/ath10k_sdio.ko.zst
linux usr/lib/modules/5.13.10-arch1-1/kernel/drivers/net/wireless/ath/ath10k/ath10k_usb.ko.zst

Also potentially relevant: the "ath10k_core" is used by "ath10k_pci" and "ath10k_pci" isn't used by anything when I run

$ lsmod 
...
ath10k_pci             57344  0
uvcvideo              126976  0
ath10k_core           684032  1 ath10k_pci
...

and searching for ath10k finds other things that seem messy.

$ lsmod | grep ath10k
ath10k_pci             57344  0
ath10k_core           684032  1 ath10k_pci
ath                    36864  1 ath10k_core
mac80211             1241088  1 ath10k_core
cfg80211             1069056  3 ath,mac80211,ath10k_core

I messed with the ath10k driver following a post here ( https://bbs.archlinux.org/viewtopic.php?id=208874 ), but it did not solve the problem.

I do have linux-firmware installed.
I do have a Windows partition on an external drive, but it is messed up and I don't think fast boot was on.

In this pastebin, you will find the journalctl of a good boot and a bad boot:

Follow what tbg says about changing your grub config file to make sure your driver initializes--that's what fixed it for me.

2 Likes

Congratulations on the perfect question, all the necessary data given (I think :slight_smile: )
I have moved your request to the relevant section.

:slight_smile:

6 Likes

I think this is a well-known problematic driver.
Have you searches also in the forum by driver name? Eg

3 Likes

I can't believe I haven't found that because I always search before posting. I found other stuff, but not that specifically.
tbg did a lot of work in that thread, so I will try those and see what happens. The grub thing looks promising because it seems related to booting.

After one reboot, there is no issue. I will try it a few more times today after work to make sure.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.