Wifi WNSQ-261ACN(BT) Atheros QCA6174A-5

The WNSQ-261ACN(BT) has an Atheros QCA6174A-5 chipset. From what I can tell kmod-ath10k will support it, but dmesg says:

(This is on r4741-7a89094)

`
[ 18.360340] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 18.787497] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:03:00.0.bin failed with error -2
[ 18.798346] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 20.811573] firmware ath10k!pre-cal-pci-0000:03:00.0.bin: firmware_loading_store: map pages failed
[ 20.821387] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 20.831899] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 20.843551] firmware ath10k!cal-pci-0000:03:00.0.bin: firmware_loading_store: map pages failed
[ 20.852513] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[ 20.863357] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 20.875303] firmware ath10k!QCA6174!hw3.0!firmware-5.bin: firmware_loading_store: map pages failed
[ 20.884860] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -11
[ 20.894962] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-4.bin failed with error -2
[ 20.905807] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 20.916744] firmware ath10k!QCA6174!hw3.0!firmware-4.bin: firmware_loading_store: map pages failed
[ 20.926358] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-4.bin': -11
[ 20.936466] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-3.bin failed with error -2
[ 20.947291] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 20.959511] firmware ath10k!QCA6174!hw3.0!firmware-3.bin: firmware_loading_store: map pages failed
[ 20.969078] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-3.bin': -11
[ 20.979183] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-2.bin failed with error -2
[ 20.990014] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 21.001350] firmware ath10k!QCA6174!hw3.0!firmware-2.bin: firmware_loading_store: map pages failed
[ 21.011106] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-2.bin': -11
[ 21.021158] ath10k_pci 0000:03:00.0: could not fetch firmware files (-11)
[ 21.028038] ath10k_pci 0000:03:00.0: could not probe fw (-11)

`

Also lspci reports

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

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

`

4165.831214] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 4166.227380] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:03:00.0.bin failed with error -2
[ 4166.238177] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 4166.249703] firmware ath10k!pre-cal-pci-0000:03:00.0.bin: firmware_loading_store: map pages failed
[ 4166.259237] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 4166.269699] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 4166.281859] firmware ath10k!cal-pci-0000:03:00.0.bin: firmware_loading_store: map pages failed
[ 4166.290853] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[ 4166.301657] ath10k_pci 0000:03:00.0: Falling back to user helper
[ 4166.313441] firmware ath10k!QCA6174!hw3.0!firmware-5.bin: firmware_loading_store: map pages failed
[ 4166.322995] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -11
[ 4166.333734] ath10k_pci 0000:03:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1dac:0261
[ 4166.343068] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 4166.354590] ath10k_pci 0000:03:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[ 4166.429367] ath10k_pci 0000:03:00.0: board id is not exist in otp, ignore it
[ 4166.437075] ath10k_pci 0000:03:00.0: failed to fetch board data for bus=pci,vendor=168c,device=003e,subsystem-vendor=1dac,subsystem-device=0261�/'+�����Z� �����}� from ath10k/QCA6174/hw3.0/board-2.bin
[ 4166.455304] ath10k_pci 0000:03:00.0: board_file api 1 bmi_id N/A crc32 ed5f849a
[ 4171.587513] ath10k_pci 0000:03:00.0: failed to ping firmware: -110
[ 4171.593749] ath10k_pci 0000:03:00.0: failed to reset rx filter: -110
[ 4171.708575] ath10k_pci 0000:03:00.0: could not init core (-110)
[ 4171.714632] ath10k_pci 0000:03:00.0: could not probe fw (-110)

`

@hagna231

Try this (tested on current master with SparkLAN WPEQ-261ACN(BT) - looks like same module, just a different interface: minipci-e vs. M.2):

cd /lib/firmware/ath10k/QCA6174/hw3.0
mv firmware-4.bin_WLAN.RM.2.0-00180-QCARMSWPZ-1 firmware-4.bin
wget http://projects.dymacz.pl/sparklan_wpeq-261acn-bt/eeprom_ar6320_3p0_NFA324i_5.bin -O board.bin
rmmod ath10k_pci
modprobe ath10k_pci

That worked for me:


[  236.104026] ath10k_pci 0000:03:00.0: board_file api 1 bmi_id N/A crc32 c24e1c11
[  236.699635] ath10k_pci 0000:03:00.0: htt-ver 3.26 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[  236.818575] ath: EEPROM regdomain: 0x6c
[  236.818578] ath: EEPROM indicates we should expect a direct regpair map
[  236.818581] ath: Country alpha2 being used: 00
[  236.818582] ath: Regpair used: 0x6c
[  349.509150] device wlan0 entered promiscuous mode

But no scanning:

root@LEDE:~# iw wlan0 info
Interface wlan0
	ifindex 7
	wdev 0x100000001
	addr 00:0e:8e:xx:xx:xx
	type monitor
	wiphy 1
	channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz
	txpower 0.00 dBm
root@LEDE:~# iw wlan0 scan
command failed: Not supported (-95)

Great :slight_smile:

Your card is in monitor mode, that might be the reason.
It works for me™ (LEDE 17.01.4, x86-64):

root@LEDE:/# iw wlan0 info
Interface wlan0
        ifindex 2
        wdev 0x1
        addr 00:0e:8e:xx:xx:xx
        type managed
        wiphy 0
        txpower 0.00 dBm
root@LEDE:/# iw wlan0 scan | grep freq
        freq: 2412
        freq: 2412
        freq: 2412
        freq: 2437
        freq: 2437
        freq: 2447
        freq: 2462
        freq: 2462
        freq: 5180
        freq: 5540
                 * center freq segment 1: 106
                 * center freq segment 2: 0
        freq: 5560
                 * center freq segment 1: 106
                 * center freq segment 2: 0
        freq: 2447
        freq: 2462
        freq: 2412
        freq: 2412
        freq: 2437
        freq: 2437
        freq: 2437
        freq: 2442
root@LEDE:/# iwinfo wlan0 sca | grep Signal
          Signal: -54 dBm  Quality: 56/70
          Signal: -80 dBm  Quality: 30/70
          Signal: -84 dBm  Quality: 26/70
          Signal: -87 dBm  Quality: 23/70
          Signal: -82 dBm  Quality: 28/70
          Signal: -63 dBm  Quality: 47/70
          Signal: -51 dBm  Quality: 59/70
          Signal: -64 dBm  Quality: 46/70
          Signal: -76 dBm  Quality: 34/70
          Signal: -87 dBm  Quality: 23/70
          Signal: -91 dBm  Quality: 19/70
          Signal: -80 dBm  Quality: 30/70
          Signal: -85 dBm  Quality: 25/70
          Signal: -81 dBm  Quality: 29/70
          Signal: -79 dBm  Quality: 31/70
          Signal: -82 dBm  Quality: 28/70
          Signal: -88 dBm  Quality: 22/70
          Signal: -89 dBm  Quality: 21/70
          Signal: -87 dBm  Quality: 23/70
          Signal: -83 dBm  Quality: 27/70
          Signal: -86 dBm  Quality: 24/70
          Signal: -86 dBm  Quality: 24/70
          Signal: -83 dBm  Quality: 27/70
          Signal: -86 dBm  Quality: 24/70
          Signal: -85 dBm  Quality: 25/70
          Signal: -89 dBm  Quality: 21/70
          Signal: -85 dBm  Quality: 25/70
          Signal: -85 dBm  Quality: 25/70
          Signal: -86 dBm  Quality: 24/70
          Signal: -77 dBm  Quality: 33/70