No wifi with qualcomm card

Decided to try out ubuntu mate as I have heard lots of good things.
I was using mint mate 17.3. My wifi card is a qualcomm atheros card and will
not show up by default. I used the following site to get it working with mint, but it wont work for ubuntu mate.

http://askubuntu.com/questions/678145/my-wifi-qualcomm-atheros-device-168c0041-rev-20-doesnt-show-up-and-work-in

I get the following error. Hope someone can help me figure this out.

"Reading database … 227308 files and directories currently installed.)
Preparing to unpack backath10k-dkms_2.0_all.deb …


Deleting module version: 2.0
completely from the DKMS tree.

Done.
Unpacking backath10k-dkms (2.0) over (2.0) …
Setting up backath10k-dkms (2.0) …
Loading new backath10k-2.0 DKMS files…
First Installation: checking all kernels…
Building only for 4.4.0-18-generic
Building for architecture x86_64
Building initial module for 4.4.0-18-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/backath10k-dkms.0.crash’
Error! Bad return status for module build on kernel: 4.4.0-18-generic (x86_64)
Consult /var/lib/dkms/backath10k/2.0/build/make.log for more information."

The /var/lib/dkms/back---- is

DKMS make.log for backath10k-2.0 for kernel 4.4.0-18-generic (x86_64)
Sat Apr 9 16:57:05 EDT 2016
make -C /lib/modules/4.4.0-18-generic/build M=/var/lib/dkms/backath10k/2.0/build/driver modules
make[1]: warning: jobserver unavailable: using -j1. Add ‘+’ to parent make rule.
make[1]: Entering directory ‘/usr/src/linux-headers-4.4.0-18-generic’
CC [M] /var/lib/dkms/backath10k/2.0/build/driver/compat/main.o
CC [M] /var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.0.o
CC [M] /var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.1.o
CC [M] /var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.o
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:14:28: error: static declaration of ‘scatterwalk_ffwd’ follows non-static declaration
static struct scatterlist *scatterwalk_ffwd(struct scatterlist dst[2],
^
In file included from /var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:11:0:
include/crypto/scatterwalk.h:97:21: note: previous declaration of ‘scatterwalk_ffwd’ was here
struct scatterlist *scatterwalk_ffwd(struct scatterlist dst[2],
^
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:42:14: error: redefinition of ‘crypto_aead_reqsize’
unsigned int crypto_aead_reqsize(struct crypto_aead *tfm)
^
In file included from /var/lib/dkms/backath10k/2.0/build/driver/backport-include/crypto/aead.h:3:0,
from /var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:12:
include/crypto/aead.h:379:28: note: previous definition of ‘crypto_aead_reqsize’ was here
static inline unsigned int crypto_aead_reqsize(struct crypto_aead *tfm)
^
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c: In function ‘crypto_aead_reqsize’:
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:44:9: error: implicit declaration of function ‘crypto_aead_crt’ [-Werror=implicit-function-declaration]
return crypto_aead_crt(tfm)->reqsize + sizeof(struct aead_old_request);
^
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:44:29: error: invalid type argument of ‘->’ (have ‘int’)
return crypto_aead_crt(tfm)->reqsize + sizeof(struct aead_old_request);
^
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c: In function ‘crypto_backport_convert’:
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:50:34: error: implicit declaration of function ‘aead_request_ctx’ [-Werror=implicit-function-declaration]
struct aead_old_request *nreq = aead_request_ctx(req);
^
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:50:34: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:59:43: error: implicit declaration of function ‘aead_request_flags’ [-Werror=implicit-function-declaration]
aead_request_set_callback(&nreq->subreq, aead_request_flags(req),
^
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:63:2: error: implicit declaration of function ‘aead_request_set_assoc’ [-Werror=implicit-function-declaration]
aead_request_set_assoc(&nreq->subreq, req->src, req->assoclen);
^
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c: In function ‘crypto_aead_reqsize’:
/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.c:45:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target ‘/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.o’ failed
make[3]: *** [/var/lib/dkms/backath10k/2.0/build/driver/compat/backport-4.2.o] Error 1
scripts/Makefile.build:403: recipe for target ‘/var/lib/dkms/backath10k/2.0/build/driver/compat’ failed
make[2]: *** [/var/lib/dkms/backath10k/2.0/build/driver/compat] Error 2
Makefile:1396: recipe for target ‘module/var/lib/dkms/backath10k/2.0/build/driver’ failed
make[1]: *** [module/var/lib/dkms/backath10k/2.0/build/driver] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-4.4.0-18-generic’
Makefile:15: recipe for target ‘all’ failed
make: *** [all] Error 2

Hi @pfd27,

try looking through the components list and see if that helps?:

http://www.ubuntu.com/certification/catalog/make/Qualcomm%20Atheros/

If your device is also PCI-168c:0041 then the driver is included in the kernel for 16.04.

Not sure how to tell. This is my lspci

ob@rob-Lenovo ~ $ lspci 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1566 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] (rev 05) 00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 156b 00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1537 00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11) 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] 00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) 00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42) 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11) 00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD Flash Controller (rev 01) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1580 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1581 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1582 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1583 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1584 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1585 01:00.0 Network controller: Qualcomm Atheros QCA6164 802.11ac Wireless Network Adapter (rev 20) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) rob@rob-Lenovo ~ $ lspci 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1566 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] (rev 05) 00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 156b 00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1537 00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11) 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] 00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) 00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42) 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11) 00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD Flash Controller (rev 01) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1580 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1581 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1582 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1583 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1584 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1585 01:00.0 Network controller: Qualcomm Atheros QCA6164 802.11ac Wireless Network Adapter (rev 20) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)

lspci -nn

will show the PCI Vendor and Device ID.

The Atheros QCA6164 is usually 168c:0041 and is supported by the ath10k driver. I can’t tell whether the device firmware is included in the package “linux-firmware”.

Kernel 4.4.0-18 should work. The backport will not compile because it is for a much older kernel.

Please post the output of:

dmesg | grep ath10k

rob@rob-Lenovo-G50-45:~$ dmesg | grep ath10k [ 10.586018] ath10k_pci 0000:01:00.0: pci irq msi interrupts 1 irq_mode 0 reset_mode 0 [ 10.894813] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/cal-pci-0000:01:00.0.bin failed with error -2 [ 11.018518] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/board-2.bin failed with error -2 [ 12.190424] ath10k_pci 0000:01:00.0: firmware crashed! (uuid 0476ee9a-e9e5-462e-b551-3809e229db17) [ 12.190439] ath10k_pci 0000:01:00.0: qca6164 hw2.1 (0x05010000, 0x003405ff sub 17aa:3545) fw WLAN.RM.1.1-00141 fwapi 5 bdapi 1 htt-ver 0.0 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features ignore-otp,no-4addr-pad [ 12.190443] ath10k_pci 0000:01:00.0: debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [ 12.192604] ath10k_pci 0000:01:00.0: firmware register dump: [ 12.192614] ath10k_pci 0000:01:00.0: [00]: 0x05010000 0x000015B3 0x000A012D 0x00955B31 [ 12.192618] ath10k_pci 0000:01:00.0: [04]: 0x000A012D 0x00060330 0x00000016 0x89605006 [ 12.192621] ath10k_pci 0000:01:00.0: [08]: 0x00000000 0x00400000 0x00400600 0x00000001 [ 12.192624] ath10k_pci 0000:01:00.0: [12]: 0x00000009 0x00000000 0x00931C61 0x00931C7D [ 12.192627] ath10k_pci 0000:01:00.0: [16]: 0x0096BDBC 0x009287BD 0x00000000 0x00000000 [ 12.192630] ath10k_pci 0000:01:00.0: [20]: 0x400A012D 0x0040E2B0 0x00955A00 0x00404590 [ 12.192633] ath10k_pci 0000:01:00.0: [24]: 0x809287D9 0x0040E310 0x7A5087F8 0xC00A012D [ 12.192636] ath10k_pci 0000:01:00.0: [28]: 0x809288D7 0x0040E340 0x00000000 0xFFF08040 [ 12.192639] ath10k_pci 0000:01:00.0: [32]: 0x809290FE 0x0040E360 0x00400000 0x00400600 [ 12.192641] ath10k_pci 0000:01:00.0: [36]: 0x80929205 0x0040E380 0x00000000 0x00400600 [ 12.192644] ath10k_pci 0000:01:00.0: [40]: 0x40928024 0x0040E3B0 0x0040D3D0 0x0040D3D0 [ 12.192647] ath10k_pci 0000:01:00.0: [44]: 0x00000000 0x0040E3D0 0x009BB001 0x00040020 [ 12.192649] ath10k_pci 0000:01:00.0: [48]: 0x00401BF0 0x00000001 0x00404B9C 0x00400000 [ 12.192652] ath10k_pci 0000:01:00.0: [52]: 0x40928024 0x0040E3B0 0x0040D3D0 0x0040D3D0 [ 12.192655] ath10k_pci 0000:01:00.0: [56]: 0x7B5A8A00 0xE53AA075 0x2F942493 0xDF591B9D [ 13.186169] ath10k_pci 0000:01:00.0: failed to receive control response completion, polling.. [ 14.186082] ath10k_pci 0000:01:00.0: ctl_resp never came in (-110) [ 14.186090] ath10k_pci 0000:01:00.0: failed to connect to HTC: -110 [ 14.263642] ath10k_pci 0000:01:00.0: could not init core (-110) [ 14.263680] ath10k_pci 0000:01:00.0: could not probe fw (-110) [ 14.974123] ath10k_pci 0000:01:00.0: cannot restart a device that hasn't been started [ 84.986482] Modules linked in: thinkpad_acpi nvram msr rfcomm bnep rtsx_usb_ms memstick nls_iso8859_1 uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common videodev media btusb btrtl btbcm btintel bluetooth kvm_amd kvm irqbypass snd_hda_codec_conexant snd_hda_codec_generic ath10k_pci ath10k_core snd_hda_codec_hdmi crct10dif_pclmul snd_hda_intel crc32_pclmul ath mac80211 snd_hda_codec snd_hda_core snd_hwdep aesni_intel aes_x86_64 snd_pcm cfg80211 lrw snd_seq_midi snd_seq_midi_event snd_rawmidi gf128mul glue_helper snd_seq ablk_helper snd_seq_device cryptd snd_timer snd input_leds fam15h_power joydev serio_raw edac_mce_amd soundcore edac_core shpchp k10temp i2c_piix4 ccp ideapad_laptop sparse_keymap wmi mac_hid parport_pc ppdev lp parport autofs4 rtsx_usb_sdmmc rtsx_usb rob@rob-Lenovo-G50-45:~$

Ok so I did a clean install.
When I try to set up the driver listed in the first url I get the following error.
Works fine with mint…

`rob@rob-Lenovo-G50-45:~$ sudo dpkg -i backath10k-dkms_2.0_all.deb
[sudo] password for rob:
Selecting previously unselected package backath10k-dkms.
(Reading database … 216609 files and directories currently installed.)
Preparing to unpack backath10k-dkms_2.0_all.deb …
Unpacking backath10k-dkms (2.0) …
dpkg: dependency problems prevent configuration of backath10k-dkms:
backath10k-dkms depends on dkms (>= 1.95); however:
Package dkms is not installed.

dpkg: error processing package backath10k-dkms (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
backath10k-dkms
`

That deb file won’t work with a 4.4.0 kernel.

Launchpad is down right now otherwise I could look for the current firmware.

More later …

Thanks a bunch. Greatly appreciated

I’ve been told:
“It is supposed to work in kernel 4.5 which be will be coming soon.”

1 Like

Thanks Dave
Will wait and see

Found this and tried it on a virtualbox install.

http://ubuntuhandbook.org/index.php/2016/03/upgrade-linux-kernel-4-5-ubuntu/

All went well and seems to work. Cant tell it the wifi works of course.
I was going to try it on my hd install and see what happens. If it hoses my install I won’t be terribly upset.
Would the qualcomm fix be in 4.5 now and just not incorporated into ubuntu yet? Just curious

Those instructions are good. If it doesn’t work or won’t boot you should still have your previous kernel to boot from. Just use the grub boot menu.

What concerns me is the “firmware crashed” line in the dmesg log. I’ll do some digging to see if I can find out what version firmware is needed.

It didnt work. Hopefully its fixed eventually

This seems to be related, correct me if I’m wrong, but…

https://bugs.launchpad.net/ubuntu/+source/linux-firmware/+bug/1529287