Qualcomm Atheros QCA6164 802.11ac Wireless Network Adapter [168c:0041] is not supported

Bug #1436940 reported by Brian Murray
360
This bug affects 58 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned
Vivid
Invalid
Medium
Unassigned
Wily
Invalid
Medium
Unassigned
Xenial
Invalid
Undecided
Unassigned
linux-firmware (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Invalid
Medium
Seth Forshee

Bug Description

The firmware for this card isn't included with Ubuntu. The firmware provided in /lib/firmware/ath10k/QCA6174 in Ubuntu 16.04 crashes when used with this card. This included firmware is likely for the QCA6174 instead of this card, the QCA6164.

Yes, you read that right: the files for the QCA6164 need to be a folder called QCA6174 in order for the card to work. Running "modprobe ath10k_pci" shows that the ath10k_pci module looks for firmware in a folder called QCA6174, but not in any folder called QCA6164.

It seems that before this issue can be resolved, the ath10k_pci module must be changed so that it recognizes firmware for both the QCA6164 and QCA6174, in separate folders.

---------------------------------------------------------------------------

HOW TO GET THIS CARD TO WORK:

1) Use a kernel that supports this card

According to WikiDevi, support for this card was added in kernel 4.3. If you're running Ubuntu 16.04 LTS or above, your kernel is fine; skip to the next step. If you're running Ubuntu 15.10 or below, see https://wiki.ubuntu.com/Kernel/MainlineBuilds for info on installing a newer kernel. Alternatively, you can use backports. This is a lot more work, but if you really need to keep using an older kernel for some reason, there are some guides to installing backports in the comments below.

2) Get rid of the firmware folder for this card that's included with Ubuntu:

    sudo rm -r /lib/firmware/ath10k/QCA6174/

3) Download the latest firmware:

    wget https://github.com/kvalo/ath10k-firmware/archive/master.zip

4) Unzip the downloaded file. Inside the ath10k-firmware-master folder is a folder named QCA6174. Copy the QCA6174 folder to /lib/firmware/ath10k:

    unzip master.zip
    sudo cp -r ath10k-firmware-master/QCA6174/ /lib/firmware/ath10k/

5) Rename two of the firmware files like so:

    cd /lib/firmware/ath10k/QCA6174/hw2.1/
    sudo mv firmware-5.bin_SW_RM.1.1.1-00157-QCARMSWPZ-1 firmware-5.bin
    cd /lib/firmware/ath10k/QCA6174/hw3.0/
    sudo mv firmware-4.bin_WLAN.RM.2.0-00180-QCARMSWPZ-1 firmware-4.bin

6) Reboot your computer. Run "lshw -C network" to see if your card is recognized. You can delete the files you downloaded earlier:

    cd ~
    rm master.zip
    rm -r ath10k-firmware-master/

I've verified that this works with Ubuntu 16.04 LTS (with kernel 4.4.0-21-generic); let me know if it doesn't work for you in the comments below.

---------------------------------------------------------------------------

Miles Krell

Last updated May 23, 2016

Revision history for this message
Brian Murray (brian-murray) wrote :
description: updated
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
tags: added: kernel-da-key
Revision history for this message
Brian Murray (brian-murray) wrote :

I also tested the latest 4.0 kernel per jsalisbury and while there was an additonal PCI ID listed in the kernel module, the device in this laptop was not.

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-rc5-vivid/

Revision history for this message
Brian Murray (brian-murray) wrote :

I tried to run "sudo lshw" to gather more information but ran into bug 1437436.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built a test kernel that can downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1436940/

Can you try this kernel and see if it allows the wireless device to work? We may have an issue with the firmware, which is being worked on upstream.

Revision history for this message
Brian Murray (brian-murray) wrote :

Well the module tried to load it encountered an issue loading the firmware.

[ 13.324481] ath10k_pci 0000:03:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0
[ 13.700984] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 13.701006] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-4.bin failed with error -2
[ 13.701010] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw2.1/firmware-4.bin': -2
[ 13.701105] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-3.bin failed with error -2
[ 13.701108] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw2.1/firmware-3.bin': -2
[ 13.701180] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-2.bin failed with error -2
[ 13.701183] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw2.1/firmware-2.bin': -2
[ 13.701254] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/board.bin failed with error -2
[ 13.701257] ath10k_pci 0000:03:00.0: could not fetch board data (-2)
[ 13.701299] ath10k_pci 0000:03:00.0: could not fetch firmware files (-2)
[ 13.701345] ath10k_pci 0000:03:00.0: could not probe fw (-2)

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Thanks for testing, Brian. The test kernel was just a test to see if adding just the pci device id would work. It seems it wont. We'll have to monitor the upstream discussion at:

http://permalink.gmane.org/gmane.linux.drivers.ath10k.devel/2057

I'll post to that thread and say we can test the firmware when it's available.

Revision history for this message
Jason Smith (sddfdds) wrote :

Any news on this? Also affects the wireless in the lenovo z70 series

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote :

Saw this problem on a Lenovo Edge 15 laptop as well.

lspci -nnk:
02:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)
 Subsystem: Lenovo Device [17aa:3545]

lshw -C net
*-network UNCLAIMED
       description: Network controller
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 20
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:e4000000-e41fffff

Revision history for this message
Tracy Atteberry (tracy-u) wrote :

Seeing this problem with Lenovo Z70 as well.

Kind of stuck on this error from dmesg:
Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2

More info and logs here:
http://askubuntu.com/questions/621345/lenovo-z70-wifi-with-14-04-2-and-kernel-3-16-not-working

Revision history for this message
Subin (subinraju28) wrote :

Having same issue with Lenovo G50-45 AMD A8 notebook.

01:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)
 Subsystem: Lenovo Device [17aa:3545]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
 Subsystem: Lenovo Device [17aa:3812]
 Kernel driver in use: r8168

Wireless not showing up in Connectivity, only Wired is shown !

Please help to fix the issue.

Other system info..

System: Host: Lenovo-G50-45 Kernel: 3.13.0-52-generic x86_64 (64 bit, gcc: 4.8.2)
Desktop: Gnome Distro: Linux Mint 17.1 Rebecca
Machine: System: LENOVO (portable) product: 80E3 version: Lenovo G50-45
 Mobo: LENOVO model: Lancer 5B2 version: 31900058 WIN Bios: LENOVO version: A2CN27WW(V1.09) date: 12/12/2014
CPU: Quad core AMD A8-6410 APU with AMD Radeon R5 Graphics (-MCP-) cache: 8192 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 15969.6
Clock Speeds: 1: 2000.00 MHz 2: 2000.00 MHz 3: 1400.00 MHz 4: 1000.00 MHz
Graphics: Card: Advanced Micro Devices [AMD/ATI] Mullins [Radeon APU A4-6000 with R2 Graphics] bus-ID: 00:01.0
X.Org: 1.15.1 drivers: ati (unloaded: vesa,radeon) FAILED: fbdev Resolution: 1366x768@76.0hz
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits) GLX Version: 2.1 Mesa 10.1.3 Direct Rendering: Yes
Audio: Card-1: Advanced Micro Devices [AMD] FCH Azalia Controller driver: snd_hda_intel bus-ID: 00:14.2
 Card-2: Advanced Micro Devices [AMD/ATI] Device 9840 driver: snd_hda_intel bus-ID: 00:01.1
 Sound: Advanced Linux Sound Architecture ver: k3.13.0-52-generic
Network: Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8168 ver: 8.040.00-NAPI port: 2000 bus-ID: 02:00.0
 IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
 Card-2: Qualcomm Atheros Device 0041 bus-ID: 01:00.0
 IF: N/A state: N/A speed: N/A duplex: N/A mac: N/A
 Card-3: Atheros usb-ID: 0cf3:e300
 IF: N/A state: N/A speed: N/A duplex: N/A mac: N/A
Drives: HDD Total Size: 1000.2GB (0.6% used) 1: id: /dev/sda model: ST1000LM024_HN size: 1000.2GB
Partition: ID: / size: 286G used: 5.7G (3%) fs: ext4 ID: swap-1 size: 3.72GB used: 0.00GB (0%) fs: swap
RAID: No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors: None detected - is lm-sensors installed and configured?
Info: Processes: 158 Uptime: 9 min Memory: 619.9/3409.9MB Runlevel: 2 Gcc sys: 4.8.2 Client: Shell inxi: 1.8.4

Revision history for this message
emielke (emielke) wrote :

Having the same problem on a Lenovo Edge 15

  *-network UNCLAIMED
       description: Network controller
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 20
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list
       configuration: latency=0
       resources: memory:e4000000-e41fffff

02:00.0 Network controller: Qualcomm Atheros Device 0041 (rev 20)
 Subsystem: Lenovo Device 3545
 Flags: bus master, fast devsel, latency 0, IRQ 255
 Memory at e4000000 (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

Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)

Aditya (aditya-dethe)
Changed in linux (Ubuntu):
status: Triaged → In Progress
Prashil (pbsureja)
Changed in linux (Ubuntu):
status: In Progress → Confirmed
Revision history for this message
Arpit Jain (arpitkookada) wrote :

Is there any workable solution for this ?

Kees Cook (kees)
summary: - Wireless device not listed in driver's PCI IDs
+ Atheros 168c:0041 (Lenovo G50-80) is not supported
summary: - Atheros 168c:0041 (Lenovo G50-80) is not supported
+ Atheros wifi 168c:0041 (Lenovo G50-80) is not supported
Changed in linux (Ubuntu Vivid):
status: New → Confirmed
importance: Undecided → Medium
summary: - Atheros wifi 168c:0041 (Lenovo G50-80) is not supported
+ Atheros wifi 168c:0041 is not supported
description: updated
summary: - Atheros wifi 168c:0041 is not supported
+ Atheros wifi 168c:0041(QCA6164) is not supported
Miles Krell (mileskrell)
description: updated
Revision history for this message
Patrick Lacasse (patrick-m-lacasse) wrote : Re: Atheros wifi 168c:0041(QCA6164) is not supported

I have the same issue with my new lenovo yoga 3 14".

$lspci -nn | tail -n1
02:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)

$ cat /sys/devices/virtual/dmi/id/product_version
Lenovo Yoga 3 14

I also have no rfkill switch, which means that my wireless was hard blocked.
I added my product version into the ideapad-laptop module from git://kernel.ubuntu.com/ubuntu/ubuntu-vivid.git (see attached patch).

Now it is no more hard blocked
$ rfkill list
0: ideapad_wlan: Wireless LAN
        Soft blocked: no
        Hard blocked: no

But still not usable.

I'm willing to test anything you propose.

rmb (ubuntu-loebbrown)
description: updated
tags: added: patch
Revision history for this message
Gauri (tkgauri) wrote :

I have recently purchased lenovo g50-80. It has qualcom atheros qca61x4 wifi card. Can anybody tell when the drivers for this card will be available for ubuntu 15.04?

Revision history for this message
Duarte Mendonca (duarte-mendonca) wrote :

Affects Lenovo U31-70 also.

Revision history for this message
aishwarya vaibhav (aishwaryavaibhav) wrote :

my lonovo g50-45 is also having the same bug

description: updated
Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Re: unknown qca6164 model 0x0041

Hello,

There are still new folks reporting this issue in the Launchpad bug
report[0]. Has there been any progress on the firmware problem reported
in the comment by Kalle Valo on March 26, 2015[1]?

Thanks in advance,

Joe

[0] http://pad.lv/1436940
[1] http://permalink.gmane.org/gmane.linux.drivers.ath10k.devel/2057

Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Re: Atheros wifi 168c:0041(QCA6164) is not supported

Comment #18 was a query to upstream on the <email address hidden> mailing list.

Սահակ (petrosyan)
description: updated
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Recently Upstream has found a way to boot qca6164 with unofficial windows-extracted firmware images on ath10k[1]. However, they still don't have an official firmware release for qca61x4 family for ath10k though.

[1]: http://lists.infradead.org/pipermail/ath10k/2015-August/005752.html

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Right after I posted my last comment, Upstream stated there is new firmware now available here:

https://github.com/kvalo/ath10k-firmware/commit/7f7e7dda33676ced293de477b03711199ffe5256

Please post how it works (or not).

Revision history for this message
Kees Cook (kees) wrote : Re: Atheros wifi 168c:0041(QCA6164) is not supported

With the new files, I still get the ath10k/QCA6174/hw2.1/firmware-4.bin errors. Does the kernel need to be updated for a new driver that looks for a -5 firmware?

Revision history for this message
Dan Kegel (dank) wrote :

acer aspire e15 e5-573g-59c3 suffers from similar problem, but with lspci reporting 168c:0042 (rev 30),not 0041 (rev 20).

Revision history for this message
Dan Kegel (dank) wrote :

I'm willing to test, too, but the procedure is hard to extract from that email thread.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

re: comment #23. Response from Upstream:

"Yes - either 4.2-rc or newer, or use Kalle's tree[1].

The qca6174 hw2.1 fix has been pulled into 4.1-stable[2] but it
doesn't understand the ignore_otp_result firmware feature flag so if
you rename the firmware-5.bin[3] to firmware-4.bin you'll need to load
ath10k_core module with "skip_otp=y" parameter.

Michał

[1]: https://github.com/kvalo/ath
[2]: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.1.y&id=b235edce5cbe4e978d44d8c57ec15afc4ba27d50
[3]: https://github.com/kvalo/ath10k-firmware/blob/7f7e7dda33676ced293de477b03711199ffe5256/ath10k/QCA6174/hw2.1/firmware-5.bin
"

Miles Krell (mileskrell)
description: updated
ravi119 (ravi119)
Changed in linux (Ubuntu Vivid):
status: Confirmed → Incomplete
status: Incomplete → Confirmed
Revision history for this message
Samuel Volin (untra) wrote :

Also affects the Lenovo U31 series. how soon can we see / test a fix?

Revision history for this message
Diego (d13g0) wrote :

I got my card working in Debian testing (I have a Qualcomm Atheros 168c:0041).

Here are the steps, get the latest backports from:

https://www.kernel.org/pub/linux/kernel/projects/backports/2015/07/31/

Get the latest firmware from:

https://github.com/kvalo/ath10k-firmware

Copy the firmware to /lib/firmware/ath10k, apply this patch to the code:

https://github.com/atondwal/linux/commit/22f8a4083883eca3e8a3175315d67d2a04392466

Compile the code and install, then apply this patch to the firmware:

https://github.com/atondwal/ath10k-firmware/tree/master/ath10k/QCA6164/hw2.1

Reboot and modprobe ath10k_pci. Do "lshw -C network"; "ip link show" or "rfkill list" to see if you got your card working.

Mine is working perfectly in my Debian (stretch / sid).

Revision history for this message
Diego (d13g0) wrote :

Oh, I forgot, also create a file named /etc/modprobe.d/ath10k.conf with the following line:

options ath10k_core skip_otp=y

Revision history for this message
ravi119 (ravi119) wrote : Re: [Bug 1436940] Re: Atheros wifi 168c:0041(QCA6164) is not supported
Download full text (3.3 KiB)

Hi Diego,

Could you list down the steps to compile the setup.

*Thanks and Regards*
*Ravi Ranjan Karn*

On Fri, Aug 21, 2015 at 3:27 PM, Diego <email address hidden> wrote:

> Oh, I forgot, also create a file named /etc/modprobe.d/ath10k.conf with
> the following line:
>
> options ath10k_core skip_otp=y
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1436940
>
> Title:
> Atheros wifi 168c:0041(QCA6164) is not supported
>
> Status in linux package in Ubuntu:
> Confirmed
> Status in linux source package in Vivid:
> Confirmed
> Status in linux source package in Wily:
> Confirmed
>
> Bug description:
> The atheros wireless device (168c:0041) isn't supported by the
> ath10k_pci kernel driver.
>
> Found in several laptop models:
>
> Lenovo Z70
> Lenovo G50-45
> Lenovo G50-80
> Lenovo Edge 15
> Lenovo Yoga 3 11
> Lenovo Flex 3-1470
> Samsung ATIV Book 9 NP930X2K
>
> ProblemType: BugDistroRelease: Ubuntu 15.04
> Package: linux-image-3.19.0-9-generic 3.19.0-9.9
> ProcVersionSignature: Ubuntu 3.19.0-9.9-generic 3.19.1
> Uname: Linux 3.19.0-9-generic x86_64
> ApportVersion: 2.16.2-0ubuntu3
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: nicholas 1695 F.... pulseaudio
> /dev/snd/controlC1: nicholas 1695 F.... pulseaudio
> CurrentDesktop: Unity
> Date: Thu Mar 26 09:47:16 2015
> HibernationDevice: RESUME=UUID=5b068cd8-e60a-49b9-a88e-1581bb6b3dc1
> InstallationDate: Installed on 2015-03-25 (1 days ago)
> InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64
> (20141022.1)
> IwConfig:
> eth0 no wireless extensions.
>
> lo no wireless extensions.
> Lsusb:
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 004: ID 0cf3:e300 Atheros Communications, Inc.
> Bus 001 Device 003: ID 5986:0652 Acer, Inc
> Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129
> Card Reader Controller
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> MachineType: LENOVO 80E5
> ProcFB: 0 inteldrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-9-generic
> root=UUID=e52867c5-0b50-42fb-8288-f30765f926c5 ro quiet splash vt.handoff=7
> RelatedPackageVersions:
> linux-restricted-modules-3.19.0-9-generic N/A
> linux-backports-modules-3.19.0-9-generic N/A
> linux-firmware 1.143SourcePackage: linux
> UpgradeStatus: Upgraded to vivid on 2015-03-26 (0 days ago)
> dmi.bios.date: 06/20/2014
> dmi.bios.vendor: LENOVO
> dmi.bios.version: B0CN69WW
> dmi.board.asset.tag: NO Asset Tag
> dmi.board.name: Lenovo G50-80
> dmi.board.vendor: LENOVO
> dmi.board.version: 31900058 WIN
> dmi.chassis.asset.tag: NO Asset Tag
> dmi.chassis.type: 10
> dmi.chassis.vendor: LENOVO
> dmi.chassis.version: Lenovo G50-80
> dmi.modalias:
> dmi:bvnLENOVO:bvrB0CN69WW:bd06/20/2014:svnLENOVO:pn80E5:pvrLenovoG50-80:rvnLENOVO:rnLenovoG50-80:rvr31900058WIN:cvnLENOVO:ct10:cvrLenovoG50-80:
> dmi.product.name: 80E5
> dmi.product.version: Lenovo G50...

Read more...

Revision history for this message
Kees Cook (kees) wrote : Re: Atheros wifi 168c:0041(QCA6164) is not supported

@jsalisbury is there a 4.2 ubuntu kernel we could test with? Here's a tarball with the firmware files. It's unpacked as:

cd /lib/firmware
tar xf /tmp/ath10k-qca6174.tar.bz2

Revision history for this message
Bruno Viana (bbviana) wrote :

This firmware has worked for me, Kees!

- Samsung Ativ Book 9
- Atheros QCA6164

Revision history for this message
Kees Cook (kees) wrote :

I have not tested these, but IIUC, this is where to get an upstream kernel build, configured for Ubuntu, thought likely without Ubuntu-specific patches: http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/

Revision history for this message
Diego (d13g0) wrote :

Yes, steps are:

Get the latest backport from https://www.kernel.org/pub/linux/kernel/projects/backports/2015/07/31/ (the zip/tar file)
Uncompress somewhere
Patch the code with https://github.com/atondwal/linux/commit/22f8a4083883eca3e8a3175315d67d2a04392466
Then do:
make defconfig-ath10k
make
sudo make install

Then, get the latest firmware from https://github.com/kvalo/ath10k-firmware/archive/master.zip
Unzip and copy ath10k folder to /lib/firmware/ath10k
Copy these two files (overwrite what you got before) in /lib/firmware/ath10k/QCA6164/hw2.1:
https://github.com/atondwal/ath10k-firmware/tree/master/ath10k/QCA6164/hw2.1

Create a file named /etc/modprobe.d/ath10k.conf with the following line:

"options ath10k_core skip_otp=y"

Reboot and modprobe ath10k_pci. Do "lshw -C network"; "ip link show" or "rfkill list" to see if you got your card working.

Revision history for this message
Ryan (ryanw527) wrote :

Following Diego's steps above, "lshw -C network" no longer says my network card is unclaimed and the driver assigned to it is ath10k_pci. However, I see no difference in the functionality of the card (still can not use it).

Lenovo Flex 3 14"
QCA6164 168c:0041

Revision history for this message
Diego (d13g0) wrote :

Hi Ryan,

can you copy the outputs of "lshw -C network"; "sudo ip link show" and "sudo rfkill list" ? Can you check for relevant errors with dmesg ("dmesg | grep -i ath" / "dmesg | tail" or just all of dmesg) ?

Also, did you patch the firmware and create the conf file to skip_otp ?

Thanks,
Diego

Revision history for this message
Ryan (ryanw527) wrote :
Download full text (21.0 KiB)

Hi Diego,

I followed every step you outlined including patching the firmware and creating the conf file and adding the skip_otp line. Thank you for your help!

"sudo lshw -C network"

*-network
       description: Network controller
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 20
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=ath10k_pci latency=0
       resources: irq:49 memory:e4000000-e41fffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: eth0
       version: 10
       serial: 54:ee:75:4e:86:b7
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.1.4 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:44 ioport:4000(size=256) memory:e4204000-e4204fff memory:e4200000-e4203fff

"sudo ip link show"

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 54:ee:75:4e:86:b7 brd ff:ff:ff:ff:ff:ff

"sudo rfkill list"

0: ideapad_wlan: Wireless LAN
 Soft blocked: no
 Hard blocked: no
1: ideapad_bluetooth: Bluetooth
 Soft blocked: no
 Hard blocked: no
6: hci0: Bluetooth
 Soft blocked: no
 Hard blocked: no

"dmesg | grep -i ath"

[ 2.035031] [<ffffffff81075b1a>] warn_slowpath_common+0x8a/0xc0
[ 2.035032] [<ffffffff81075b96>] warn_slowpath_fmt+0x46/0x50
[ 2.218428] ath10k_pci 0000:02:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0
[ 2.405198] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 2.405407] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with error -2
[ 2.405409] ath10k_pci 0000:02:00.0: failed to load spec board file, falling back to generic: -2
[ 3.583538] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 3.583555] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 3.584948] ath10k_pci 0000:02:00.0: firmware crashed! (uuid e628e267-4dee-4da1-8a51-ed236bd4fc19)
[ 3.584969] ath10k_pci 0000:02:00.0: qca6174 hw2.1 (0x05010000, 0x003405ff, 168c:0041:17aa:3545 fallback) fw WLAN.RM.1.1-00141 api 5 htt-ver 0.0 wmi-op 4 htt-op 3 cal otp max-sta 32 features ignore-otp,no-4addr-pad
[ 3.584973] ath10k_pci 0000:02:00.0: debug 1 debugfs 1 tracing 0 dfs 0 testmode 0
[ 3.587298] ath10k...

Revision history for this message
Diego (d13g0) wrote :
Download full text (4.4 KiB)

Hi,

clearly the firmware is crashing in your computer (wonder why). Do you have exactly the same chipset as me (lspci -nnk) ?

02:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)

Here are my outputs just FYI. I'm not sure why the firmware crashed in your box ("[ 3.584948] ath10k_pci 0000:02:00.0: firmware crashed! (uuid e628e267-4dee-4da1-8a51-ed236bd4fc19)", trying to look for the unsolicited fw crash interrupts).

  *-network
       description: Wireless interface
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 20
       serial: f1:59:19:6f:94:3d
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=4.1.0-1-amd64 firmware=atheros-12.0.0.102-fw ip=10.1.1.4 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:49 memory:e4000000-e41fffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: enp3s0
       version: 10
       serial: 65:ff:88:4d:ca:71
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:43 ioport:4000(size=256) memory:e4204000-e4204fff memory:e4200000-e4203fff

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether 65:ff:88:4d:ca:71 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether f1:59:19:6f:94:3d brd ff:ff:ff:ff:ff:ff

[ 5.866041] ath10k_pci 0000:02:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0
[ 6.056962] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/cal-pci-0000:02:00.0.bin (-2)
[ 6.056963] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 6.057265] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin (-2)
[ 6.057266] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with error -2
[ 6.057267] ath10k_pci 0000:02:00.0: failed to load spec board file, falling back to generic: -2
[ 6.057426] ath10k_pci 0000:02:00.0: firmware: direct-loading firmware ath10k/QCA6174/hw2.1/board.bin
[ 6.059061] ath10k_pci 0000:02:00.0: firmware: ...

Read more...

Revision history for this message
Diego (d13g0) wrote :

Mmm,

This is my dmesg:

[ 7.251278] ath10k_pci 0000:02:00.0: qca6174 hw2.1 (0x05010000, 0x003405ff, 168c:0041:17aa:3545 fallback) fw atheros-12.0.0.102-fw api 5 htt-ver 3.25 wmi-op 4 htt-op 3 cal otp max-sta 32 features

But yours is:

[ 3.584969] ath10k_pci 0000:02:00.0: qca6174 hw2.1 (0x05010000, 0x003405ff, 168c:0041:17aa:3545 fallback) fw WLAN.RM.1.1-00141 api 5 htt-ver 0.0 wmi-op 4 htt-op 3 cal otp max-sta 32 features ignore-otp,no-4addr-pad

So, it seems to me that you are using this firmware: https://github.com/kvalo/ath10k-firmware/tree/master/ath10k/QCA6174/hw2.1

When you should be using this one: https://github.com/atondwal/ath10k-firmware/tree/master/ath10k/QCA6164/hw2.1

I was reading my original message and it seems there are some typos, please copy the two files from https://github.com/atondwal/ath10k-firmware/tree/master/ath10k/QCA6164/hw2.1 to /lib/firmware/ath10k/QCA6174 (note the numbers do *not* match, that is the typo).

Revision history for this message
Diego (d13g0) wrote :

Edit: copy https://github.com/atondwal/ath10k-firmware/tree/master/ath10k/QCA6164/hw2.1 to /lib/firmware/ath10k/QCA6174/hw2.1 (overwriting the files that should already exist there).

Revision history for this message
Ryan (ryanw527) wrote :

Hi Diego,

Still no luck (copied the QCA6164 firmware.bin and board.bin to QCA6174/hw2.1/) but I am getting different outputs on dmesg.

"dmesg | grep -i ath"

[ 2.014702] [<ffffffff81075b1a>] warn_slowpath_common+0x8a/0xc0
[ 2.014704] [<ffffffff81075b96>] warn_slowpath_fmt+0x46/0x50
[ 2.076696] ath10k_pci 0000:02:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0
[ 2.264949] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 2.265161] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin failed with error -2
[ 2.265162] ath10k_pci 0000:02:00.0: failed to load spec board file, falling back to generic: -2
[ 3.437786] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 3.437794] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 4.436590] ath10k_pci 0000:02:00.0: failed to receive control response completion, polling..
[ 4.436912] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 4.437024] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 5.437385] ath10k_pci 0000:02:00.0: Service connect timeout
[ 5.437393] ath10k_pci 0000:02:00.0: failed to connect htt (-110)
[ 5.514369] ath10k_pci 0000:02:00.0: could not init core (-110)
[ 5.514390] ath10k_pci 0000:02:00.0: could not probe fw (-110)

"dmesg | tail"

[ 4.437024] ath10k_pci 0000:02:00.0: received unsolicited fw crash interrupt
[ 4.620546] [drm:gen8_irq_handler [i915]] *ERROR* The master control interrupt lied (SDE)!
[ 5.437385] ath10k_pci 0000:02:00.0: Service connect timeout
[ 5.437393] ath10k_pci 0000:02:00.0: failed to connect htt (-110)
[ 5.514369] ath10k_pci 0000:02:00.0: could not init core (-110)
[ 5.514390] ath10k_pci 0000:02:00.0: could not probe fw (-110)
[ 6.606130] r8169 0000:03:00.0 eth0: link up
[ 9.611721] [drm:gen8_irq_handler [i915]] *ERROR* The master control interrupt lied (SDE)!
[ 9.800304] [drm:gen8_irq_handler [i915]] *ERROR* The master control interrupt lied (SDE)!
[ 9.989036] [drm:gen8_irq_handler [i915]] *ERROR* The master control interrupt lied (SDE)!

"lspci -nnk"

02:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)
 Subsystem: Lenovo Device [17aa:3545]
 Kernel driver in use: ath10k_pci

Revision history for this message
Diego (d13g0) wrote :

Hi,

not sure why your firmware is crashing... You seem to have the exact same laptop as me (Lenovo 80K90001US, or at least everything seems to match so far).

You could try editing htc.c (drivers/net/wireless/ath/ath10k) and commenting out that error to see if it helps (or fails later) but this is just a guess really... If you open htc.c, and search for "Service connect timeout", you can try commenting out the next line (line 697) that says "return -ETIMEDOUT;" (that is basically the -110 you see that prevents the firmware to load).

You could compile and sudo make install it (but this is just a guess, hoping it might help out).

By the way, my kernel is:

Linux diego 4.1.0-1-amd64 #1 SMP Debian 4.1.3-1 (2015-08-03) x86_64 GNU/Linux

I'm not sure if maybe you have an older kernel or newer... It might be some other hardware interfering with it (maybe something I didn't care to configure) ?

Revision history for this message
Diego (d13g0) wrote :

A few things you could also try:

1. I read that some people reported the power interfering with the card (try booting from battery or AC)
2. I read some people saying that putting the computer to sleep and restoring makes Atheros work (weird)
3. Some people reported problems with Atheros card and UEFI installations (just FYI, I use legacy BIOS mode because I switched my drive from an older laptop that broke)

Revision history for this message
Ryan (ryanw527) wrote :

Hi Diego,

It's finally working! Thank you so much for your help. What seemed to be the final problem is I was running kernel 4.2 but after downgrading to your kernel (4.1.0), everything worked.

Revision history for this message
Diego (d13g0) wrote :

Hi,

glad is working! I guess I will have to be extra careful when upgrading my kernel now. Thanks for letting me know that :).

Hopefully support will be added to newer kernels though :).

Best,
Diego

Revision history for this message
marc matthes (marc-matthes) wrote : Re: [Bug 1436940] Re: Atheros wifi 168c:0041(QCA6164) is not supported
Download full text (3.3 KiB)

Would these directions work for a Lenovo G50-45 running Cent os 7.

Sent from my android device.

-----Original Message-----
From: Diego <email address hidden>
To: <email address hidden>
Sent: Sun, 23 Aug 2015 3:53 PM
Subject: [Bug 1436940] Re: Atheros wifi 168c:0041(QCA6164) is not supported

Hi,

glad is working! I guess I will have to be extra careful when upgrading
my kernel now. Thanks for letting me know that :).

Hopefully support will be added to newer kernels though :).

Best,
Diego

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1436940

Title:
  Atheros wifi 168c:0041(QCA6164) is not supported

Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Vivid:
  Confirmed
Status in linux source package in Wily:
  Confirmed

Bug description:
  The atheros wireless device (168c:0041) isn't supported by the
  ath10k_pci kernel driver.

  Found in several laptop models:

  Lenovo Z70
  Lenovo G50-45
  Lenovo G50-80
  Lenovo Edge 15
  Lenovo Yoga 3 11
  Lenovo Flex 3-1470
  Samsung ATIV Book 9 NP930X2K

  ProblemType: BugDistroRelease: Ubuntu 15.04
  Package: linux-image-3.19.0-9-generic 3.19.0-9.9
  ProcVersionSignature: Ubuntu 3.19.0-9.9-generic 3.19.1
  Uname: Linux 3.19.0-9-generic x86_64
  ApportVersion: 2.16.2-0ubuntu3
  Architecture: amd64
  AudioDevicesInUse:
   USER PID ACCESS COMMAND
   /dev/snd/controlC0: nicholas 1695 F.... pulseaudio
   /dev/snd/controlC1: nicholas 1695 F.... pulseaudio
  CurrentDesktop: Unity
  Date: Thu Mar 26 09:47:16 2015
  HibernationDevice: RESUME=UUID=5b068cd8-e60a-49b9-a88e-1581bb6b3dc1
  InstallationDate: Installed on 2015-03-25 (1 days ago)
  InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
  IwConfig:
   eth0 no wireless extensions.

   lo no wireless extensions.
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 004: ID 0cf3:e300 Atheros Communications, Inc.
   Bus 001 Device 003: ID 5986:0652 Acer, Inc
   Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: LENOVO 80E5
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-9-generic root=UUID=e52867c5-0b50-42fb-8288-f30765f926c5 ro quiet splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.19.0-9-generic N/A
   linux-backports-modules-3.19.0-9-generic N/A
   linux-firmware 1.143SourcePackage: linux
  UpgradeStatus: Upgraded to vivid on 2015-03-26 (0 days ago)
  dmi.bios.date: 06/20/2014
  dmi.bios.vendor: LENOVO
  dmi.bios.version: B0CN69WW
  dmi.board.asset.tag: NO Asset Tag
  dmi.board.name: Lenovo G50-80
  dmi.board.vendor: LENOVO
  dmi.board.version: 31900058 WIN
  dmi.chassis.asset.tag: NO Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Lenovo G50-80
  dmi.modalias: dmi:bvnLENOVO:bvrB0CN69WW:bd06/20/2014:svnLENOVO:pn80E5:pvrLenovoG50-80:rvnLENOVO:rnLenovoG50-80:rvr31900058WIN:cvnLENOVO:ct10:cvrLenovoG50-80:
  dmi.product.name...

Read more...

Revision history for this message
Diego (d13g0) wrote : Re: Atheros wifi 168c:0041(QCA6164) is not supported

Hi Marc,

if you have the same chipset (02:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)), it is likely but the only way to know is trying :). Check your kernel version (Ryan said it was failing for him in 4.2, and had to downgrade to match 4.1).

Hope it works,
Diego

Revision history for this message
infinityz (infinityzx) wrote :

Anyoone with speed issue, compared to windows?
I cannot go over 6Mb/s on 5Ghz and 1Mb/s on 2.4 Ghz
Indeed it is working, but not really doable for large file transfers or video streaming from a NAS in the same subnet :-/

Revision history for this message
Diego (d13g0) wrote :

Hey Infinityz,

when you say 6Mb/s, do you mean Mbps or MB ? My Comcast doesn't get to 6MB/s, I can get easily get up to 10Mbps... But, now that you mention it, I do notice a slower performance than my Android and Windows devices (especially for upstream).

It's still good enough to stream videos from sites like Netflix though (but there might be an issue making this slower).

Thanks,
Diego

Revision history for this message
infinityz (infinityzx) wrote :

Hi Diego,

       wlan0 IEEE 802.11abgn ESSID:"XXXXXXXX"
          Mode:Managed Frequency:5.805 GHz Access Point: 00:90:4C:11:40:00
          Bit Rate=6 Mb/s Tx-Power=30 dBm
          Retry short limit:7 RTS thr:off Fragment thr:off
          Power Management:on
          Link Quality=55/70 Signal level=-55 dBm
          Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:80 Invalid misc:953 Missed beacon:0

I guess this is mbps, since on windows I'm able to get 866 mbps in the same location.
The transfer rate of a file (tried different protocols) on the same subnet is around 5 MB/s, while on windows is 45 MB/s

Revision history for this message
Reva (revanth001reva) wrote :

Hi Diego,

Thanks for the fix.I got my WIFI working but I lost my bluetooth.

This is what the dmesg showing for bluetooth.

dmesg | grep -i blue
[ 7.609957] Bluetooth: Core ver 2.20
[ 7.609975] Bluetooth: HCI device and connection manager initialized
[ 7.609978] Bluetooth: HCI socket layer initialized
[ 7.609980] Bluetooth: L2CAP socket layer initialized
[ 7.609987] Bluetooth: SCO socket layer initialized
[ 7.616484] Bluetooth: RFCOMM TTY layer initialized
[ 7.616494] Bluetooth: RFCOMM socket layer initialized
[ 7.616499] Bluetooth: RFCOMM ver 1.11
[ 7.626119] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 7.626121] Bluetooth: BNEP filters: protocol multicast
[ 7.626125] Bluetooth: BNEP socket layer initialized
[ 9.046001] bluetooth hci0: Direct firmware load for qca/rampatch_usb_00000200.bin failed with error -2
[ 9.046005] Bluetooth: hci0: failed to request rampatch file: qca/rampatch_usb_00000200.bin (-2)

Mine is the same card as yours but only difference is it is showing QCA988X instead of QCA6174.Do I need to change any thing in the git patch to make both WIFI and Bluetooth work?

PS : Bluetooth is working initially but after the steps,now WIFI works but bluetooth doesnt :(

Revision history for this message
Candido Margarini (margarinic) wrote :

hey, Thank God I ran into this thread!! I'm having the same issue with my wifi card.

please excse my noob-ness.

Diego, I tried following the directions you posted above but I'm still getting network unclaimmed :/ . Did I miss anything?

Revision history for this message
robert (robertsori) wrote :

Diego:
I wanted first to thank you for taking the time to investigate and attempt to help us resolve this issue.
I tried to follow all the post to get this to work, but am very frustrated.

Here is my Specific Card;
01:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)

Because there seems to be various revisions to this card type, and different folders needed in /lib/firmware/ath10k
It becomes difficult for me to follow each step. Along the way, if things become unclear. I think some people have made the right assumptions and guesses and got things right. While I am maybe others have not been able to get the right files in the right folder to make things work.

Would it be possible to point me in the right direction, so I can get my specific card type to work properly.
Every attempt so far still results in an unclaimed card.

Bob in Vegas

Revision history for this message
Francois D (c-ubuntuone-g) wrote :

Hi Robert,

Are you aware of this thread:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1383184/+index?comments=all

Adam did a patch that is very easy to install. Look at post #209.

It worked for me and everyone who upgraded to kernel 3.19. Unfortunately in my case this kernel brought other issues but most of the people seem have everything working.

Hope this helps.

Revision history for this message
robert (robertsori) wrote :

Francois D (c-ubuntuone-g)
I did checked it out on your suggestion, and so far it has not solve my problem, it seems that DEB might be for only the 168c:003e. Which is kinda what I was suggesting in my post. My WIFI is 168c:0041, So many different version of this family of chips.

But I will keep trying later with another Kernel, who knows. Thanks for the info.
Bob S

Revision history for this message
robert (robertsori) wrote :

All:

I have been unable to get my built in wifi to work, it is version 168c:0041, as mentioned in the bug thread.
I used the modinfo command and found that my Lenovo G50-45 running Debian kernel 4.1.0-1 is actually looking for other files in QCA988X, see the results below.

sudo modinfo ath10k_pci
filename: /lib/modules/4.1.0-1-amd64/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
firmware: ath10k/QCA988X/hw2.0/board.bin
firmware: ath10k/QCA988X/hw2.0/firmware-3.bin
firmware: ath10k/QCA988X/hw2.0/firmware-2.bin
firmware: ath10k/QCA988X/hw2.0/firmware.bin
license: Dual BSD/GPL
description: Driver support for Atheros QCA988X PCIe devices
author: Qualcomm Atheros
alias: pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends: ath10k_core
intree: Y
vermagic: 4.1.0-1-amd64 SMP mod_unload modversions
parm: irq_mode:0: auto, 1: legacy, 2: msi (default: 0) (uint)
parm: reset_mode:0: auto, 1: warm only (default: 0) (uint)

Revision history for this message
Samuel Volin (untra) wrote :

Diego, your steps at comment #34 worked without a hitch for me and my Lenovo U31. Thank you for untethering me! You are a treasure!

Revision history for this message
Gauri (tkgauri) wrote :

Diego, Any idea if it would work for qualcom atheros qca61x4 card ?

[168c:0041] (rev 20)

Revision history for this message
robert (robertsori) wrote :

I see there was no reply, if you look at the top it says this bug is for that type card. But it is not in the Kernel yet, looks like 4.3 might have it ready. You have to do the work around described above. It did not work for me, but I have seen some config info from any successful results, and there is always some variation to my situation Lenovo G50-45 with that type card.

See this link for info on this specific card in Fedora bug group and links to next Kernel info.

https://bugzilla.redhat.com/show_bug.cgi?id=1257500

Bob

Kees Cook (kees)
summary: - Atheros wifi 168c:0041(QCA6164) is not supported
+ Atheros wifi 168c:0041(QCA6174) is not supported
Revision history for this message
robert (robertsori) wrote : Re: Atheros wifi 168c:0041(QCA6174) is not supported

For now that is correct, and yet people post in this bug list that they have achieved a workaround.

So far only Diego has posted enough information

If others could add to the happy success post their lspci, lsusb and modinfo, uname -a
it would be easier to piece how they achieved their success.

I remember going through this with broadcom many years ago, this too shall pass

Revision history for this message
robert (robertsori) wrote :

I was able to get my Atheros wifi, version 0168c:0041 working as expected using the latest Linux Next Kernel Git;
https://github.com/torvalds/linux.git

And the procedure described on this Fedora bug report site, by Susi Lehtola
https://bugzilla.redhat.com/show_bug.cgi?id=1257500#c16

It simple involves using the firmware in the proper folder (QCA6174) mentioned by Diego in comment 39 and 40.
And the latest Kernel, which I compiled on my Debian Stretch distribution.

  *-network
       description: Wireless interface
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlp1s0
       version: 20
       serial: ac:e0:10:2e:7a:ab
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=4.2.0-nextlinux firmware=atheros-12.0.0.102-fw ip=10.69.40.8 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:34 memory:f0800000-f09fffff

There are remaining issues such as speed and total functionality, but this is the first time I could get any such results and it seems this driver is reaching its final phase.

Bob
Las Vegas

Revision history for this message
marc matthes (marc-matthes) wrote : Re: [Bug 1436940] Re: Atheros wifi 168c:0041(QCA6174) is not supported
Download full text (7.7 KiB)

here is my information on my issue
Lenovo G50-45 laptop
windows
Qualcomm Atheros QCA61x4 Wireless Network Adapter

PCI\VEN_168C&DEV_0041&SUBSYS_354517AA&REV_20

Linux Centos 7

$ uname -arsi
Linux localhost.localdomain 3.10.0-229.11.1.el7.x86_64 #1 SMP Thu Aug 6 01:06:18 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ lspci -nnk | grep -i net -A2
01:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)
 Subsystem: Lenovo Device [17aa:3545]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
 Subsystem: Lenovo Device [17aa:3812]
 Kernel driver in use: r8169

$ sudo lshw -c net
  *-network UNCLAIMED
       description: Network controller
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 20
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:f0800000-f09fffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 10
       serial: 68:f7:28:6d:14:96
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.1.245 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:79 ioport:2000(size=256) memory:f0c04000-f0c04fff memory:f0c00000-f0c03fff
$
$ lsusb
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 13d3:5727 IMC Networks
Bus 002 Device 004: ID 0cf3:e300 Atheros Communications, Inc.

$ modinfo r8169
filename: /lib/modules/3.10.0-229.11.1.el7.x86_64/kernel/drivers/net/ethernet/realtek/r8169.ko
firmware: rtl_nic/rtl8107e-2.fw
firmware: rtl_nic/rtl8107e-1.fw
firmware: rtl_nic/rtl8168h-2.fw
firmware: rtl_nic/rtl8168h-1.fw
firmware: rtl_nic/rtl8168g-3.fw
firmware: rtl_nic/rtl8168g-2.fw
firmware: rtl_nic/rtl8106e-2.fw
firmware: rtl_nic/rtl8106e-1.fw
firmware: rtl_nic/rtl8411-2.fw
firmware: rtl_nic/rtl8411-1.fw
firmware: rtl_nic/rtl8402-1.fw
firmware: rtl_nic/rtl8168f-2.fw
firmware: rtl_nic/rtl8168f-1.fw
firmware: rtl_nic/rtl8105e-1.fw
firmware: rtl_nic/rtl8168e-3.fw
firmware: rtl_nic/rtl8168e-2.fw
firmware: rtl_nic/rtl8168e-1.fw
fi...

Read more...

Revision history for this message
robert (robertsori) wrote : Re: Atheros wifi 168c:0041(QCA6174) is not supported

Marc:
I see your still having trouble.
Follow the example I gave above is all I can advise you.

1) Compile a kernel from the GIT source I mentioned, its is now officially 4.3rc1.
Don't ask me how to compile it, your have Centos which is Red Hat based, so go to your Linux Distribution Forums and find out how to compile on your distro.

2) Move the firmware to the proper folder and test it.
What folder is that. I don't know. on my Debian it is /lib/firmware/ath10k/...etc
Again Bing it and Find it.........

Nothing you put in the Firmware folder will affect your computer, it might not load the wifi but will not affect anything else. So don't be afraid to try.

The Kernel will either compile or it won't, this will take hours to finish, so start it late and go to bed. Or a movie might be good. ON TV with commercials so you can sneak a peek at your computer for a status.

Good Luck and Enjoy the Challenge.

Bob

Revision history for this message
Patrick (pj2melan) wrote :

Went through one or two minor bumps along my way, so I'll chronicle them here quickly:

Setup: Lenovo flex 3 14" or whatever, it has the 168c:0041 card everyone is raving about nowadays. Arch Linux, got the 4.1.6 kernel and patched it as above. Couldn't run the patch as-is, make sure the code you change keeps the intent of what that git patch is trying to do. Compiled kernel, that was fun.
Copied firmware into ath10k/QCA6174/hw2.1, then symlinked firmware-5.bin to firmware-4.bin, since dmesg wasn't mentioning firmware-5 but was saying it couldn't find firmware-4.
Had some trouble figuring out why it still wasn't working, was getting an error related to otp. Then came back, looked at our shepherd Diego, and "echo 'options ath10k_core skip_otp=y' > /etc/modprobe.d/ath10k.conf" and all was good.

Thanks for the opportunity to mess around in a limited way with my kernel, it was fun!

udabes Diego.

Revision history for this message
Miles Krell (mileskrell) wrote :

Following Diego's instructions in #34, my card works perfectly. I now understand what Patrick was saying about the git patch in the above comment (#64) - the line numbers don't match up perfectly, but it's pretty easy to figure out where the lines should go.

It's so satisfying to see this card work under Ubuntu for the first time since I got this computer in May!

Thanks to both Patrick and Diego for their work on this!

Revision history for this message
Miles Krell (mileskrell) wrote :

Here's some information for my card. I definitely haven't experienced any issues with low speeds.

$ uname -a
Linux flex-3-1470 3.19.0-28-generic #30-Ubuntu SMP Mon Aug 31 15:52:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

$ lspci
02:00.0 Network controller: Qualcomm Atheros Device 0041 (rev 20)

$ ifconfig
wlan2 Link encap:Ethernet HWaddr ac:e0:10:0d:69:db
          inet addr:192.168.1.16 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::aee0:10ff:fe0d:69db/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:14493 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14013 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14548693 (14.5 MB) TX bytes:2558985 (2.5 MB)

$ sudo lshw
*-pci:1
             description: PCI bridge
             product: Wildcat Point-LP PCI Express Root Port #3
             vendor: Intel Corporation
             physical id: 1c.2
             bus info: pci@0000:00:1c.2
             version: e3
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:18 memory:c1000000-c11fffff
           *-network
                description: Wireless interface
                product: Qualcomm Atheros
                vendor: Qualcomm Atheros
                physical id: 0
                bus info: pci@0000:02:00.0
                logical name: wlan2
                version: 20
                serial: ac:e0:10:0d:69:db
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=ath10k_pci driverversion=3.19.0-28-generic firmware=atheros-12.0.0.102-fw ip=192.168.1.16 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
                resources: irq:49 memory:c1000000-c11fffff

Revision history for this message
robert (robertsori) wrote :

Miles:
I'm Happy with it's performance also, I was referring to some other individuals who reported being stuck at 1meg.
It's good to be fine tuning things now, and no longer stuck at UNCLAIMED.

Revision history for this message
Jeremy (wa113y3s) wrote :

Do the backports work with this card https://www.kernel.org/pub/linux/kernel/projects/backports/2015/09/03/

The patch from Kalle Valo looks to included in the source code

Revision history for this message
Diego (d13g0) wrote :

I just tried the 20150903 backports and I didn't have to patch the code (still need to copy the firmware and create /etc/modprobe.d/ath10k.conf.

Also, looking at the code from the backport, the firmware still needs to be copied to QCA6174 (instead of QCA6164). Guess it's getting better (maybe in a few months, there will be no need to do manual work).

Revision history for this message
Jeremy (wa113y3s) wrote :

I had a few confirmations from ubuntuforums and askubuntu that it works. I can't understand why it can't use /lib/firmware/ath10k/QCA6164/ for the firmware, the thread http://ath10k.infradead.narkive.com/bahorD8v/patch-rft-1-2-ath10k-add-qca6164-support says it is to avoid breaking backward compatibility with older /lib/firmware setups

Revision history for this message
Miles Krell (mileskrell) wrote :

After the kernel update to 3.19.0-30.33, I found that my wifi card wasn't working again. I decided to download the latest backports (2015/09/03 instead of 2015/07/31). When I went to apply the patches Diego mentioned, I found that the patches were already included in the backports, with one interesting difference.

Line 61 of pci.c now reads:

#define QCA6164_2_1_DEVICE_ID (0x0041)

instead of

#define QCA6174_2_1_DEVICE_ID (0x0041)

Does this mean that this card (168c:0041) is actually the QCA6164 and not the QCA6174, as the title of this bug states?

Revision history for this message
robert (robertsori) wrote :

Miles:
Here's a thread that might explain the situation, more device ID's requiring specific folders for FW.

http://lists.infradead.org/pipermail/ath10k/2015-August/005752.html

I'm using the Next Kernel, 4.3 rc3, and the chipset you have works fine, I compiled it using the 3rd section of these instructions. On;y exception is I did it on my desktop and did not move source to /usr/src/, which is what Linus recommends, then just install the header and image deb's with dpkg -i headers.deb FIRST

http://www.linuxquestions.org/questions/showthread.php?p=5414186

With a new kernel from; obtained here;
https://www.kernel.org/

Bob
Las Vegas

Revision history for this message
Brandon (blee-2009) wrote :

My wifi works! - Lenovo Edge 15 (168c:0041) - I followed Diego's steps with the new backports. Maybe one day I'll understand what happened. Thanks Diego!

Revision history for this message
Jeremy (wa113y3s) wrote :

I think this is what will work for now

sudo apt-get install build-essential linux-headers-$(uname -r) git
echo "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k_core.conf
wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/09/03/backports-20150903.tar.gz
tar -zxvf backports-20150903.tar.gz
cd backports-20150903
make defconfig-ath10k
make
sudo make install
git clone https://github.com/atondwal/ath10k-firmware.git
sudo cp -r /ath10k-firmware/ath10k/ /lib/firmware/
sudo cp -r /lib/firmware/ath10k/QCA6164/hw2.1 /lib/firmware/ath10k/QCA6174/

After a kernel update you will need to

cd backports-20150903
make clean
make defconfig-ath10k
make
sudo make install

Then reboot unless someone figures out how to do dkms with backports

Revision history for this message
Jeremy (wa113y3s) wrote :

I got a confirmation that my DKMS version works with kernel 3.19, it uses the backports-20150903 and atondwal firmware files

wget https://www.dropbox.com/s/nmgb5li6sd6i7ij/backath10k-dkms_2.0_all.deb
dpkg -i backath10k-dkms_2.0_all.deb

Revision history for this message
Balaji (baalaji-c) wrote :

Thanks Jeremy,

I just tried your backports version .. it is working fine without any hitches ..

$
 $ uname -a
Linux balaji-exp 3.19.0-30-generic #34~14.04.1-Ubuntu SMP Fri Oct 2 22:09:39 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
 $ sudo lshw -C network
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eth0
       version: 15
       serial: f0:76:1c:b9:0c:69
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:48 ioport:4000(size=256) memory:d1304000-d1304fff memory:d1300000-d1303fff
  *-network
       description: Wireless interface
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 20
       serial: ac:e0:10:2d:af:af
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=3.19.0-30-generic firmware=atheros-12.0.0.102-fw ip=192.168.1.37 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:54 memory:d1000000-d11fffff
 $
 $ sudo modinfo ath10k_pci
filename: /lib/modules/3.19.0-30-generic/updates/dkms/ath10k_pci.ko
firmware: ath10k/QCA6174/hw3.0/board.bin
firmware: ath10k/QCA6174/hw3.0/firmware-5.bin
firmware: ath10k/QCA6174/hw3.0/firmware-4.bin
firmware: ath10k/QCA6174/hw2.1/board.bin
firmware: ath10k/QCA6174/hw2.1/firmware-5.bin
firmware: ath10k/QCA6174/hw2.1/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/board.bin
firmware: ath10k/QCA988X/hw2.0/firmware-5.bin
firmware: ath10k/QCA988X/hw2.0/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/firmware-3.bin
firmware: ath10k/QCA988X/hw2.0/firmware-2.bin
firmware: ath10k/QCA988X/hw2.0/firmware.bin
license: Dual BSD/GPL
description: Driver support for Atheros QCA988X PCIe devices
author: Qualcomm Atheros
version: backported from () using backports
srcversion: 2C3D5FA5797C89E8231F86B
alias: pci:v0000168Cd00000040sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias: pci:v0000168Cd00000041sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends: ath10k_core,compat
vermagic: 3.19.0-30-generic SMP mod_unload modversions
parm: irq_mode:0: auto, 1: legacy, 2: msi (default: 0) (uint)
parm: reset_mode:0: auto, 1: warm only (default: 0) (uint)
 $

- Balaji

Revision history for this message
marc matthes (marc-matthes) wrote : Re: [Bug 1436940] Re: Atheros wifi 168c:0041(QCA6174) is not supported
Download full text (6.1 KiB)

Any tried this for centos 7?

Sent from my android device.

-----Original Message-----
From: Balaji <email address hidden>
To: <email address hidden>
Sent: Mon, 05 Oct 2015 10:12 PM
Subject: [Bug 1436940] Re: Atheros wifi 168c:0041(QCA6174) is not supported

Thanks Jeremy,

I just tried your backports version .. it is working fine without any
hitches ..

$
 $ uname -a
