Skip to content

Instantly share code, notes, and snippets.

@nielsonsantana
Last active August 26, 2020 19:51
Show Gist options
  • Save nielsonsantana/92cc67d3928ed2fe391d6c13235fec6e to your computer and use it in GitHub Desktop.
Save nielsonsantana/92cc67d3928ed2fe391d6c13235fec6e to your computer and use it in GitHub Desktop.
[Solved] Ath10k and QCA6174 causing firmware crashes and connection lost

Problem

Ubuntu(kernel 5.x) presents the fallowing error using dmesg -w:

[103916.261609] ath10k_pci 0000:02:00.0: firmware crashed! (guid bf84d993-9ec2-4eb5-82db-2055687625cc)
[103916.261619] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1028:0310
[103916.261623] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[103916.262515] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.4.4.1-00079-QCARMSWPZ-1 api 6 features wowlan,ignore-otp crc32 fd869beb
[103916.263208] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 4ac0889b
[103916.263212] ath10k_pci 0000:02:00.0: htt-ver 3.47 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[103916.275666] ath10k_pci 0000:02:00.0: failed to get memcpy hi address for firmware address 4: -16
[103916.275669] ath10k_pci 0000:02:00.0: failed to read firmware dump area: -16
[103916.275672] ath10k_pci 0000:02:00.0: Copy Engine register dump:
[103916.275691] ath10k_pci 0000:02:00.0: [00]: 0x00034400  11  11   3   3
[103916.275711] ath10k_pci 0000:02:00.0: [01]: 0x00034800  14  15 156 157
[103916.275724] ath10k_pci 0000:02:00.0: [02]: 0x00034c00  56  56  55  56
[103916.275738] ath10k_pci 0000:02:00.0: [03]: 0x00035000  12  12  14  12
[103916.275751] ath10k_pci 0000:02:00.0: [04]: 0x00035400 4619 3915 231 167
[103916.275765] ath10k_pci 0000:02:00.0: [05]: 0x00035800   0   0  64   0
[103916.275779] ath10k_pci 0000:02:00.0: [06]: 0x00035c00  15  16   7   8
[103916.275799] ath10k_pci 0000:02:00.0: [07]: 0x00036000   0   1   0   1
[103916.296131] ath10k_pci 0000:02:00.0: failed to read hi_board_data address: -28
[103916.663747] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[103916.779673] ath10k_pci 0000:02:00.0: device successfully recovered
[103928.445281] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536

Solution

The driver for QCA6174 802.11ac Wireless Network Adapter doesn't work very well on kernel 5.x. The solution was downgrade Ubuntu kernel to 4.15 that will receive security upgrades util 2023.

$ sudo apt-get linux-firmware linux-image-4.15.0-112-generic linux-headers-4.15.0-112-generic linux-modules-extra-4.15.0-112-generic

After downgrade the kernel is needed update the driver for Ath10k/QCA6174 [1].

$ cd /lib/firmware/ath10k/QCA6174/hw3.0
$ sudo mv firmware-6.bin firmware-6.bin.old
$ sudo wget https://github.com/kvalo/ath10k-firmware/raw/master/QCA6174/hw3.0/4.4.1/firmware-6.bin_WLAN.RM.4.4.1-00110-QCARMSWP-1 -O firmware-6.bin

After this steps is necessary reboot.

1 - https://askubuntu.com/a/1064029/518557

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment