Atheros QCNFA335Wifi/bluetooth card not working

I’m testing with a Atheros QCNFA335 Wifi/bluetooth M.2 card which hosts a QCA9565. The kernel manages to find the card.

[   10.222373] ath9k 0000:01:00.0: enabling device (0000 -> 0002)
[   10.222561] ath: phy0: WB335 2-ANT card detected
[   10.222564] ath: phy0: Set BT/WLAN RX diversity capability
[   10.232239] ath: phy0: Enable LNA combining
[   10.233407] ath: phy0: ASPM enabled: 0x43
[   10.233411] ath: EEPROM regdomain: 0x65
[   10.233413] ath: EEPROM indicates we should expect a direct regpair map
[   10.233417] ath: Country alpha2 being used: 00
[   10.233418] ath: Regpair used: 0x65
[   10.236549] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   10.237742] ieee80211 phy0: Atheros AR9565 Rev:1 mem=0xffffff8016e00000, irq=84

Shows up as a pice device.

jetson-nano@jetsonnano-desktop:~$ lspci
00:01.0 PCI bridge: NVIDIA Corporation Device 0fae (rev a1)
00:02.0 PCI bridge: NVIDIA Corporation Device 0faf (rev a1)
01:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

However there are errors in the kernel log and the wlan0 interface isn’t working as ‘iw wlan0 scan’ returns nothing.

[   15.198369] mc-err: (0) csr_afir: EMEM address decode error
[   15.204128] mc-err:   status = 0x2004400e; addr = 0x59edf500
[   15.209860] mc-err:   secure: no, access-type: read, SMMU fault: none
[   15.229437] r8168: eth0: link up
[   15.230364] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.261910] mc-err: (0) csr_afir: EMEM address decode error
[   15.267603] mc-err:   status = 0x2000000e; addr = 0x5f8f7e00
[   15.273306] mc-err:   secure: no, access-type: read, SMMU fault: none
[   15.334096] mc-err: (0) csr_afir: EMEM address decode error
[   15.340121] mc-err:   status = 0x2004300e; addr = 0x59edf2c0
[   15.346010] mc-err:   secure: no, access-type: read, SMMU fault: none
[   15.401576] mc-err: (0) csr_afir: EMEM address decode error
[   15.407291] mc-err:   status = 0x2000700e; addr = 0x5f8f7bc0
[   15.413030] mc-err:   secure: no, access-type: read, SMMU fault: none
[   15.461924] mc-err: Too many MC errors; throttling prints
[   24.198312] usb 1-2.3: usb_suspend_both: status 0
[   38.218536] mc-err: (0) csr_afir: EMEM address decode error
[   38.224969] mc-err:   status = 0x2000500e; addr = 0x5f8f7740
[   38.230831] mc-err:   secure: no, access-type: read, SMMU fault: none
[   38.282686] mc-err: (0) csr_afir: EMEM address decode error
[   38.288829] mc-err:   status = 0x2004400e; addr = 0x5f8f7500
[   38.294870] mc-err:   secure: no, access-type: read, SMMU fault: none
[   38.346717] mc-err: (0) csr_afir: EMEM address decode error
[   38.352870] mc-err:   status = 0x2004300e; addr = 0x5f8f72c0
[   38.358883] mc-err:   secure: no, access-type: read, SMMU fault: none
[   38.418842] mc-err: (0) csr_afir: EMEM address decode error
[   38.425171] mc-err:   status = 0x2000000e; addr = 0x59edec00
[   38.431074] mc-err:   secure: no, access-type: read, SMMU fault: none
[   38.485949] mc-err: Too many MC errors; throttling prints
[   71.211138] mc-err: (0) csr_afir: EMEM address decode error
[   71.217319] mc-err:   status = 0x2004300e; addr = 0x67c5d4c0
[   71.223380] mc-err:   secure: no, access-type: read, SMMU fault: none
[   71.231934] mc-err: (0) csw_afiw: EMEM address decode error
[   71.238251] mc-err:   status = 0x20011031; addr = 0x5ff36060
[   71.244267] mc-err:   secure: no, access-type: write, SMMU fault: none
[   71.279049] mc-err: (0) csr_afir: EMEM address decode error
[   71.285390] mc-err:   status = 0x2000500e; addr = 0x59ee6540
[   71.291441] mc-err:   secure: no, access-type: read, SMMU fault: none
[   71.343109] mc-err: (0) csr_afir: EMEM address decode error
[   71.349235] mc-err:   status = 0x2000200e; addr = 0x67c5d280
[   71.355273] mc-err:   secure: no, access-type: read, SMMU fault: none
[   71.407256] mc-err: Too many MC errors; throttling prints
[  114.240797] mc-err: (0) csw_afiw: EMEM address decode error
[  114.246653] mc-err:   status = 0x20011031; addr = 0x697d6060
[  114.252528] mc-err:   secure: no, access-type: write, SMMU fault: none
[  114.314720] mc-err: (0) csr_afir: EMEM address decode error
[  114.320708] mc-err:   status = 0x2004300e; addr = 0x59ee60c0
[  114.326752] mc-err:   secure: no, access-type: read, SMMU fault: none
[  114.378632] mc-err: (0) csr_afir: EMEM address decode error
[  114.384635] mc-err:   status = 0x2000200e; addr = 0x59ee5e80
[  114.390633] mc-err:   secure: no, access-type: read, SMMU fault: none
[  114.442818] mc-err: (0) csr_afir: EMEM address decode error
[  114.448812] mc-err:   status = 0x2004100e; addr = 0x59ee5c40
[  114.454831] mc-err:   secure: no, access-type: read, SMMU fault: none
[  114.506670] mc-err: Too many MC errors; throttling prints
[  167.249606] mc-err: (0) csr_afir: EMEM address decode error
[  167.255480] mc-err:   status = 0x2004400e; addr = 0x67c5b300
[  167.261591] mc-err:   secure: no, access-type: read, SMMU fault: none
[  167.283132] mc-err: (0) csw_afiw: EMEM address decode error
[  167.288908] mc-err:   status = 0x20011031; addr = 0x681c6060
[  167.294861] mc-err:   secure: no, access-type: write, SMMU fault: none
[  167.321528] mc-err: (0) csr_afir: EMEM address decode error
[  167.327522] mc-err:   status = 0x2000000e; addr = 0x5f8f6c00
[  167.333521] mc-err:   secure: no, access-type: read, SMMU fault: none
[  167.389592] mc-err: (0) csr_afir: EMEM address decode error
[  167.395595] mc-err:   status = 0x2004300e; addr = 0x67c5b0c0
[  167.401603] mc-err:   secure: no, access-type: read, SMMU fault: none
[  167.453503] mc-err: Too many MC errors; throttling prints
[  230.216160] mc-err: (0) csr_afir: EMEM address decode error
[  230.221924] mc-err:   status = 0x2000200e; addr = 0x67c5ae80
[  230.227827] mc-err:   secure: no, access-type: read, SMMU fault: none
[  230.280782] mc-err: (0) csr_afir: EMEM address decode error
[  230.286622] mc-err:   status = 0x2004100e; addr = 0x67c5ac40
[  230.292740] mc-err:   secure: no, access-type: read, SMMU fault: none
[  230.344756] mc-err: (0) csr_afir: EMEM address decode error
[  230.350599] mc-err:   status = 0x2000000e; addr = 0x67c5aa00
[  230.356706] mc-err:   secure: no, access-type: read, SMMU fault: none
[  230.408748] mc-err: (0) csr_afir: EMEM address decode error
[  230.414594] mc-err:   status = 0x2000700e; addr = 0x67c5a7c0
[  230.420713] mc-err:   secure: no, access-type: read, SMMU fault: none
[  230.472727] mc-err: Too many MC errors; throttling prints
[  293.233673] mc-err: (0) csw_afiw: EMEM address decode error
[  293.239623] mc-err:   status = 0x20011031; addr = 0x59f66060
[  293.245656] mc-err:   secure: no, access-type: write, SMMU fault: none
[  293.252768] mc-err: (0) csr_afir: EMEM address decode error
[  293.258958] mc-err:   status = 0x2004400e; addr = 0x67c5a100
[  293.264826] mc-err:   secure: no, access-type: read, SMMU fault: none
[  293.315546] mc-err: (0) csr_afir: EMEM address decode error
[  293.321410] mc-err:   status = 0x2004300e; addr = 0x67c59ec0
[  293.327557] mc-err:   secure: no, access-type: read, SMMU fault: none
[  293.379376] mc-err: (0) csr_afir: EMEM address decode error
[  293.385361] mc-err:   status = 0x2000200e; addr = 0x67c59c80
[  293.391359] mc-err:   secure: no, access-type: read, SMMU fault: none
[  293.443692] mc-err: Too many MC errors; throttling prints

Any help with this?

try this

https://devtalk.nvidia.com/default/topic/940077/ath9k-driver-causes-csr_afir-emem-address-decode-error-fixed-/

That was for a an old kernel and doesn’t work. The same issue is reported for the ath10K and waiting a Nvidia fix.

Tried that one and recompiled the kernel with no luck