Linux balaji-exp 3.19.0-30-generic #34~14.04.1-Ubuntu SMP Fri Oct 2 22:09:39 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
 $ sudo lshw -C network
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eth0
       version: 15
       serial: f0:76:1c:b9:0c:69
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:48 ioport:4000(size=256) memory:d1304000-d1304fff memory:d1300000-d1303fff
  *-network
       description: Wireless interface
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 20
       serial: ac:e0:10:2d:af:af
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=3.19.0-30-generic firmware=atheros-12.0.0.102-fw ip=192.168.1.37 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:54 memory:d1000000-d11fffff
 $
 $ sudo modinfo ath10k_pci
filename: /lib/modules/3.19.0-30-generic/updates/dkms/ath10k_pci.ko
firmware: ath10k/QCA6174/hw3.0/board.bin
firmware: ath10k/QCA6174/hw3.0/firmware-5.bin
firmware: ath10k/QCA6174/hw3.0/firmware-4.bin
firmware: ath10k/QCA6174/hw2.1/board.bin
firmware: ath10k/QCA6174/hw2.1/firmware-5.bin
firmware: ath10k/QCA6174/hw2.1/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/board.bin
firmware: ath10k/QCA988X/hw2.0/firmware-5.bin
firmware: ath10k/QCA988X/hw2.0/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/firmware-3.bin
firmware: ath10k/QCA988X/hw2.0/firmware-2.bin
firmware: ath10k/QCA988X/hw2.0/firmware.bin
license: Dual BSD/GPL
description: Driver support for Atheros QCA988X PCIe devices
author: Qualcomm Atheros
version: backported from () using backports
srcversion: 2C3D5FA5797C89E8231F86B
alias: pci:v0000168Cd00000040sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias: pci:v0000168Cd00000041sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends: ath10k_core,compat
vermagic: 3.19.0-30-generic SMP...

Read more...

Revision history for this message
Gauri (tkgauri) wrote : Re: Atheros wifi 168c:0041(QCA6174) is not supported

I have installed kernel 4.3.0-rc4 from the sources mentioned by Bob(robert). My wifi card(qca61x4 - Lenovo-g50-80) still doesn't work. Can someone help?

o/p of uname -r:
4.3.0-rc4

when I tried to install headers I get following error:
E: Unable to locate package linux-headers-4.3.0-rc4

Revision history for this message
Jeremy (wa113y3s) wrote :

Gauri use this to see if they are already installed

ls /usr/src/ | grep 4.3

It may show linux-headers-4.3.0-rc4 as a result and if it doesn't go to the page you downloaded the linux-image from and download the file that begins with linux-headers-VERSION-generic all.deb and the one linux-headers-VERSION-generic ???.deb You want amd 64.deb for a 64 bit install or the i386 for a 32 bit install

Install the two header files the same way you did the linux-image file if the headers don't already exist

Revision history for this message
Gauri (tkgauri) wrote :

Jeremy,

 I could not locate header files in the git repository from where I downloaded the kernel source. After searching on web I have installed the header files using this source:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-rc4-unstable/

o/p of ls /usr/src/ | grep 4.3 now shows these headers installed:
linux-headers-4.3.0-040300rc4
linux-headers-4.3.0-040300rc4-generic

Still couldn't see "enable wifi" option after clicking networks icon. Is there anything else that I need to do in order to get my wifi card working?

Thanks in advance!

Revision history for this message
Jeremy (wa113y3s) wrote :

Gauri, try installing the firmware using

git clone https://github.com/atondwal/ath10k-firmware.git
sudo cp -r ath10k-firmware/ath10k/ /lib/firmware/
cd /lib/firmware/ath10k/QCA6164
sudo cp -r hw2.1/ /lib/firmware/ath10k/QCA6174/

Reboot

Revision history for this message
Patrick Lacasse (patrick-m-lacasse) wrote : Re: [Bug 1436940] Re: Atheros wifi 168c:0041(QCA6174) is not supported
Download full text (3.7 KiB)

Gauri,

  Is your problem related to my previous comment?
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1436940/comments/14

2015-10-09 10:40 GMT-04:00 Gauri <email address hidden>:

> Jeremy,
>
> I could not locate header files in the git repository from where I
> downloaded the kernel source. After searching on web I have installed
> the header files using this source:
>
> http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-rc4-unstable/
>
> o/p of ls /usr/src/ | grep 4.3 now shows these headers installed:
> linux-headers-4.3.0-040300rc4
> linux-headers-4.3.0-040300rc4-generic
>
> Still couldn't see "enable wifi" option after clicking networks icon. Is
> there anything else that I need to do in order to get my wifi card
> working?
>
> Thanks in advance!
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1436940
>
> Title:
> Atheros wifi 168c:0041(QCA6174) is not supported
>
> Status in linux package in Ubuntu:
> Confirmed
> Status in linux source package in Vivid:
> Confirmed
> Status in linux source package in Wily:
> Confirmed
>
> Bug description:
> The atheros wireless device (168c:0041) isn't supported by the
> ath10k_pci kernel driver.
>
> Found in several laptop models:
>
> Lenovo Z70
> Lenovo G50-45
> Lenovo G50-80
> Lenovo Edge 15
> Lenovo Yoga 3 11
> Lenovo Flex 3-1470
> Samsung ATIV Book 9 NP930X2K
>
> ProblemType: BugDistroRelease: Ubuntu 15.04
> Package: linux-image-3.19.0-9-generic 3.19.0-9.9
> ProcVersionSignature: Ubuntu 3.19.0-9.9-generic 3.19.1
> Uname: Linux 3.19.0-9-generic x86_64
> ApportVersion: 2.16.2-0ubuntu3
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: nicholas 1695 F.... pulseaudio
> /dev/snd/controlC1: nicholas 1695 F.... pulseaudio
> CurrentDesktop: Unity
> Date: Thu Mar 26 09:47:16 2015
> HibernationDevice: RESUME=UUID=5b068cd8-e60a-49b9-a88e-1581bb6b3dc1
> InstallationDate: Installed on 2015-03-25 (1 days ago)
> InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64
> (20141022.1)
> IwConfig:
> eth0 no wireless extensions.
>
> lo no wireless extensions.
> Lsusb:
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 004: ID 0cf3:e300 Atheros Communications, Inc.
> Bus 001 Device 003: ID 5986:0652 Acer, Inc
> Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129
> Card Reader Controller
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> MachineType: LENOVO 80E5
> ProcFB: 0 inteldrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-9-generic
> root=UUID=e52867c5-0b50-42fb-8288-f30765f926c5 ro quiet splash vt.handoff=7
> RelatedPackageVersions:
> linux-restricted-modules-3.19.0-9-generic N/A
> linux-backports-modules-3.19.0-9-generic N/A
> linux-firmware 1.143SourcePackage: linux
> UpgradeStatus: Upgraded to vivid on 2015-03-26 (0 days ago)
> dmi.bios.date: 06/20/2014
> dmi.bios.vendor: LENOVO
> dmi.bios.version: B0CN69WW
> dmi.board.asset.tag: NO Asset Tag
...

Read more...

Revision history for this message
OtterMatt (letuotter) wrote : Re: Atheros wifi 168c:0041(QCA6174) is not supported
Download full text (3.3 KiB)

Jeremy,

I can not thank you enough for your instructions. I made sure I was running the 4.1.6 firmware, went through the steps you provided, and it worked perfectly. My wireless network is currently stable and functional.

otter@otterlappy:~$ uname -a
Linux otterlappy 4.1.6-040106-generic #201508170230 SMP Mon Aug 17 06:32:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
otter@otterlappy:~$ sudo lshw -C network
  *-network
       description: Wireless interface
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlan1
       version: 20
       serial: ac:e0:10:2d:8c:3b
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=4.1.6-040106-generic firmware=atheros-12.0.0.102-fw ip=192.168.1.68 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:39 memory:f0800000-f09fffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eth0
       version: 10
       serial: 68:f7:28:cb:5e:a2
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.1.71 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:35 ioport:2000(size=256) memory:f0c04000-f0c04fff memory:f0c00000-f0c03fff
otter@otterlappy:~$ sudo modinfo ath10k_pci
filename: /lib/modules/4.1.6-040106-generic/updates/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
firmware: ath10k/QCA6174/hw3.0/board.bin
firmware: ath10k/QCA6174/hw3.0/firmware-5.bin
firmware: ath10k/QCA6174/hw3.0/firmware-4.bin
firmware: ath10k/QCA6174/hw2.1/board.bin
firmware: ath10k/QCA6174/hw2.1/firmware-5.bin
firmware: ath10k/QCA6174/hw2.1/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/board.bin
firmware: ath10k/QCA988X/hw2.0/firmware-5.bin
firmware: ath10k/QCA988X/hw2.0/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/firmware-3.bin
firmware: ath10k/QCA988X/hw2.0/firmware-2.bin
firmware: ath10k/QCA988X/hw2.0/firmware.bin
license: Dual BSD/GPL
description: Driver support for Atheros QCA988X PCIe devices
author: Qualcomm Atheros
version: backported from Linux (next-20150903-0-ga672f92) using backports backports-20150903-0-g7b34ea2
srcversion: 2C3D5FA5797C89E8231F86B
alias: pci:v0000168Cd00000040sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias: pci:v0000168Cd00000041sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends: ath10k_core,compat
vermagic: ...

Read more...

Revision history for this message
Gauri (tkgauri) wrote :

Jeremy,

Yes. My laptop model is Lenovo G50-80 and wifi is neither hard blocked nor soft blocked, headers are in place, still not able to use wifi.

Although, not sure about the patch you are talking about in that comment.

Revision history for this message
Jeremy (wa113y3s) wrote :

Gauri, I would suspect your kernel supports the card without patch, check

modinfo ath10k_pci | grep 0041

if that returns: alias: pci:v0000168Cd00000041sv*sd*bc*sc*i*
All you need then is firmware from comment #81 and to set the parameter on ath10k_core with

echo "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k_core.conf

Reboot

Revision history for this message
sidharth (sidharthkmanohar) wrote :

I finally got WiFi working on my Lenovo G50-80, following the instructions in #81. Thanks Jeremy and Diego(#28, #34, #40).

uname -r
4.3.0-040300rc4-generic

lshw -C network
*-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eth0
       version: 10
       serial: 68:f7:28:aa:41:ec
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:48 ioport:4000(size=256) memory:d1304000-d1304fff memory:d1300000-d1303fff
  *-network
       description: Wireless interface
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 20
       serial: d0:53:49:e7:e5:01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=4.3.0-040300rc4-generic firmware=atheros-12.0.0.102-fw ip=192.168.0.103 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:52 memory:d1000000-d11fffff

Revision history for this message
Gauri (tkgauri) wrote :

Jeremy,

Just so you know, I have been cracking my head for past 77 days in order to fix this issue. And, believe me you, I have tried everything that I could lay my hands on. Nothing worked, I tried various versions of ubuntu, mint, debian etc, tried different patches, and what not.. I have cried too(that didn't help either.. :P)

Then, entered you. I don't know how to thank you any less. I guess, you are the hero, people like me who are stuck, deserve and not the hero that the community needs right now.. ;)

BTW, if it's still not clear, your solution worked and I'hv got a working wifi on my machine.. :)
Keep the good work up!

Revision history for this message
aligator (zenit33) wrote :

Hello!
I have a laptop, model is Acer Aspire V3-574G-55SG.
I following the instructions in #81.
And wifi does not work.

03:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 20)

user@user-desktop:~$ rfkill list
1: acer-wireless: Wireless LAN
 Soft blocked: no
 Hard blocked: no

Help me, Please.

Revision history for this message
aligator (zenit33) wrote :

user@user-leptop:~$ lspci -k | grep -iA2 net
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
    Subsystem: Acer Incorporated [ALI] Device 102e
    Kernel driver in use: r8169
03:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 20)
    Subsystem: Foxconn International, Inc. Device e08e
    Kernel driver in use: ath10k_pci

Revision history for this message
Jeremy (wa113y3s) wrote :

If you followed just the instructions from comment 81, you also need

sudo apt-get install build-essential linux-headers-$(uname -r) git
echo "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k_core.conf
wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/09/03/backports-20150903.tar.gz
tar -zxvf backports-20150903.tar.gz
cd backports-20150903
make defconfig-ath10k
make
sudo make install

Then reboot

Revision history for this message
Rinfinity (rinfinityplus) wrote :

The atheros wireless device (168c:0042) Version: 30 too has a fix now: http://www.spinics.net/lists/linux-wireless/msg143036.html
Could Jeremy and Diego be kind enough to tell us how to go about installing this patch.

Revision history for this message
aligator (zenit33) wrote :

Jeremy, thank you very mutch.
Your post #90 did help me a lot of.
My Wifi works now is good.

Revision history for this message
Jeremy (wa113y3s) wrote :

aligator

I tried patching the backports to use that info and it didn't work with

Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30)
    Subsystem: Foxconn International, Inc. Device [105b:e09a]

Revision history for this message
Rinfinity (rinfinityplus) wrote :

Jeremy,
Ref: your reply post# 93 to alligator.

For the 168:0042 (rev 30) have you tried using the link I've provided? It leads to kvolo's github page where you can find the corresponding firmware.

Revision history for this message
Francesco Pasa (francescopasa) wrote :

I have a levovo u31-70 with the same problem. I have tried to follow the steps in the posts #75 #81 #85 and #90 but it didn't work.

I can now see the wireless in the menu, I managed to connect the first time for 5 seconds and then the wireless stopped showing the available connections. Rebooting did not help.

I have Xubuntu 15.10 with kernel 4.2.0, and I think that this is the problem, right? If I understood correctly the dkms works with kernel 4.1... Can someone please help me?

Revision history for this message
Francesco Pasa (francescopasa) wrote :

I runned again

    echo "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k_core.conf

and rebooted and now it works. I'm not sure why... I get between 0 and 57% packet loss with ping.

description: updated
Revision history for this message
Jeremy (wa113y3s) wrote :

Rinfinity

I used that patch on backports-20150903 with kvalo's firmware to try to get it working for a poster on ubuntuforums, post is http://ubuntuforums.org/showthread.php?t=2300861

Miles Krell (mileskrell)
summary: - Atheros wifi 168c:0041(QCA6174) is not supported
+ Atheros wifi 168c:0041(QCA6164) is not supported
Revision history for this message
Martín Coll (martingonzalezcoll) wrote : Re: Atheros wifi 168c:0041(QCA6164) is not supported

I can confirm that instructions in #74 work for the Lenovo Yoga 3 11'.

I'm using kernel 4.3 from http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-wily/ because it has a touchpad fix.
I also used the backports file from https://www.kernel.org/pub/linux/kernel/projects/backports/2015/10/13/backports-20151013.tar.gz

$ uname -r
4.3.0-040300-generic

$ lspci -nnk | grep Atheros
02:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)

Revision history for this message
Isaac Towns (zelec) wrote :

Any word on when and or if these fixes will ever end up in the upstream kernel?

Also anyone know how to extract the deb file of the DKMS version? every time I attempt so I can get a point of reference for an archlinux version of the package, both xarchiver and file-roller extract blank files plus the driver folder under the ath10k folder in the src dir is completly empty.

Revision history for this message
Jeremy (wa113y3s) wrote :

Isaac Towns

What device do you have? The 0041 or 0042?

Revision history for this message
whizkidraj (whizkidraj) wrote :

Hello all. First of all thank you coz I had the same problem and then I came across this thread and from then on, after following the steps and entering the commands, wifi is working on my laptop Acer Apsire E5-573G-563K with ubuntu 14.04.3 LTS installed on it. Actually I have installed 4 OSes on my laptop. Windows 10 pro x64, ubuntu, Fedora 23 and Kali Linux 2.0.
So, now that I have got wifi working on ubuntu, can anyone please help me to get my wifi working on fedora and kali linux. I have the same wifi driver atheros 0042 (rev 30). Please anyone help.. like what changes should I make to the commands above for fedora and for kali linux. I'm new to linux but I'm an advanced level user when it comes to using computer. In Windows, I can do it all. But I have just installed these 4 Oses especially to learn linux and hacking. Please post the commands for fedora and kali. I tried YUM instead of apt-get but yum doesn't work in new fedora version so I installed yum package, switched to root user and still, the first command doesn't work i.e -
sudo apt-get install build-essential linux-headers-$(uname -r) git

and it shows following output - Last metadata expiration check performed 2:01:25 ago on Wed Nov 11 18:51:09 2015.
No package build-essential available.
No package linux-headers-4.2.3-300.fc23.x86_64 available.
Package git-2.5.0-1.fc23.x86_64 is already installed, skipping.
Error: Unable to find a match.

Please post the commands for fedora and kali linux. Thank you :)

Revision history for this message
S Krishnaswamy (mkukrishna) wrote :

Sidharth and Jeremy

I have a lenovo G50-80 with Qualcomm Atheros 168c:0041 (rev 20) device

I have a dual boot - windows 7 and ubuntu 15.10

I updated to the kernel to 4.3.0-040300-generic

I followed the directions in #81 , #85 and #90

lshw -C network shows the driver ath10k_pci for the Network Controller but does not show logical name and serial number of the device

iwconfig gives

enp2s0 no wireless extensions
lo no wireless extensions

I do not get wifi

please help

Revision history for this message
Martín Coll (martingonzalezcoll) wrote :

@mkukrishna, I had luck with #74 (see #98 for reference). Give it a try!

Revision history for this message
Vlad Firoiu (vladfi2) wrote :

I followed the firmware and backports instructions, but after reboot the wireless would fail to connect to any network. According to dmesg, the firmware was crashing, but with a different error message than the one described here. I followed the suggestion here http://lists.infradead.org/pipermail/ath10k/2015-August/005909.html and that has fixed the issue. Wifi is now working just fine!

Revision history for this message
Diego (d13g0) wrote :

Hi,

just wanted to let you know that my instructions still worked for me using a new kernel (4.2).

As always, I used the firmware from:

https://github.com/atondwal/ath10k-firmware/tree/master/ath10k/QCA6164/hw2.1

To replace the one in /lib/firmware/ath10k/QCA6174/ (note the folder is 6174 and not 6164). I used the latest backports of November 20 (without patching any code this time).

I have Kernel 4.2.0-1-amd64 right now in Debian. I see some people also succeeded with Kernel 4.3 above but I don't want to download that kernel yet (I'm waiting for Debian to release it).

I'm hoping maybe the firmware will be added to the official packages at some point.

Hope it helps,
Diego

Revision history for this message
marc matthes (marc-matthes) wrote : Re: [Bug 1436940] Re: Atheros wifi 168c:0041(QCA6164) is not supported
Download full text (3.8 KiB)

Would these work on centos 7 on a HP G-50 machine.

Sent from my android device.

-----Original Message-----
From: Diego <email address hidden>
To: <email address hidden>
Sent: Sun, 06 Dec 2015 3:09 PM
Subject: [Bug 1436940] Re: Atheros wifi 168c:0041(QCA6164) is not supported

Hi,

just wanted to let you know that my instructions still worked for me
using a new kernel (4.2).

As always, I used the firmware from:

https://github.com/atondwal/ath10k-
firmware/tree/master/ath10k/QCA6164/hw2.1

To replace the one in /lib/firmware/ath10k/QCA6174/ (note the folder is
6174 and not 6164). I used the latest backports of November 20 (without
patching any code this time).

I have Kernel 4.2.0-1-amd64 right now in Debian. I see some people also
succeeded with Kernel 4.3 above but I don't want to download that kernel
yet (I'm waiting for Debian to release it).

I'm hoping maybe the firmware will be added to the official packages at
some point.

Hope it helps,
Diego

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1436940

Title:
  Atheros wifi 168c:0041(QCA6164) is not supported

Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Vivid:
  Confirmed
Status in linux source package in Wily:
  Confirmed

Bug description:
  The atheros wireless device (168c:0041) isn't supported by the
  ath10k_pci kernel driver.

  Found in several laptop models:

  Lenovo Z70
  Lenovo G50-45
  Lenovo G50-80
  Lenovo Edge 15
  Lenovo Yoga 3 11
  Lenovo Flex 3-1470
  Lenovo U31-70
  Samsung ATIV Book 9 NP930X2K

  ProblemType: BugDistroRelease: Ubuntu 15.04
  Package: linux-image-3.19.0-9-generic 3.19.0-9.9
  ProcVersionSignature: Ubuntu 3.19.0-9.9-generic 3.19.1
  Uname: Linux 3.19.0-9-generic x86_64
  ApportVersion: 2.16.2-0ubuntu3
  Architecture: amd64
  AudioDevicesInUse:
   USER PID ACCESS COMMAND
   /dev/snd/controlC0: nicholas 1695 F.... pulseaudio
   /dev/snd/controlC1: nicholas 1695 F.... pulseaudio
  CurrentDesktop: Unity
  Date: Thu Mar 26 09:47:16 2015
  HibernationDevice: RESUME=UUID=5b068cd8-e60a-49b9-a88e-1581bb6b3dc1
  InstallationDate: Installed on 2015-03-25 (1 days ago)
  InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
  IwConfig:
   eth0 no wireless extensions.

   lo no wireless extensions.
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 004: ID 0cf3:e300 Atheros Communications, Inc.
   Bus 001 Device 003: ID 5986:0652 Acer, Inc
   Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: LENOVO 80E5
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-9-generic root=UUID=e52867c5-0b50-42fb-8288-f30765f926c5 ro quiet splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.19.0-9-generic N/A
   linux-backports-modules-3.19.0-9-generic N/A
   linux-firmware 1.143SourcePackage: linux
  UpgradeStatus: Upgraded to vivid on 2015-03-26 (0 days ago)
  dmi.bios.date: 06/20/2014
  ...

Read more...

Revision history for this message
Ross Patterson (rossp) wrote : Re: Atheros wifi 168c:0041(QCA6164) is not supported

I couldn't get any of the above workarounds to work for me on a Lenovo Yoga 3 11". But the following StackExchange answer did work for me:

http://askubuntu.com/a/621491/16083

Revision history for this message
Martín Coll (martingonzalezcoll) wrote :

I just installed this kernel and it's working correctly: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4-rc5-wily/

No backports required!

Revision history for this message
Adam (adamrehal) wrote :

@Martin: Thats great news! Can others confirm?

Also, please provide detailed install instructions so that people finding this thread can easily fix the problem.

Revision history for this message
kartikhegde (karthdz) wrote :

Hi,

I am using Lenovo g50-80 model. I have ath10k-QCA988X card (Most of them here have QCA6164. Not sure if same procedure can be used for QCA988X also ?). I am unable to access WiFi network with any of the versions of the Ubuntu. Can someone please help me ?

Revision history for this message
Martín Coll (martingonzalezcoll) wrote :

@adamrehal

1. download the three deb packages that correspond to your architecture (the *all* package, then *most commonly* the generic+amd64 ones)
2. open a terminal and cd to the Downloads folder
3. install the packages with dpkg (e.g. sudo dpkg -i *-4.4.0-040400rc5*.deb)
4. restart and make sure that you're using the new kernel (it's probably using it by default, else check your bootloader config)

by the way, can anyone else confirm?

Revision history for this message
Ana Noriega (ananori99) wrote :

Hi, I tried to install 4.4.0-040400rc5 as said but got a blank screen on Lenovo u31-70.
Recovery mode gave amoung other things
[ end Kernel Panic - not syncing: No working init found.]

I think I may have done something wrong, can you give more detailed instructions?

Revision history for this message
Vlad Firoiu (vladfi2) wrote :

With the new kernel (4.4.0-040400rc5-generic) I get the same error as before, namely a firmware crash.

[ 4.633635] ath10k_pci 0000:02:00.0: firmware register dump:
[ 4.633640] ath10k_pci 0000:02:00.0: [00]: 0x05010000 0x000015B3 0x000A012D 0x00955B31
[ 4.633644] ath10k_pci 0000:02:00.0: [04]: 0x000A012D 0x00060330 0x00000016 0x8B805006
[ 4.633646] ath10k_pci 0000:02:00.0: [08]: 0x00000000 0x00400000 0x00400600 0x00000001
[ 4.633648] ath10k_pci 0000:02:00.0: [12]: 0x00000009 0x00000000 0x00931C61 0x00931C7D
[ 4.633651] ath10k_pci 0000:02:00.0: [16]: 0x0096BDBC 0x009286B6 0x00000000 0x00000000
[ 4.633653] ath10k_pci 0000:02:00.0: [20]: 0x400A012D 0x0040E2B0 0x00955A00 0x00404590
[ 4.633655] ath10k_pci 0000:02:00.0: [24]: 0x809287D9 0x0040E310 0x7A5087F8 0xC00A012D
[ 4.633657] ath10k_pci 0000:02:00.0: [28]: 0x809288D7 0x0040E340 0x00000000 0xFFF08040
[ 4.633659] ath10k_pci 0000:02:00.0: [32]: 0x809290FE 0x0040E360 0x00400000 0x00400600
[ 4.633661] ath10k_pci 0000:02:00.0: [36]: 0x80929205 0x0040E380 0x00000000 0x00400600
[ 4.633663] ath10k_pci 0000:02:00.0: [40]: 0x40928024 0x0040E3B0 0x0040D3D0 0x0040D3D0
[ 4.633665] ath10k_pci 0000:02:00.0: [44]: 0x00000000 0x0040E3D0 0x009BB001 0x00040020
[ 4.633667] ath10k_pci 0000:02:00.0: [48]: 0x00401BF0 0x00000001 0x00404B9C 0x00400000
[ 4.633669] ath10k_pci 0000:02:00.0: [52]: 0x40928024 0x0040E3B0 0x0040D3D0 0x0040D3D0
[ 4.633671] ath10k_pci 0000:02:00.0: [56]: 0x02BA6900 0x62F85956 0xCDDFFDA4 0x7D9CA6DA

Revision history for this message
Vlad Firoiu (vladfi2) wrote :

Rebooted again with atondwal's board.bin and kvalo's firmware-5.bin and now it appears to work! Will the correct files eventually be included in the kernel or other ubuntu package?

Revision history for this message
Oscar Mekler (oscar-mekler) wrote :

I installed kernel 4.4.0-040400rc5 on an Alienware 17 R3 and it's still not working.

Revision history for this message
Тиллахонов Бехзод (myrubapa) wrote :

I try all method in comments but wifi still not working. Any body can running wifi in lenovo u31-70?

03:00.0 Network controller: Qualcomm Atheros Device 0041 (rev 20)

for command modinfo ath10k_pci | grep 0041 i get empty response
----------------------------------------------------------------------------------------------------------------
filename: /lib/modules/4.2.3-300.fc23.x86_64/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko.xz
firmware: ath10k/QCA6174/hw3.0/board.bin
firmware: ath10k/QCA6174/hw3.0/firmware-5.bin
firmware: ath10k/QCA6174/hw3.0/firmware-4.bin
firmware: ath10k/QCA6174/hw2.1/board.bin
firmware: ath10k/QCA6174/hw2.1/firmware-5.bin
firmware: ath10k/QCA6174/hw2.1/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/board.bin
firmware: ath10k/QCA988X/hw2.0/firmware-5.bin
firmware: ath10k/QCA988X/hw2.0/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/firmware-3.bin
firmware: ath10k/QCA988X/hw2.0/firmware-2.bin
firmware: ath10k/QCA988X/hw2.0/firmware.bin
license: Dual BSD/GPL
description: Driver support for Atheros QCA988X PCIe devices
author: Qualcomm Atheros
alias: pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends: ath10k_core
intree: Y
vermagic: 4.2.3-300.fc23.x86_64 SMP mod_unload
signer: Fedora kernel signing key
sig_key: 7F:1E:77:75:D7:63:41:12:35:9E:58:50:8D:E4:8F:D4:CF:CE:0F:B6
sig_hashalgo: sha256
parm: irq_mode:0: auto, 1: legacy, 2: msi (default: 0) (uint)
parm: reset_mode:0: auto, 1: warm only (default: 0) (uint)
---------------------------------------------------------------------------------------------------------

after run command modprobe ath10k_pci in dmesg showing this log this what is mean?
------------------------------------------------------------------------------------------------------
[ 91.537920] cfg80211: World regulatory domain updated:
[ 91.537924] cfg80211: DFS Master region: unset
[ 91.537925] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 91.537927] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 91.537929] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 91.537931] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 91.537933] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 91.537935] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 91.537937] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 91.537939] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 91.537940] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
----------------------------------------------------------------------------------------------------------

Revision history for this message
Тиллахонов Бехзод (myrubapa) wrote :

Finally wifi work. It's all uefi i disable him

Instruction

1. Disable uefi in bios https://drive.google.com/open?id=0BwOE0eOE-p4OMGg4TkxHV0Z3WVk and reinstall os :)

2. After running this command "modinfo ath10k_pci | grep 0041" you see this line "alias: pci:v0000168Cd00000041sv*sd*bc*sc*i*" it's okay you kernel support wireless otherway
go http://linuxwireless.org/en/users/Drivers/ath10k/backports/ execute instruction step by step.

https://drive.google.com/open?id=0BwOE0eOE-p4OR3N1WWh5MV9vN2s In my case i can see load kernel with compat-drivers

http://askubuntu.com/questions/607707/ath10k-installation/607982#answer-607982

3. Install firmware
 git clone https://github.com/atondwal/ath10k-firmware.git
 sudo cp -r ath10k-firmware/ath10k/ /lib/firmware/
 cd /lib/firmware/ath10k/QCA6164
 sudo cp -r hw2.1/ /lib/firmware/ath10k/QCA6174/
 sudo echo "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k_core.conf

 Reboot

FILES
lspci https://drive.google.com/open?id=0BwOE0eOE-p4OR2hhMG9oRzlrc0U
lshw https://drive.google.com/open?id=0BwOE0eOE-p4OT3dHZzRaMXZrUTg
iwconfig https://drive.google.com/open?id=0BwOE0eOE-p4OTWJwNzNadUo5UjA
dmesg https://drive.google.com/open?id=0BwOE0eOE-p4OTlBqOWlDY1I4R1E

Thanks all

Revision history for this message
Adam (adamrehal) wrote :

Great job myrubapa!

I managed to get this working by following his question on askubuntu: http://askubuntu.com/a/678244/487014

What I did was:

1. wget https://www.dropbox.com/s/nmgb5li6sd6i7ij/backath10k-dkms_2.0_all.deb
2. dpkg -i backath10k-dkms_2.0_all.deb
3. Reeboot
4. apt-get install -f

This basically installs a DKMS made from a backport. I did get errors during step 2 but step 3 and 4 seemed to fix it.

Revision history for this message
Ana Noriega (ananori99) wrote :

I get:
ERROR (dkms apport): kernel package linux-headers-4.2.0-22-generic is not supported
Error! Bad return status for module build on kernel: 4.2.0-22-generic (x86_64)
Consult /var/lib/dkms/backath10k/2.0/build/make.log for more information.

even with sudo apt-get install -f, what kernel do you that this worked for have?
anyway to get wifi with uefi?

Revision history for this message
Тиллахонов Бехзод (myrubapa) wrote :

ananori99 try install linux header "sudo apt-get install linux-headers-$(uname -r)-generic"

Revision history for this message
Rui Sereno (sereno-rui) wrote :

Please fix this bug.

Revision history for this message
Amrit Verma (amrit2101) wrote :

Please fix this issue.

Revision history for this message
Jeremy (wa113y3s) wrote :

Ana, please post the result of

cat /var/lib/dkms/backath10k/2.0/build/make.log

Revision history for this message
Bradford Bonanno (bwbonanno) wrote :
Download full text (3.5 KiB)

I have a very similar problem to Ana. Here is what I get for

cat/var/lib/dkms/backath10k/2.0/build/make.log

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

DKMS make.log for backath10k-2.0 for kernel 4.2.0-25-generic (x86_64)
Wed Jan 27 13:02:52 EST 2016
make -C /lib/modules/4.2.0-25-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.2.0-25-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:105: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: 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),
                                           ^
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:1398: 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.2.0-25-generic'
Makefile:15: recipe for target 'all' failed
make: *** [all] Error 2
------------------------------------------------------...

Read more...

Revision history for this message
Neo_Rex (slorio) wrote :

I have Lenovo g50-45 also. Wifi internal not working. I will install anything required to test. I am fully backed up. How can I help?

Revision history for this message
Cows (cows) wrote :

Hope this helps someone:

I had Xubuntu 15.04, and the steps in Post #118 worked for me.

Upon upgrading to Xubuntu 15.10, the WiFi card was no longer recognized. Retrying the steps in Post #118 resulted in error messages.

Following the steps in Post #81 and #90 did fix my Wifi.

Thank you all of you for your help!

Revision history for this message
Frane (franemajic) wrote :

I have Lenovo G50-80 with Qualcomm Atheros Device [168c:0041] (rev 20) with Ubuntu 15.10.

I've done comments #81 and then #90. These worked for me.

Thank you Jeremy! Thank you all!

Miles Krell (mileskrell)
summary: - Atheros wifi 168c:0041(QCA6164) is not supported
+ Qualcomm Atheros QCA6164 802.11ac Wireless Network Adapter [168c:0041]
+ is not supported
Miles Krell (mileskrell)
description: updated
description: updated
Miles Krell (mileskrell)
Changed in linux-firmware (Ubuntu):
status: New → Confirmed
no longer affects: linux-firmware (Ubuntu)
no longer affects: linux-firmware (Ubuntu Vivid)
no longer affects: linux-firmware (Ubuntu Wily)
Changed in linux-firmware (Ubuntu):
status: New → Confirmed
Miles Krell (mileskrell)
description: updated
Revision history for this message
Jeremy (wa113y3s) wrote :

Bradford Bonanno
I didn't have a 4.2 kernel installed when I created that dkms deb package and that is why it doesn't build

You will likely have to use the backports, install firmware from atondwal github site and set the skip_otp parameter

Miles Krell (mileskrell)
description: updated
description: updated
Revision history for this message
dagny (dtag1000) wrote :

whatever you do, if you are dualbooting, do not use these drivers.

for some reason, if you put them in the firmware file like the guide says, when you reboot, it deletes the whole dualboot partition.

major bug.

Revision history for this message
Miles Krell (mileskrell) wrote :

dagny, could you elaborate? I find it highly unlikely that adding firmware files for this card could have deleted a partition from a drive on your computer. Could your problem have something to do with the kernel you're using?

Revision history for this message
Limeth (limeth) wrote :

I have made a script that patches this incapability for the Lenovo U31-70 laptop. Works on elementary OS, should work on any Ubuntu 14.04. GitHub repository: https://github.com/Limeth/lenovo-u31-70-patches

Steps:

git clone https://github.com/Limeth/lenovo-u31-70-patches.git
cd lenovo-u31-70-patches/wireless-adapter-patch
chmod +x ./auto.sh
./auto.sh

Revision history for this message
Nithya Hariharan (nithyan-hariharan) wrote :

I have a Lenovo G50-45 (QCA6164 Wireless network adapter) with Ubuntu 15.10 (Kernel 4.2) - fully updated as of 17 March 2016. I tried following the steps given under "How to Get this Card to Work:" in the Bug Description. lshw -C network showed QCA6164 as "Unclaimed".

Then following steps in #81 and #90 finally made the card work!!!

Thank you Jeremy!!! Considering my absolute zero knowledge of any kind of programming, the steps were really clear enough that I could follow them and make things work for me :)

Revision history for this message
janl (janl) wrote :

New Acer V3-372 laptop with Xenial Kubuntu. Non-working wifi. Hit google, find this ticket. Installed the Kvalo master firmware bundle and wifi worked right away.

Suggest inclusion of kvalo master bundle in Xenial.

Revision history for this message
Miles Krell (mileskrell) wrote :

Nithya, sorry about the guide. I forgot that the firmware files have their version number in their names, so they need to be renamed before they'll work. The guide has been updated to reflect this.

I'd appreciate if someone would try following the updated guide and telling me if it works now.

description: updated
Revision history for this message
AndyP (andy-gpshelp) wrote :

Hi, I have a brand new Acer F5-571 with a qualcomm atheros device and the wireless doesn't work. I removed windows10 and installed the latest ubuntu-mate wily 15.10 (same issue in mint 17.3). I'm somewhat of a newbie so please be gentle. I have tried a number of the points in this bug report to no avail, posts 81/90, the intro notes and others have all been tried. comment 118 didnt work, for some reason dkms would not install.
Kernel 4.2.0-34-generic
sudo lshw -C network
*-network UNCLAIMED
       description: Network controller
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 30
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:c1000000-c11fffff
lspci : 03:00.0 Network controller: Qualcomm Atheros Device 0042 (rev 30)

Really need to get this wireless card working. Suggestions? If so please step by step, don't assume I know how to do stuff.

Revision history for this message
AndyP (andy-gpshelp) wrote :

Just to clarify, the guide at the beginning of this report didn't work.

Revision history for this message
Miles Krell (mileskrell) wrote :

AndyP, thanks for telling me. I'd really like to reinstall Ubuntu and *then* follow my own guide to see if it works, but I don't want to do this with 16.04 right around the corner. Once it's released, I'll do this and get back to you guys.

I can tell you that I'm not using backports, as I just installed kernel 4.5 a few days ago, and the files in my /lib/firmware/ath10k were all deleted and then replaced following the steps in the guide. I'm also not using any of the dkms stuff that people have talked about for this card.

I guess there's still something I missed. Could you post the output of "modinfo ath10k_pci"?

Revision history for this message
Miles Krell (mileskrell) wrote :

Actually, hold on. Could you instead post the output of "lspci -nnk"? I think you might be using a different card.

Revision history for this message
Corey Taylor (feeltherussian) wrote :

As at March 18th 2016, confirming that following the guide at the top of the page as well as the Backports method as described at Comment #90 fixed the problem and wifi now works on my Acer Aspire V17. Have attached relevant output from lspci and modinfo confirming h/w configuration for those interested in comparing with their machines.

Revision history for this message
AndyP (andy-gpshelp) wrote :

Thanks Miles, output posted here: (last 2 lines relevant I think, but not sure exactly the part you wanted so excuse pasting all)

00:00.0 Host bridge [0600]: Intel Corporation Broadwell-U Host Bridge -OPI [8086:1604] (rev 09)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
 Kernel driver in use: bdw_uncore
00:02.0 VGA compatible controller [0300]: Intel Corporation Broadwell-U Integrated Graphics [8086:1616] (rev 09)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
 Kernel driver in use: i915
00:03.0 Audio device [0403]: Intel Corporation Broadwell-U Audio Controller [8086:160c] (rev 09)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
 Kernel driver in use: snd_hda_intel
00:14.0 USB controller [0c03]: Intel Corporation Wildcat Point-LP USB xHCI Controller [8086:9cb1] (rev 03)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
 Kernel driver in use: xhci_hcd
00:16.0 Communication controller [0780]: Intel Corporation Wildcat Point-LP MEI Controller #1 [8086:9cba] (rev 03)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
 Kernel driver in use: mei_me
00:1b.0 Audio device [0403]: Intel Corporation Wildcat Point-LP High Definition Audio Controller [8086:9ca0] (rev 03)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
 Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 [8086:9c90] (rev e3)
 Kernel driver in use: pcieport
00:1c.2 PCI bridge [0604]: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 [8086:9c94] (rev e3)
 Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 [8086:9c96] (rev e3)
 Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation Wildcat Point-LP USB EHCI Controller [8086:9ca6] (rev 03)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
 Kernel driver in use: ehci-pci
00:1f.0 ISA bridge [0601]: Intel Corporation Wildcat Point-LP LPC Controller [8086:9cc3] (rev 03)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
 Kernel driver in use: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] [8086:9c83] (rev 03)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
 Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation Wildcat Point-LP SMBus Controller [8086:9ca2] (rev 03)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
 Subsystem: Acer Incorporated [ALI] Device [1025:098a]
 Kernel driver in use: r8169
03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30)
 Subsystem: Lite-On Communications Inc Device [11ad:0806]

I bit the bullet and bought a TP-Link nano wireless adaptor for now, but would still like to solve this.

Revision history for this message
AndyP (andy-gpshelp) wrote :

