Aircrack-ng forum

General Category => Newbies => Topic started by: leste on January 14, 2017, 11:11:35 pm

Title: Aircrack on Qualcomm Atheros QCA6174
Post by: leste on January 14, 2017, 11:11:35 pm
I've been the past month trying to make aircrack-ng work with my main computer, which has a Qualcomm Atheros QCA6174 chipset. The wireless works fine on the ath10k drivers (that I had to install manually), and I know my network card supports monitor mode and injection(fonts: https://www.aircrack-ng.org/doku.php?id=compatibility_drivers see Chipset section, besides, I can use
Code: [Select]
nmap -sPto see all the devices connected to my network).

The problem is evident when i use
Code: [Select]
airmon-ng start wlan0 and
Code: [Select]
airodump-ng wlan0monnext, but airodump-ng does not detects any AP's. Killing processes like network-manager, wpa_supplicant and dhclient does not affect this output at all (neither with
Code: [Select]
service stop <process> nor with
Code: [Select]
airmon-ng check kill or
Code: [Select]
killall <process>.

My main lead is this output of
Code: [Select]
dmesg | grep -i ath10k:

Code: [Select]
[   11.772460] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[glow=red,2,300][   12.090548] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/pre-cal-pci-0000:02:00.0.bin (-2)
[   12.090745] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[   12.090795] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/cal-pci-0000:02:00.0.bin (-2)
[   12.090985] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2[/glow]
[   12.101282] ath10k_pci 0000:02:00.0: firmware: direct-loading firmware ath10k/QCA6174/hw3.0/firmware-5.bin
[   12.101297] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1028:0310
[   12.101302] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[   12.103646] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00088-QCARMSWPZ-1 api 5 features ignore-otp crc32 4dcf5871
[   12.729288] ath10k_pci 0000:02:00.0: firmware: direct-loading firmware ath10k/QCA6174/hw3.0/board-2.bin
[   12.730343] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 6fc88fe7
[   15.020077] ath10k_pci 0000:02:00.0: htt-ver 3.14 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1

because I think the failures can be related. Some other outputs that might be interesting:

Code: [Select]
$airmon-ng start wlan0
Code: [Select]
Found 3 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to run 'airmon-ng check kill'

  PID Name
  652 NetworkManager
  858 wpa_supplicant
 6252 dhclient

PHY Interface Driver Chipset

phy0 wlan0 ath10k_pci Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

(mac80211 monitor mode vif enabled for [phy0]wlan0 on [phy0]wlan0mon)
(mac80211 station mode vif disabled for [phy0]wlan0)

-------------
Code: [Select]
$aireplay -9 wlan0mon
Code: [Select]
18:47:12  Trying broadcast probe requests...
18:47:14  No Answer...
18:47:14  Found 0 APs
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on January 14, 2017, 11:51:47 pm
1. Issue airmon-ng check kill first as explained by the index page of aircrack-ng.org
2. There seems to be firmware issues
3. Is the card working in managed mode?
4. Why did you install the drivers?
5. What is the output of uname -a?
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: leste on January 15, 2017, 12:13:02 am
1. I did, didn't work.
2. Yes, but I can use commands like nmap, netdiscover and iwlist scan, so it should work, right?
3. Yes, it works fine on managed mode.
4. Because every distro I've ever put on this computer didn't recognize the drivers at first, so I always have installed them manually ( on /lib/firmware/ath10k/QCA6174/hw...)
5.Linux localhost.localdomain 4.8.0-kali2-amd64 #1 SMP Debian 4.8.15-1kali1 (2016-12-23) x86_64 GNU/Linux
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on January 15, 2017, 05:43:40 am
1. Calibration firmware, have you looked up the errors on google on how to solve those?
2. How did you install the driver? It should be built-in
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: leste on January 15, 2017, 07:57:45 am
1. Yes, I've looked a lot. I think there is no one complaining about this error because it does not affect wireless connection.
2. I cloned the firmware files https://github.com/kvalo/ath10k-firmware to /lib/firmware/ath10k/. It's not built-in because it's a relatively new network card (heard Fedora 25 already includes it, but I haven't checked yet).

Some output that might be useful:

after airmon-ng start wlan0:
Code: [Select]
root@localhost:/home/leste# iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=0 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
         
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on January 15, 2017, 03:45:59 pm
OK, but what about the driver that you mention you had to install manually. Where do you get it from?
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: leste on January 16, 2017, 03:05:41 am
Sorry, I  confused the terms. What I installed manually was just the firmware
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on January 16, 2017, 06:02:59 am
Out of curiosity, what are the results with the stock firmware (firmware-4.bin) ?

And by the way, when running injection test, make sure you're on a channel with APs.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: leste on January 16, 2017, 10:49:11 pm
Yes, I am doing it with many AP's nearby, although airodump-ng caches nothing. What do you mean by the results?
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on January 16, 2017, 11:49:26 pm
Stuff being displayed in Airodump-ng and maybe results in the injection test.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: leste on January 17, 2017, 12:48:05 pm
Airodump-ng displays nothing, and the injection fails.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: syn111 on January 20, 2017, 09:13:43 pm
same card, same dmesg warnings, airmon-ng displays nothing.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: kens on January 27, 2017, 09:24:38 pm
Same problem here with Qualcomm Atheros QCA6174 on ath10k firmware.
Tried almost anything, including manual firmware install, but without any success, airodump-ng keeps scanning through channels and cant find anything.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: muchi on February 09, 2017, 12:46:06 am
Joined just to say i have the same issue on same chipset on killer 1535. I dont think monitor mode is supported on firmware 3.0 but was on 2.1. Need someone to create a patch for injection and monitor mode
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on February 09, 2017, 05:49:15 am
I heard recently you might have to use some parameters when loading the ath10k driver for monitor mode. rawmode on ath10k_core and maybe set cryptmode to 1 (software).
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: muchi on February 19, 2017, 01:06:43 am
Ive look everywhere for a patch, there isnt one for killer 1535 hardware 3.0.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: natan777 on March 02, 2017, 02:02:24 pm
I have QCA6174 in my dell 5557 and the monitor mode works fine, but the injection no works for me

my setup:
sudo lshw -C Network
Code: [Select]
*-network
       descrição: Interface sem fio
       produto: Qualcomm Atheros
       fabricante: Qualcomm Atheros
       ID físico: 0
       informações do barramento: pci@0000:02:00.0
       nome lógico: wlan0
       versão: 32
       serial: 68:14:01:a6:64:33
       largura: 64 bits
       clock: 33MHz
       capacidades: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuração: broadcast=yes driver=ath10k_pci driverversion=3.19.0-42-generic firmware=WLAN.RM.2.0-0008                                                          8-QCARMSWPZ-1 ip=10.45.50.165 latency=0 link=yes wireless=IEEE 802.11abgn
       recursos: irq:125 memória:d5000000-d51fffff
uname -a
Code: [Select]
Linux inspiron-5557 3.19.0-42-generic #48~14.04.1-Ubuntu SMP Fri Dec 18 10:24:49 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: alecangus on March 04, 2017, 12:26:41 pm
I'm seeing exactly the same problem as the OP.

I have a 2016 Dell XPS 13 laptop natively running Kali Linux. It has a Killer 1535 802.11ac WiFi card which underneath is a Qualcomm Atheros QCA6174 chipset. I'm using the ath10k_pci driver and I've not touched the firmware.

Code: [Select]
# airmon-ng
PHY Interface Driver Chipset
phy0 wlan0 ath10k_pci Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

The documentation suggests this combination supports injection and monitoring, and I am able to switch my card into monitor mode, however while running airodump-ng in that mode, I don't see any responses.

Code: [Select]
# airmon-ng check

Found 3 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to run 'airmon-ng check kill'

  PID Name
  558 NetworkManager
  824 wpa_supplicant
 2965 dhclient

Code: [Select]
# airmon-ng check kill
Killing these processes:

  PID Name
  824 wpa_supplicant

Killing the other two processes manually just to be sure (NetworkManager and dhclient) didn't seem to have any effect either.

Code: [Select]
# airmon-ng start wlan0
PHY Interface Driver Chipset

phy0 wlan0 ath10k_pci Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

(mac80211 monitor mode vif enabled for [phy0]wlan0 on [phy0]wlan0mon)
(mac80211 station mode vif disabled for [phy0]wlan0)
Code: [Select]
# iwlist wlan0mon channel
wlan0mon  32 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
          Channel 36 : 5.18 GHz
          Channel 40 : 5.2 GHz
          Channel 44 : 5.22 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 56 : 5.28 GHz
          Channel 60 : 5.3 GHz
          Channel 64 : 5.32 GHz
          Channel 100 : 5.5 GHz
          Channel 104 : 5.52 GHz
          Channel 108 : 5.54 GHz
          Channel 112 : 5.56 GHz
          Channel 116 : 5.58 GHz
          Channel 120 : 5.6 GHz
          Channel 124 : 5.62 GHz
          Channel 128 : 5.64 GHz
          Channel 132 : 5.66 GHz
          Channel 136 : 5.68 GHz
          Channel 140 : 5.7 GHz
          Current Frequency:2.457 GHz (Channel 10)

I tried the injection test to no avail...

Code: [Select]
# aireplay-ng -9 wlan0mon
10:19:54  Trying broadcast probe requests...
10:19:56  No Answer...
10:19:56  Found 0 APs

Although here the channel is showing as 10, that's just where I grabbed it; as it was running it was cycling through the channels. Most notably, it never shows any results here despite there being my own wireless network and others within reach. There are other devices on my network too so there should be lots of wireless conversation. My network's set up to broadcast its ssid too.

Code: [Select]
# airodump-ng wlan0mon

 CH 10 ][ Elapsed: 7 mins ][ 2017-03-04 10:32                                         
                                                                                                                                                                                                                 
 BSSID              PWR  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID
                                                                                                                                                                                                                 
                                                                                                                                                                                                                 
 BSSID              STATION            PWR   Rate    Lost    Frames  Probe

I do have driver errors in the startup log, but as the card works fine in managed mode I'm not sure whether these are cause for concern? If they are, I don't know what to do about them?

Code: [Select]
# dmesg | grep ath10k
[    2.866583] ath10k_pci 0000:3a:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    3.145011] ath10k_pci 0000:3a:00.0: firmware: failed to load ath10k/pre-cal-pci-0000:3a:00.0.bin (-2)
[    3.145014] ath10k_pci 0000:3a:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:3a:00.0.bin failed with error -2
[    3.145034] ath10k_pci 0000:3a:00.0: firmware: failed to load ath10k/cal-pci-0000:3a:00.0.bin (-2)
[    3.145036] ath10k_pci 0000:3a:00.0: Direct firmware load for ath10k/cal-pci-0000:3a:00.0.bin failed with error -2
[    3.145313] ath10k_pci 0000:3a:00.0: firmware: failed to load ath10k/QCA6174/hw3.0/firmware-5.bin (-2)
[    3.145315] ath10k_pci 0000:3a:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[    3.145319] ath10k_pci 0000:3a:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[    3.146517] ath10k_pci 0000:3a:00.0: firmware: direct-loading firmware ath10k/QCA6174/hw3.0/firmware-4.bin
[    3.146528] ath10k_pci 0000:3a:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[    3.146531] ath10k_pci 0000:3a:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[    3.148007] ath10k_pci 0000:3a:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[    3.210973] ath10k_pci 0000:3a:00.0: firmware: direct-loading firmware ath10k/QCA6174/hw3.0/board-2.bin
[    3.211175] ath10k_pci 0000:3a:00.0: board_file api 2 bmi_id N/A crc32 6fc88fe7
[    5.333030] ath10k_pci 0000:3a:00.0: htt-ver 3.26 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[ 9773.569984] WARNING: CPU: 3 PID: 4523 at /build/linux-4C5mD3/linux-4.9.13/drivers/net/wireless/ath/ath10k/mac.c:3519 ath10k_mac_tx.isra.63+0x4dc/0x4f0 [ath10k_core]
[ 9773.569985] Modules linked in: ctr ccm fuse arc4 pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) nfnetlink_queue nfnetlink_log nfnetlink vboxdrv(O) snd_hda_codec_hdmi dell_led snd_hda_codec_realtek snd_hda_codec_generic hid_multitouch i2c_designware_platform dell_laptop i2c_designware_core dell_wmi dell_smbios dcdbas intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_sst_match snd_soc_core joydev snd_compress evdev pcspkr snd_hda_intel serio_raw snd_hda_codec snd_hda_core snd_hwdep snd_pcm ath10k_pci iTCO_wdt snd_timer ath10k_core snd iTCO_vendor_support soundcore ath mac80211 cfg80211 rtsx_pci_ms memstick idma64 virt_dma shpchp uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2
[ 9773.570206]  [<ffffffffc0c0908c>] ? ath10k_mac_tx.isra.63+0x4dc/0x4f0 [ath10k_core]
[ 9773.570224]  [<ffffffffc0c09a94>] ? ath10k_mac_op_tx+0x144/0x210 [ath10k_core]
[ 9773.570437] ath10k_pci 0000:3a:00.0: failed to transmit frame: -524
[ 9774.170480] ath10k_pci 0000:3a:00.0: failed to transmit frame: -524
[ 9774.770510] ath10k_pci 0000:3a:00.0: failed to transmit frame: -524

Many thanks,
Alec
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: thaibird on March 09, 2017, 09:01:53 pm
Also have Killer 1535  which is hw rev 32.

With monitor mode allegedly enabled, I can't see any BSSIDs around me, echoing previous comments.

What I can bring to the party is:
I can see the BSSID if I'm already connected - i.e. startup NetworkManager, connect to the BSSID as normal, and then run airodump-ng.
If I then disconnect, and reconnect I manage to capture the WPA authentication, and can then brute force the pcap successfully.

I'm not experienced enough to conclude if monitor mode really is working, or if I'm just capturing my own packets through normal operation.

Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Sascha F on March 13, 2017, 04:30:58 pm
I heard recently you might have to use some parameters when loading the ath10k driver for monitor mode. rawmode on ath10k_core and maybe set cryptmode to 1 (software).

Hi,
i've got the exectly same problem.
Could you help me getting trough the process you just described?

Thanks in advnace
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: shadowmite on March 16, 2017, 03:50:05 pm
I heard recently you might have to use some parameters when loading the ath10k driver for monitor mode. rawmode on ath10k_core and maybe set cryptmode to 1 (software).

Running:
modprobe -r ath10k_pci
modprobe -r ath10k_core
modprobe ath10k_core rawmode=1 cryptmode=1
modprobe ath10k_pci

Results in 2 errors in dmesg:
cryptmode > 0 requires raw mode support from firmware
rawmode = 1 require support from firmware

So it appears the firmware, WLAN.RM.2.0-00180-QCARMSWPZ-1 (firmware-4.bin) does not support these needed modes.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: ewi on March 21, 2017, 01:15:14 am
Same deal with firmware-5.bin from sumdog/ath10k-firmware
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Fora on April 10, 2017, 07:36:25 pm
Hey, I was wondering if you ever got this working. And if so, how? Been brainstorming for two weeks now and I'm really at the end of my rope here
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Yoy0 on April 12, 2017, 03:20:05 pm
Hello,
same problem here on manjaro with kernel 4.10.8.
Airodump-ng is totally blind with near to 20 APs in the area.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Tekkusan on April 12, 2017, 06:10:51 pm
Having the same issues reported above on a 9360 XPS 13 with Ubuntu 16.04. Wifi works fine in Managed, can be switched to monitor, but airodump sees nothing around it.

I tried changing the firmware to the latest available in kvalo at github (firmware-5) but that seemed to break it completely (it stopped working even in managed mode) - then again, I'm very new to this firmware stuff so maybe I needed to do something other than just copying the new file?

Thanks.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: ewqqwe on April 27, 2017, 07:41:04 am
I have exactly the same problem, but apparently nobody gives a shit.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on April 30, 2017, 11:58:01 pm
Well, ewqqwe, what do you expect people to do?

The issue is in the driver/firmware. If you want to complain or file a bug report regarding that issue, it should be done in the linux-wireless mailing list (for the driver) and to Qualcomm for the firmware.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Yoy0 on May 06, 2017, 09:13:56 pm
"hw3.0    QCA6174 hw3.0: change 4.4 branch to use FW API 6    17 days ago"
    source : https://github.com/kvalo/ath10k-firmware/tree/master/QCA6174

"wireless-drivers-next patches for 4.12
Lots of bugfixes as usual but also some new features.

Major changes:
ath10k
* improve firmware download time for QCA6174 and QCA9377, especially
  helps resume time"

    source : https://www.spinics.net/lists/linux-wireless/msg160990.html

I'm personally waiting kernel 4.12 to resolve bugs and maybe monitor, if not : 8265NGW
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: lopt on May 11, 2017, 12:54:15 pm
I will try this: https://www.amazon.de/gp/product/B00P115WMY/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1
as an alternative untill they got the firmware fixed.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: kcdtv on May 11, 2017, 02:32:17 pm
"This" is "TP-Link Archer T2UH AC600 Dual Band High Gain WLAN Adapter"
(http://pix.toile-libre.org/upload/original/1494513126.png)
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on May 11, 2017, 04:04:23 pm
To add information about kcdtv posts, any driver that has "sta" in its name will be crap -> no monitor mode since vendor driver.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: lopt on May 11, 2017, 08:38:22 pm
Thank You for the helpfull information.
I ordered this aswell: https://www.amazon.de/gp/product/B002SZEOLG/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

It is just pity that there semms not to be a AC usb stick with a compatible driver :(
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on May 12, 2017, 04:07:27 am
There is one, but it's not atheros and its driver is crappy now.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: robertkjonesjr on May 12, 2017, 10:34:12 am
The RTL 8812AU seems to be at least fair for my needs:

root@nsc10:/home/bob# aireplay-ng -9 wlan149
06:22:59  Trying broadcast probe requests...
06:23:00  Injection is working!
06:23:01  Found 2 APs

06:23:01  Trying directed probe requests...
06:23:01  10:10:7F:25:E7:4C - channel: 149 - 'XXXXXXX'
06:23:01  Ping (min/avg/max): 0.658ms/1.366ms/3.155ms Power: -52.90
06:23:01  30/30: 100%

06:23:01  10:10:7F:25:E7:4D - channel: 149 - 'YYYYYY'
06:23:01  Ping (min/avg/max): 0.595ms/1.592ms/5.794ms Power: -52.80
06:23:01  30/30: 100%

I got the driver from here:

8812au driver from Realtek - Engenius ac1200 adapters for 2x2:2 802.11ac with USB
https://github.com/astsam/rtl8812au

This may or may not be the one noted as less than optimal in a previous comment, so perhaps it is not all that good.  There are complaints, but I don't know how relevant to the intended use.       

You can always get one of these https://www.alftel.com/pages/product-airbud (https://www.alftel.com/pages/product-airbud) and then have multiple miniPCIe slots for Intel/Atheros/etc. chipsets to try...
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: susanita on June 05, 2017, 06:28:33 pm
i have the same problems with my one too
any advance on the issue?

a lot of us need to make work our chipsets atheros with aircrack-ng
will be wonderfull

please any nice soul can help?
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on June 05, 2017, 06:43:27 pm
No and there most likely won't be any fix, part of it because wireless developers are giving up due to having firmware crashes (wireless card crashing) that can only be recovered (if they can) after a reboot. That make developing a driver pretty much useless.

So, the bottom line is to swap the card for another atheros (QCA9xxx or ath9k) or use a compatible card.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: susanita on June 05, 2017, 07:02:22 pm
ok thanks anyway
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Yoy0 on June 23, 2017, 07:04:14 am
Tested "firmware-6.bin" from : https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ath10k/QCA6174/hw3.0

Only thing i noticied is device recovering by itself when firmware crash :

[ 1395.974921] ath10k_pci 0000:3e:00.0: firmware crashed! (uuid [...])
[...]
[ 1395.979354] ath10k_pci 0000:3e:00.0: firmware register dump:
[...]
[ 1395.979416] ath10k_pci 0000:3e:00.0: Copy Engine register dump:
[...]
[ 1396.049568] ath10k_pci 0000:3e:00.0: device has crashed during init
[ 1396.076212] ath10k_pci 0000:3e:00.0: device has crashed during init
[ 1396.076215] ath10k_pci 0000:3e:00.0: failed to wait for target init: -70
[ 1396.077381] ieee80211 phy0: Hardware restart was requested
[ 1398.264975] ath10k_pci 0000:3e:00.0: Unknown eventid: 90118
[ 1398.360664] ath10k_pci 0000:3e:00.0: device successfully recovered


Also had to rename firmwmare-6.bin to firmware-5.bin because it is looking for firmware-X.bin (X between 2 and 5)

So :
Monitor still doesn't work
Firmware still crash when connected to 802.11ac AP, but it now recover without a reboot
Latency is stil going over 100ms every 120sec
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Poinpoin on July 02, 2017, 04:38:11 pm
Hi everyone, I'm encountering this problem too, I'm wondering if it would be possible to use the ath9k driver instead of the ath10k for the Qualcomm Atheros QCA6174 network adapter. And if, how ? I'm not really a noob on linux, but I'm not comfortable enough to know how to do it.

I'm really embarrassed with this issue, and I don't want to buy an external adapter.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: misterx on July 02, 2017, 05:57:45 pm
You can't just use another driver because one isn't working. A driver is meant for a specific set of cards and there are no 2 drivers (in the kernel) that can handle the same card.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Dakeryas on July 06, 2017, 04:25:35 pm
Dear all,

I have just created an account to say that even when using the 4.12 kernel from the Ubuntu mainline, on a Ubuntu 17.04 machine (the default kernel was 4.10), the QCA6174 card is not able to see any access points.

As a result, I have replaced the Killer WiFi card from my Dell XPS 15 9560 with an Intel 8265NGW, and I confirm that this new card sees access points and has allowed me to capture handshakes. It fails the injection test, however (but that is not a show-stopper).
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: virgosun on December 04, 2017, 03:24:04 am
same here QCA61x4 stock kernel 4.10. Wifi ok, airodump-ng nothing
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: virgosun on December 04, 2017, 07:57:09 am
Great news
This latest official firmware solve monitor mode (no injection though)
Just download and install http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.170_all.deb
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: virgosun on December 04, 2017, 09:55:48 am
Someone please confirm strange behavior Managed mode and Monitor mode at the sane time?
airmon-ng start wlp2s0
airodump-ng
capture ok
Still surfing web at the same time?
In fact I am typing this and reply till the dump is running?(http://)
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: virgosun on December 04, 2017, 09:59:24 am
(https://i.imgur.com/mQqK2i3.png)
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: iczero on December 08, 2017, 06:42:13 am
Can you explain how you got that working? Did you use any parameters when loading the kernel module? It doesn't seem to be working for me.

By the way, it is completely possible to have two virtual interfaces, one in station mode (you can use it normally for browsing the web etc) and one in monitor mode (for packet capture and injection). airmon-ng just usually disables the station vif when it starts the monitor vif.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: virgosun on December 08, 2017, 09:02:15 am
I just install the said firmware, also change something in
sudo echo "options ath10k_core skip_otp=y" > /etc/modprobe.d/ath10k_core.conf
And it work immediately
I haven't tried creating 2 virtual interface but I got the same behavior with another laptop RT5390
Other laptop with Intel3165 doesn't have that lux, only 1 mode at a time
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Chris Stone on December 29, 2017, 03:52:35 pm
Great news
This latest official firmware solve monitor mode (no injection though)
Just download and install http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.170_all.deb

I'm running latest firmware from here https://github.com/kvalo/ath10k-firmware/tree/master/QCA6174/hw3.0/4.4.1

Still seeing nothing in monitor mode  >:(

What firmware are you running? To find out run ethtool -i wlan0
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: mPp4 on April 10, 2018, 02:10:29 pm
I just install the said firmware, also change something in
sudo echo "options ath10k_core skip_otp=y" > /etc/modprobe.d/ath10k_core.conf
And it work immediately
I haven't tried creating 2 virtual interface but I got the same behavior with another laptop RT5390
Other laptop with Intel3165 doesn't have that lux, only 1 mode at a time

Hi, Could you be so nice and give us step by step tutorial how you were able to enable monitor mode?

Thanks.

Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: virgosun on April 19, 2018, 07:44:28 am
I swear doing nothing and it works
(https://i.imgur.com/uHZBzQm.jpg)
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Heaj on April 20, 2018, 09:20:48 pm
Hey, the link is down, do u have another link?
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: virgosun on April 25, 2018, 12:12:22 pm
I tried recompile kernel with Kali inject patch as per GUIDE but no luck, no injection
(https://user-images.githubusercontent.com/10823037/39138219-007639e2-470f-11e8-900d-97faffb0df7f.png)
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: inspire sayan on October 08, 2018, 04:11:29 am
Aircrack on Qualcomm Atheros QCA6174. Good One for WIFIhttps://www.inspiresayan.com/best-funny-wi-fi-names-router-ssid-2018.html (https://www.inspiresayan.com/best-funny-wi-fi-names-router-ssid-2018.html).




Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Sarthak Thakur on January 01, 2019, 08:33:38 am
I have the same issue with this card. Did anyone else manage to solve this issue?

Output of ethtool -i wlp2s0
Code: [Select]
driver: ath10k_pci
version: 4.20.0-042000-generic
firmware-version: WLAN.RM.4.4.1-00079-QCARMSWPZ-1
expansion-rom-version:
bus-info: 0000:02:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

Output of uname -a:
Code: [Select]
Linux Predator 4.20.0-042000-generic #201812232030 SMP Mon Dec 24 01:32:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: pilililo2 on January 03, 2019, 01:47:49 am
Same problem here, Killer Wireless 1535 QCA6174. Running Manjaro Linux kernel 4.20, and still not working. I can turn on monitor mode, but airodump and aireplay both dont work, nothing shows up.

BTW, the guy in this thread that "got it working" has a QCA6164, maybe he doesn't know how to read the title of the thread, but he is misleading everyone into thinking that it works just like that, but only for him, but you can see on his las screenshot that his card is a QCA6164 not QCA6174.

Please, if anyone has a solution to enable monitor mode on QCA6174 cards, please post something here.

EDIT: Seems there is a newer version since 15 days ago, the 4.4.1 in the kvalo github. Im running 4.4.1.c2 right now, which seems to be the candidate 2 which is from 3 months ago. Lets see if the next linux firmware package includes this 4.4.1 version and it fixes monitor mode. Praying.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: potuz on January 12, 2019, 04:23:23 pm
1. Yes, I've looked a lot. I think there is no one complaining about this error because it does not affect wireless connection.
2. I cloned the firmware files https://github.com/kvalo/ath10k-firmware to /lib/firmware/ath10k/. It's not built-in because it's a relatively new network card (heard Fedora 25 already includes it, but I haven't checked yet).

Some output that might be useful:

after airmon-ng start wlan0:
Code: [Select]
root@localhost:/home/leste# iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=0 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
         
I have the same card
Quote
# lspci -s 3a:00
3a:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
And same driver with right firmware from kvalo's github.
Quote
# dmesg | grep -i ath10 | grep firmware
[    2.316840] ath10k_pci 0000:3a:00.0: firmware ver RM.4.4.1.c2-00057-QCARMSWP-1 api 6 features wowlan,ignore-otp,no-4addr-pad,raw-mode crc32 e061250a
However I do not get wireless extensions on wlp58s0mon:
Quote
# airmon-ng start wlp58s0

Found 3 processes that could cause trouble.
Kill them using 'airmon-ng check kill' before putting
the card in monitor mode, they will interfere by changing channels
and sometimes putting the interface back in managed mode

  PID Name
19227 NetworkManager
19506 wpa_supplicant
19528 dhclient

PHY   Interface   Driver      Chipset

phy0   wlp58s0      ath10k_pci   Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

      (mac80211 monitor mode vif enabled for [phy0]wlp58s0 on [phy0]wlp58s0mon)
      (mac80211 station mode vif disabled for [phy0]wlp58s0)

# iwconfig
wlp58s0mon  no wireless extensions.

lo        no wireless extensions.

sit0      no wireless extensions.

#
Running airmon-ng check kill before does not help.
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: potuz on January 12, 2019, 05:35:04 pm
A little more info at least in my case, Dell XPS 9360. Qualcomm Atheros QCA6174 802.11ac. firmware-version: RM.4.4.1.c2-00057-QCARMSWP-1. Running 4.18 on Gentoo. Loading the module
Code: [Select]
modprobe ath10k_core rawmode=1 cryptmode=1
As per recommendation in this thread it seems that I can get the card in promiscuous mode and airodump finds some APs
Code: [Select]
# airodump-ng wlp58s0mon
       TX packets 0  bytes 0 (0.0 B)
 CH  6 ][ Elapsed: 24 s ][ 2019-01-12 15:16                                         
                                                                                                                                                                               
 BSSID              PWR  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID   
                                                                                                                                                                               
 F2:F2:6D:78:FA:3C  -45       75        0    0   6  720  WPA2 CCMP   PSK  campari-guest                                                                                       
 F4:F2:6D:78:FA:3C  -48       87        5    0   6  720  WPA2 CCMP   PSK  campari-2.4                                                                                         
 FC:15:B4:D4:77:FE  -63        3        0    0   1  54e. WPA2 CCMP   PSK  HP-Print-FE-Deskjet 3540 series                                                                     
 48:F8:B3:27:9C:CE  -64        5        0    0   1  130  WPA2 CCMP   PSK  LCR                                                                                                 
 0A:05:D0:13:7C:F2  -65       13        1    0   9  130  WPA2 CCMP   PSK  (((DudueDan)))                                                                                       
 38:6B:BB:B7:47:C9  -66        3        0    0   6   65  WPA  CCMP   PSK  Dr. Ricardo Eisenstein                                                                               
 24:A0:74:78:89:54  -67        1        0    0   6  195  WPA2 CCMP   PSK  Egberto's Wi-Fi Network                                                                             
 4C:D0:8A:AC:D7:4A  -70        2        0    0  11  130  WPA2 CCMP   PSK  Net-Virtua-5433-2.4G                                                                                 
 6C:B5:6B:56:22:10  -69        5        0    0  11  130  WPA2 CCMP   PSK  ZSARNO                                                                                               
 4E:D0:8A:AC:D7:4B  -71        3        0    0  11  130  OPN              #NET-CLARO-WIFI                                                                                       
                                                                                                                                                                               
 BSSID              STATION            PWR   Rate    Lost    Frames  Probe                                                                                                     
                                                                                                                                                                               
 F4:F2:6D:78:FA:3C  A8:96:75:23:EB:A4  -60    0e- 1      0        8                                                                                                             
 0A:05:D0:13:7C:F2  F8:62:14:ED:E8:ED   -1    1e- 0      0        1
However I can set the channel to anything cause iwconfig does not see the wireless extensions
Code: [Select]
# iwconfig
wlp58s0mon  no wireless extensions.
But anyway running an attack on my own AP I see
Code: [Select]
# aireplay-ng --ignore-negative-one -0 0 -a F4:F2:6D:78:FA:3C wlp58s0mon
15:19:53  Waiting for beacon frame (BSSID: F4:F2:6D:78:FA:3C) on channel -1
NB: this attack is more effective when targeting
a connected wireless client (-c <client's mac>).
15:19:53  Sending DeAuth (code 7) to broadcast -- BSSID: [F4:F2:6D:78:FA:3C]
15:19:54  Sending DeAuth (code 7) to broadcast -- BSSID: [F4:F2:6D:78:FA:3C]
15:19:54  Sending DeAuth (code 7) to broadcast -- BSSID: [F4:F2:6D:78:FA:3C]
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: potuz on January 13, 2019, 12:35:04 pm
Couldn't get injection to work. Monitor mode does work albeit some random firmware crashes that require a cold boot. But the injection test has never passed. Running on a Killer 1535 QCA6174. I see this patch in the kernel tree (the one providing the kernel modules used above)

https://patchwork.kernel.org/patch/6345131/

And in the description I see that the use cases are precisely for raw Tx injection, am I reading this wrong?. Has anyone ever manage to get injection working on this card?
Title: Aircrack on Qualcomm Atheros QCA6174
Post by: BarryArils on July 06, 2019, 10:33:25 am
because I had a lot of Qualcomm Atheros Wireless Cards and the firmware came in the kernel or in the firmware-linux metapackage with the non-free repo. Had you tried to apt update and install the firmware-linux?
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: madafakaz on October 20, 2019, 06:43:48 pm
here's how it works and why:

when you start mon interface with airmon-ng and have sta interface disconnected airodump will not find any AP
if you have sta interface connected to an AP and run airodump on mon interface it will find AP
or if you put sta interface down e.g. ifconfig wlanX down and leave only mon interface active airodump will find AP

this is at least how it works with qca9880 and it's probably the same with qca6174
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Mauricio on October 21, 2019, 01:57:19 pm
Also with the problem Qualcomm Atheros QCA6174 or airodump-ng keeps searching the channels and finds nothing ...
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: horseface on January 23, 2020, 07:54:49 pm
Has anybody got this working?
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: jojo on October 06, 2020, 02:43:24 am
This was tested and works on an XPS 15 9560 with a Killer Wireless 1535 QCA6174

STEPS:
1- Download https://github.com/kvalo/ath10k-firmware/blob/master/QCA6174/hw3.0/4.4.1.c3/firmware-6.bin_WLAN.RM.4.4.1.c3-00059 (https://github.com/kvalo/ath10k-firmware/blob/master/QCA6174/hw3.0/4.4.1.c3/firmware-6.bin_WLAN.RM.4.4.1.c3-00059)

2- Make a copy of /lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin

3- Change downloaded file name, permissions(chmod), owner(chown) and group(chgrp) to match the original firmware-6.bin

4- Run this (replace wlp2s0 with your interface name):
Code: [Select]
sudo airmon-ng stop wlp2s0 && sudo airmon-ng check kill && sudo modprobe -r ath10k_pci && sudo modprobe -r ath10k_core
5- Replace /lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin with the downloaded file

6- Restart PC

7- Run the following to enable/disable monitoring (replace wlp2s0 with your interface name):

ENABLE:
Code: [Select]
sudo modprobe -r ath10k_pci
sudo modprobe -r ath10k_core
sudo modprobe ath10k_core rawmode=1 cryptmode=1
sudo modprobe ath10k_pci
sudo airmon-ng check kill
sudo airmon-ng start wlp2s0

DISABLE:
Code: [Select]
sudo modprobe -r ath10k_pci
sudo modprobe -r ath10k_core
sudo modprobe ath10k_core rawmode=0 cryptmode=0
sudo modprobe ath10k_pci
sudo airmon-ng stop wlp2s0
sudo service network-manager start

CREDITS: https://www.linuxquestions.org/questions/linux-networking-3/how-to-fix-qualcomm-atheros-qca6174-on-aircrack-ng-modem-mode-4175648771/ (https://www.linuxquestions.org/questions/linux-networking-3/how-to-fix-qualcomm-atheros-qca6174-on-aircrack-ng-modem-mode-4175648771/)
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: GetRektBoy724 on October 07, 2020, 04:13:53 pm
is this packet injection supported??
Title: Re: Aircrack on Qualcomm Atheros QCA6174
Post by: Ufo on November 05, 2022, 08:45:50 pm
Confirming the above. Although I had to make some adjustments

replace the firmware
Code: [Select]
sudo mv /lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin_bckp
sudo cp firmware-6.bin_WLAN.RM.4.4.1.c3-00059 /lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin
sudo chmod 777 /lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin
sudo chown root /lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin
sudo chgrp root /lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin

"Enable"
Code: [Select]
sudo modprobe -r ath10k_pci
sudo modprobe -r ath10k_core
sudo modprobe ath10k_core rawmode=1 cryptmode=1
sudo modprobe ath10k_pci
sudo reboot now


Solve potential rfkill problems
Code: [Select]
sudo rfkill unblock wifi; sudo rfkill unblock all
Stop some deamons -> less stuff to kill later
Code: [Select]
sudo service NetworkManager stop
sudo service avahi-daemon stop
sudo service wpa_supplicant stop

Change the wifi-card into the mon mode
Code: [Select]
sudo ifconfig wlp4s0 down
sudo iwconfig wlp4s0 mode monitor
sudo ifconfig wlp4s0 up
sudo airmon-ng check kill
sudo airmon-ng start wlp4s0

Scanning should work
Code: [Select]
sudo airodump-ng wlp4s0

Running ubuntu 20.04, btw, can't be bothered installing Kali or whatever.