You are not logged in.

#1 2016-06-08 11:29:46

chicao
Member
Registered: 2013-03-08
Posts: 11

[SOLVED] Qualcomm Atheros QCA6174 wireless won't work properly

Hello,

Recently installed Arch on a Dell Inpiron 13 7000 Series, which have a Qualcomm Atheros QCA6174 wireless card.
When I first tried to install Arch, although the interface was visible, it wasn't able to connect to a wifi network using
wifi-menu.

# wifi-menu
Scanning for networks... Could not set interface wlp1s0 flags (UP): Resource temporarily unavailable
nl80211: Could not set interface 'wlp1s0' UP
Could not set interface 'wlp1s0' UP
WEXT: Could not set interface wlp1s0 flags (UP): Resource temporarily unavailable
wlp1s0: Failed to initialize driver interface
failed

I manage to install everything offline and have a proper Arch running, including the arch repos linux-firmware package,
but still no wifi.

I did a

 #ip link 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 3c:77:e6:d4:a8:8f brd ff:ff:ff:ff:ff:ff

and the card is visible.

I checked if the ath modules were loaded properly:

#lsmod | grep ath
ath10k_pci             45056  0
ath10k_core           262144  1 ath10k_pci
ath                    28672  1 ath10k_core
mac80211              651264  1 ath10k_core
cfg80211              491520  3 ath,mac80211,ath10k_core

and checked the firmware path:

# ls /lib/firmware/ath10k/QCA6174/
hw2.1  hw3.0
# ls /lib/firmware/ath10k/QCA6174/hw2.1/
board.bin  firmware-5.bin  notice_ath10k_firmware-5.txt
# ls /lib/firmware/ath10k/QCA6174/hw3.0/
board.bin  firmware-4.bin  notice_ath10k_firmware-4.txt

After searching here in the forums, I found this post which mentioned the kvalo firmware repository.
In the github page it says that the "... official location to download ath10k images is from linux-firmware". After downloading the files,
I manually updated the firmware files and changed their names:

# ls /lib/firmware/ath10k/QCA6174/
hw2.1  hw3.0
# ls /lib/firmware/ath10k/QCA6174/hw2.1/
board-2.bin board.bin  firmware-5.bin  notice_ath10k_firmware-5.txt
# ls /lib/firmware/ath10k/QCA6174/hw3.0/
board-2.bin board.bin  firmware-4.bin  notice_ath10k_firmware-4.txt

but the wifi-menu command didn't work at all.

It seems that this issue is pretty common with this wireless card, so I also found this bug in the ubuntu community,
which there are reports of people making the card work properly. I managed to build a package using the provided .DEB mentioned in comment #153 ,
the most recent so far, and installed it. Although the install was successful, the card behaviour stays the same.

I would appreciate some further indications on how to make this card work and have network connection to properly use my laptop.

Last edited by chicao (2016-06-14 01:39:18)

Offline

#2 2016-06-09 16:16:34

matthew_TKA
Member
From: Texas
Registered: 2016-06-02
Posts: 34
Website

Re: [SOLVED] Qualcomm Atheros QCA6174 wireless won't work properly

I have the same card on my MSI GS40.

lspci -nnk | grep -iA2 net
3c:00.0 Ethernet controller [0200]: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller [1969:e0a1] (rev 10)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:1155]
	Kernel driver in use: alx
--
3d:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 20)
	Subsystem: Bigfoot Networks, Inc. Killer N1525 Wireless-AC [1a56:1525]
	Kernel driver in use: ath10k_pci
	Kernel modules: ath10k_pci

There was an issue connecting to 5G networks that was supposedly fixed, however, I haven't tried this out yet to verify.  I ran across some mailing list where they said the 00157 firmware fixed that.

dmesg | grep firmware
ath10k_pci 0000:3d:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08

Mine was still crashing on 5G prior to upgrading the system with pacman -Syu which upgraded my kernel to 6.6.1-2-ARCH.

sudo find . -name "ath10k" -print 
./sys/kernel/debug/ieee80211/phy0/ath10k
./usr/lib/modules/4.6.1-2-ARCH/kernel/drivers/net/wireless/ath/ath10k
./usr/lib/firmware/ath10k

I'll give it another shot and see if I still get that issue.  Other then that my wifi has been working, but I had to modify the profiles manually by adding:

DHCPClient='dhclient'
ForceConnect=yes

EDIT: note you must install the dhclient package as well

I also couldn't get NetworkManager to connect so I use auto connection from systemd instead:

pacman -S iw wpa_supplicant dialog
sudo pacman -S wpa_actiond
systemctl enable netctl-auto@wlp61s0.service

You would have to replace wlp61s0 with your interface name. 

The only other issue (apart from the integrated bluetooth driver name conflict) is that with the most recent kernel I now get a firmware crash on shutdown:

kernel: firmware crashed! (uuid 8bfa25e0-7b48-4f1c-b0c7-e3e42394d921)
kernel: ath10k_pci 0000:3d:00.0: qca6174 hw2.1 target 0x05010000 chip_id 0x003405ff sub 1a56:1525
kernel: ath10k_pci 0000:3d:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 0
kernel: ath10k_pci 0000:3d:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08
kernel: ath10k_pci 0000:3d:00.0: board_file api 2 bmi_id N/A crc32 f4573aa9
kernel: ath10k_pci 0000:3d:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
kernel: ath10k_pci 0000:3d:00.0: firmware register dump:
kernel: ath10k_pci 0000:3d:00.0: [00]: 0x05010000 0x00000000 0x0092E4DC 0xDF4B5535
kernel: ath10k_pci 0000:3d:00.0: [04]: 0x0092E4DC 0x00060130 0x00000018 0x0041A760
kernel: ath10k_pci 0000:3d:00.0: [08]: 0xDF4B5521 0x00400000 0x00000000 0x000A5C88
kernel: ath10k_pci 0000:3d:00.0: [12]: 0x00000009 0x00000000 0x0096C09C 0x0096C0A7
kernel: ath10k_pci 0000:3d:00.0: [16]: 0x0096BDBC 0x009287BD 0x00000000 0x009287BD
kernel: ath10k_pci 0000:3d:00.0: [20]: 0x4092E4DC 0x0041A710 0x00000000 0x0F000000
kernel: ath10k_pci 0000:3d:00.0: [24]: 0x809432A7 0x0041A770 0x0040D400 0xC092E4DC
kernel: ath10k_pci 0000:3d:00.0: [28]: 0x80942BC4 0x0041A790 0xDF4B5521 0x00400000
kernel: ath10k_pci 0000:3d:00.0: [32]: 0x80947BA7 0x0041A7B0 0x00404BF8 0x00413980
kernel: ath10k_pci 0000:3d:00.0: [36]: 0x809BDECC 0x0041A7D0 0x00404BF8 0x00413980
kernel: ath10k_pci 0000:3d:00.0: [40]: 0x8099638C 0x0041A7F0 0x00404BF8 0x00000000
kernel: ath10k_pci 0000:3d:00.0: [44]: 0x80992076 0x0041A810 0x004084F0 0x00405244
kernel: ath10k_pci 0000:3d:00.0: [48]: 0x80996BD3 0x0041A830 0x004084F0 0x00000000
kernel: ath10k_pci 0000:3d:00.0: [52]: 0x800B4405 0x0041A850 0x00422318 0x00005002
kernel: ath10k_pci 0000:3d:00.0: [56]: 0x809A6C34 0x0041A8E0 0x0042932C 0x0042CA20

EDIT:
Apparently the crash seems to go away when shutdown after connecting to a network manually with wifi-menu as opposed to the auto method. O.o

Last edited by matthew_TKA (2016-06-10 02:42:29)


MSI GS40 6QE PHANTOM
Website

Offline

#3 2016-06-09 16:30:35

matthew_TKA
Member
From: Texas
Registered: 2016-06-02
Posts: 34
Website

Re: [SOLVED] Qualcomm Atheros QCA6174 wireless won't work properly

I just tried my 5G connection again and it didn't crash with the newer firmware, however, it didn't connect either.

The error was pretty lame:

WPA association/authentication failed for interface 'wlp61s0'

I will probably do some more experimenting soon as the 5G band has less conflicting signals in my home then the lower band I'm using. (My laptop fights with the baby monitor and such)

You may try to hit some other access points and see if you notice a difference.

EDIT:

I have since successfully used my 5G connection.  I must have botched the password or something with my first attempt.

Last edited by matthew_TKA (2016-06-10 00:39:54)


MSI GS40 6QE PHANTOM
Website

Offline

#4 2016-06-09 19:02:07

chicao
Member
Registered: 2013-03-08
Posts: 11

Re: [SOLVED] Qualcomm Atheros QCA6174 wireless won't work properly

Are you using the latest firmware that I mentioned in my first post, matthew_TKA?

Offline

#5 2016-06-09 22:43:24

matthew_TKA
Member
From: Texas
Registered: 2016-06-02
Posts: 34
Website

Re: [SOLVED] Qualcomm Atheros QCA6174 wireless won't work properly

So far I haven't been using any external firmware.  In both instances I was simply using what was provided from pacman.  I'm up to date as of today with kernel 4.6.1-2-ARCH.

For me the USB install media would work with wifi-menu just fine, but the actual installed arch wouldn't connect to a network without the profile changes I mentioned above.

FWIW I didn't have the same error message as you with wifi-menu.

Last edited by matthew_TKA (2016-06-09 22:50:48)


MSI GS40 6QE PHANTOM
Website

Offline

#6 2016-06-12 20:24:01

chicao
Member
Registered: 2013-03-08
Posts: 11

Re: [SOLVED] Qualcomm Atheros QCA6174 wireless won't work properly

Even after downloading and installing the latest linux-firmware package my wireless card didn't work.
So I restarted to search again in forums and found this post here.
I verified the checksum and I had a version that didn't work:

$ sha256sum board.bin 
1a8d225818b46986fc4f615594fbe448fa820618590d6902c8f844bb37cda667  board.bin

So I used the version in @str0g github repo and
my wireless is functioning now.

I also symlinked firmware-5 to firmware-4 and added a modprobe.d configuration file:

echo "options ath10k_core skip_otp=y" > /etc/modprobe.d/ath10k.conf 

I'll not mark as solved yet because I'm still checking NetworkManager and proper
module loading, since only wifi-menu is working. Also, I want to check the bluetooth but I think I'll make another post
related to it.

Offline

#7 2016-06-14 01:39:00

chicao
Member
Registered: 2013-03-08
Posts: 11

Re: [SOLVED] Qualcomm Atheros QCA6174 wireless won't work properly

Everything working, but the card has a low performance. I'll mark as solved so I can work on the performance issue.

Offline

Board footer

Powered by FluxBB