..and for completeness the modinfo ath10k_pci output
andy@andy-Aspire-F5-571:~$ modinfo ath10k_pci
filename: /lib/modules/4.2.0-34-generic/updates/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
firmware: ath10k/QCA6174/hw3.0/board.bin
firmware: ath10k/QCA6174/hw3.0/firmware-5.bin
firmware: ath10k/QCA6174/hw3.0/firmware-4.bin
firmware: ath10k/QCA6174/hw2.1/board.bin
firmware: ath10k/QCA6174/hw2.1/firmware-5.bin
firmware: ath10k/QCA6174/hw2.1/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/board.bin
firmware: ath10k/QCA988X/hw2.0/firmware-5.bin
firmware: ath10k/QCA988X/hw2.0/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/firmware-3.bin
firmware: ath10k/QCA988X/hw2.0/firmware-2.bin
firmware: ath10k/QCA988X/hw2.0/firmware.bin
license: Dual BSD/GPL
description: Driver support for Atheros QCA988X PCIe devices
author: Qualcomm Atheros
version: backported from Linux (next-20150903-0-ga672f92) using backports backports-20150903-0-g7b34ea2
srcversion: 2C3D5FA5797C89E8231F86B
alias: pci:v0000168Cd00000040sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias: pci:v0000168Cd00000041sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends: ath10k_core,compat
vermagic: 4.2.0-34-generic SMP mod_unload modversions
parm: irq_mode:0: auto, 1: legacy, 2: msi (default: 0) (uint)
parm: reset_mode:0: auto, 1: warm only (default: 0) (uint)

Revision history for this message
Miles Krell (mileskrell) wrote :

AndyP, it looks like you do have a different card. Your card has the PCI ID of 168c:0042, while the QCA6164 has the PCI ID of 168c:0041.

According to http://forums.fedoraforum.org/showthread.php?t=305292, your card is the QCA9377. There's an open bug report for it at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1484159, but I think the following should work.

Your "modinfo ath10k_pci" output doesn't list the QCA9377 firmware files, but they are listed when *I* run this command. I have no idea when support for the card was added, but it's supported in 4.5 (what I'm running). It might be supported in backports somewhere, but the following should be simpler:

1) Install kernel 4.5. There's a guide at https://wiki.ubuntu.com/Kernel/MainlineBuilds.

2) Assuming you downloaded the firmware as explained in the above guide, you have to rename just one file like this:
    cd /lib/firmware/ath10k/QCA9377/hw1.0/
    sudo mv firmware-5.bin_WLAN.TF.1.0-00267-1 firmware-5.bin

If those steps worked for you, I'd put them in the bug report for the QCA9377. Good luck!

Revision history for this message
Miles Krell (mileskrell) wrote :

Forgot to say:

3) Reboot your computer. Run "sudo lshw -C network" to see if the card is recognized.

4) If it still isn't working, run "uname -r" to make sure you're running kernel 4.5.

Revision history for this message
AndyP (andy-gpshelp) wrote :

Miles, many thanks for the excellent instructions and analysis. As you may have realised, installing a new kernel is something I've not done before. Followed your lead (and that on the mainbuilds page and I now have a fully working system, using the internal wireless card, which is lightning quick! Thank you vm!
I will post your solution on the page for the other bug if that is ok?

THIS is the reason why I use Ubuntu!!! :)
Andy

PS. I learned a lot from this, so even better.

Revision history for this message
Miles Krell (mileskrell) wrote :

Great to hear! I actually didn't know anything AT ALL about this myself until I got my current laptop, less than a year ago. During that time, a lot of people have been working on these cards, and it's gotten easier and easier to get them to work.

Many thanks to Kalle Valo (for the ath10k firmware repo), Anish Tondwalkar (for his QCA6164 firmware), and Diego (for his guide which I originally followed).

Before I first got my card to work, I had to download the backports, apply a patch to them, compile them, install them, and download firmware from multiple places. Now, I just have to download ONE repository and move/rename a few files. All that's left is for someone to get this firmware included in Ubuntu.

As for your question, yes, feel free to spread the knowledge! It's great to have been able to help!

Revision history for this message
Miles Krell (mileskrell) wrote :

One last thing: I checked what you added to the other bug, and you'll want to add a link to kvalo's repo (https://github.com/kvalo/ath10k-firmware/).

Miles Krell (mileskrell)
description: updated
Revision history for this message
Miles Krell (mileskrell) wrote :

@AndyP Actually, I decided to just rewrite my guide for that card, as there were one or two things that were kind of unclear in the guide I wrote in the comments.

Miles Krell (mileskrell)
description: updated
Miles Krell (mileskrell)
description: updated
Revision history for this message
Patrick Lacasse (patrick-m-lacasse) wrote : Re: [Bug 1436940] Re: Qualcomm Atheros QCA6164 802.11ac Wireless Network Adapter [168c:0041] is not supported
Download full text (7.0 KiB)

I upgraded to Ubuntu 16.04 LTS (4.4.0-21-generic) and my wifi now works out
of the box.
I was using a usb-wifi since I bought my Lenovo Yoga 3 and I'm very happy
because the builtin wifi card is much better.

This bug is solved for me!

However, I can't tell if the firmware I copied last month are used or not.

2016-04-22 19:14 GMT-04:00 Miles Krell <email address hidden>:

> ** Description changed:
>
> - This card remains unsupported out-of-the-box by the ath10k_pci kernel
> - module. At this point, it looks like kvalo's ath10k-firmware repo just
> - needs to be pulled in.
> + The firmware for this card isn't included with Ubuntu. The firmware
> + provided in /lib/firmware/ath10k/QCA6174 in Ubuntu 16.04 crashes when
> + used with this card. This included firmware is likely for the QCA6174
> + instead of this card, the QCA6164.
> +
> + Yes, you read that right: the files for the QCA6164 need to be a folder
> + called QCA6174 in order for the card to work. Running "modprobe
> + ath10k_pci" shows that the ath10k_pci module looks for firmware in a
> + folder called QCA6174, but not in any folder called QCA6164.
> +
> + It seems that before this issue can be resolved, the ath10k_pci module
> + must be changed so that it recognizes firmware for both the QCA6164 and
> + QCA6174, in separate folders.
>
>
> ---------------------------------------------------------------------------
>
> HOW TO GET THIS CARD TO WORK:
>
> - As of February 26, 2016, this has become rather simple.
> + 1) Use a kernel that supports this card
>
> - According to the Linux Wireless wiki, support was added in kernel 4.2
> - Your kernel is probably fine, but if it's older than 4.2, see
> + According to WikiDevi, support for this card was added in kernel 4.3.
> + If you're running Ubuntu 16.04 LTS or above, your kernel is fine; skip
> + to the next step. If you're running Ubuntu 15.10 or below, see
> https://wiki.ubuntu.com/Kernel/MainlineBuilds for info on installing a
> - newer one.
> + newer kernel. Alternatively, you can use backports. This is a lot more
> + work, but if you really need to keep using an older kernel for some
> + reason, there are some guides to installing backports in the comments
> + below.
>
> - 1) Get the latest firmware from https://github.com/kvalo/ath10k-
> - firmware/archive/master.zip
> + 2) Get rid of the firmware folder for this card that's included with
> + Ubuntu:
>
> - 2) Unzip this file, and copy the contents of ath10k-firmware-master to
> - /lib/firmware/ath10k.
> + sudo rm -r /lib/firmware/ath10k/QCA6174/
>
> - 3) Rename two of the firmware files like so:
> - cd /lib/firmware/QCA6174/hw2.1
> + 3) Download the latest firmware:
> +
> + wget https://github.com/kvalo/ath10k-firmware/archive/master.zip
> +
> + 4) Unzip the downloaded file. Inside the ath10k-firmware-master folder
> + is a folder named QCA6174. Copy the QCA6174 folder to
> + /lib/firmware/ath10k:
> +
> + unzip master.zip
> + sudo cp -r ath10k-firmware-master/QCA6174/ /lib/firmware/ath10k/
> +
> + 5) Rename two of the firmware files like so:
> +
> + cd /lib/firmware/ath10k/QCA6174/hw2.1/
> sudo mv firmware-5.bin_SW_RM.1.1.1-00157-QCARMSWPZ...

Read more...

Revision history for this message
Francesco Pasa (francescopasa) wrote :

I just updated to xubuntu 16.04 and it did not work out of the box. However the folder QCA6164 in /lib/firmware/ath10k is already there and I got it to work by simple renaming the folders:

sudo mv /lib/firmware/ath10k/QCA6174/ /lib/firmware/ath10k/QCA6174_moved/
sudo mv /lib/firmware/ath10k/QCA6164/ /lib/firmware/ath10k/QCA6174/

However I am still unable to set up an ad-hoc network to share the ethernet connection with my phone.

Revision history for this message
JJ (jleonpolanco) wrote :

Brian Murray
Thanks a lot, I have been struggling with this and boot issues with my own Qualcomm Atheros Card for about a day. Everything works fine now. Using Ubunto 16.04, Windows 10 with and Acer R 14.
Thanks again.

Revision history for this message
Nicolas (koune) wrote :

Thanks so much Brian Murray,
I had installed Ubuntu 16.04 from scratch on my Lenovo U31-70 but the wifi wouldn't work. Followed your instructions and now all is good :).

Miles Krell (mileskrell)
description: updated
description: updated
description: updated
Revision history for this message
Mattias Emmoth (mattias-emmoth) wrote :

Well since I reported this bug I have found out that the linux-firmware from http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.158_all.deb solved my and my sons 5GHz issue.

I ran these two commands:
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.158_all.deb
sudo dpkg -i linux-firmware_1.158_all.deb

As I stated in the forum "http://ubuntuforums.org/showthread.php?t=2325359&page=2"

After that the wireless card has been working as it should.

Revision history for this message
Seth Forshee (sforshee) wrote :

Please try the linux-firmware deb below, which is the version from xenial plus all updates to the QCA6174 which are in version 1.158. If this fixes the issues then I can work on getting these changes into xenial and possibly other releases. Thanks!

http://people.canonical.com/~sforshee/lp1436940/linux-firmware_1.157+lp1436940v201605310852_all.deb

Changed in linux-firmware (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Miles Krell (mileskrell) wrote :

Seth Forshee,

The firmware in the .deb file you provided works perfectly. Thanks.

Changed in linux-firmware (Ubuntu):
status: Incomplete → Confirmed
Changed in linux-firmware (Ubuntu Xenial):
status: New → Confirmed
Changed in linux (Ubuntu Xenial):
status: New → Confirmed
Seth Forshee (sforshee)
Changed in linux-firmware (Ubuntu Xenial):
assignee: nobody → Seth Forshee (sforshee)
importance: Undecided → Medium
status: Confirmed → In Progress
Changed in linux-firmware (Ubuntu):
status: Confirmed → Fix Released
Seth Forshee (sforshee)
Changed in linux-firmware (Ubuntu Xenial):
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Brian, or anyone else affected,

Accepted linux-firmware into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/linux-firmware/1.157.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Miles Krell (mileskrell) wrote :

linux-firmware version 1.157.2 fixes this bug.

tags: added: verification-done
Revision history for this message
Mike Chelen (mchelen) wrote :

confirmed working with 1.157.2 amd64 on lenovo thinkpa yoga 3 11"

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-firmware - 1.157.2

---------------
linux-firmware (1.157.2) xenial; urgency=medium

  * Updates to fix problems with QCA6164 wireless support
    ath10k: QCA6174 hw3.0: add board-2.bin
    ath10k: QCA6174 hw2.1: add board-2.bin
    ath10k: QCA6174 hw2.1: update firmware-5.bin to SW_RM.1.1.1-00157-QCARMSWPZ-1
    -LP: #1436940

 -- Seth Forshee <email address hidden> Wed, 22 Jun 2016 08:03:37 -0500

Changed in linux-firmware (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Update Released

The verification of the Stable Release Update for linux-firmware has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Kees Cook (kees) wrote :

Hm, not fixed for me. still seeing firmware crashes. :(

Changed in linux-firmware (Ubuntu Xenial):
status: Fix Released → Confirmed
Changed in linux-firmware (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Kees Cook (kees) wrote :

Adding ath10k/QCA6174/hw2.1/board-pci-168c:0041:17aa:3545.bin (from the working board.bin in this thread) seems to fix it, though:

e6adc90ecaf55edc656990c6c50193ac board-pci-168c:0041:17aa:3545.bin

Revision history for this message
Seth Forshee (sforshee) wrote :

@Kees: I assume it also works if file is just named board.bin? Since that's the way it would be installed if we ship it in linux-firmware ...

Revision history for this message
Kees Cook (kees) wrote :

Yup, but I wanted to avoid getting overwritten each time linux-firmware gets updated. ;)

Revision history for this message
Seth Forshee (sforshee) wrote :

I guessed as much, just making sure. I'll inquire as to why that board.bin hasn't been pushed out to linux-firmware yet, and as long as there isn't some reason why we shouldn't I'll pull it into xenial.

Revision history for this message
Seth Forshee (sforshee) wrote :

Hang on, there might be a problem. That file is from https://github.com/atondwal/ath10k-firmware and isn't in https://github.com/kvalo/ath10k-firmware that I can find. So as far as I know we don't have a license to redistribute that file.

I'll go ahead and inquire with Kalle, hopefully we can get something that works from QCA directly.

Revision history for this message
Seth Forshee (sforshee) wrote :

@Kees: Could you provide dmesg after the firmware crash you see with the board files from linux-firmware? Thanks!

Սահակ (petrosyan)
Changed in linux-firmware (Ubuntu):
status: Confirmed → Fix Released
Changed in linux-firmware (Ubuntu Xenial):
status: Confirmed → Invalid
Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Changed in linux (Ubuntu Vivid):
status: Confirmed → Invalid
Changed in linux (Ubuntu Wily):
status: Confirmed → Invalid
Changed in linux (Ubuntu Xenial):
status: Confirmed → Invalid
Revision history for this message
Timothy Ward (twardprof) wrote :

Thank you! This was the solution for me after many unsuccessful attempts.

Revision history for this message
bert (bvr-c) wrote :

great instructions and explanations!

it works for my lenovo ideapad, ubuntu 16.1 and atheros card, thank you very much!

best
Bert

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.