Ath79 builds with all kmod packages through opkg [flow offloading]

Hi,

I have a TP-Link Archer C5 v1.20. Some time ago, I have flashed TP-Link's Archer C7 v2 firmware because there was a much more recent version solving security issues. The router worked for a couple of days. After that, the 5 GHz wifi stopped working. Then I have flashed again OpenWRT's firmware, this time for Archer C7, and after a couple of months I have found this thread and I have flashed this firmware.

The 5 GHz still fails every 2 - 3 days. The last time it failed it was yesterday with the 4.14.91-1-b7f863e0896642b15e1f9f4e8680800b version. Looking in the kernel log, I have found the messages mentioned by RelentlesS on November 18th, 2018:

[ 12.529018] firmware ath10k!fwcfg-pci-0000:00:00.0.txt: firmware_loading_store: map pages failed

I have updated to 4.14.94-1-1a8c5132c3487c0a39281ef696b5066e and I get these messages:

[   12.092037] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   12.378052] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/fwcfg-pci-0000:00:00.0.txt failed with error -2
[   12.388759] ath10k_pci 0000:00:00.0: Falling back to user helper
[   12.529018] firmware ath10k!fwcfg-pci-0000:00:00.0.txt: firmware_loading_store: map pages failed
[   12.538213] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[   12.549093] ath10k_pci 0000:00:00.0: Falling back to user helper
[   12.799289] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[   13.083719] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/ct-firmware-5.bin failed with error -2
[   13.094870] ath10k_pci 0000:00:00.0: Falling back to user helper
[   13.184601] firmware ath10k!QCA988X!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[   13.194222] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/ct-firmware-2.bin failed with error -2
[   13.205370] ath10k_pci 0000:00:00.0: Falling back to user helper
[   13.375632] firmware ath10k!QCA988X!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[   13.385254] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2
[   13.396137] ath10k_pci 0000:00:00.0: Falling back to user helper
[   13.566927] firmware ath10k!QCA988X!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   13.576289] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-5.bin failed with error -2
[   13.587168] ath10k_pci 0000:00:00.0: Falling back to user helper
[   13.757602] firmware ath10k!QCA988X!hw2.0!firmware-5.bin: firmware_loading_store: map pages failed
[   13.766921] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-4.bin failed with error -2
[   13.777810] ath10k_pci 0000:00:00.0: Falling back to user helper
[   13.955897] firmware ath10k!QCA988X!hw2.0!firmware-4.bin: firmware_loading_store: map pages failed
[   13.965256] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-3.bin failed with error -2
[   13.976136] ath10k_pci 0000:00:00.0: Falling back to user helper
[   14.147436] firmware ath10k!QCA988X!hw2.0!firmware-3.bin: firmware_loading_store: map pages failed
[   14.159887] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   14.169270] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   14.181665] ath10k_pci 0000:00:00.0: firmware ver 10.1-ct-8x-__fW-022-1bbfa151 api 2 features wmi-10.x,has-wmi-mgmt-tx,mfp,txstatus-noack,wmi-10.x-CT,ratemask-CT,txrate-CT,get-temp-CT,tx-rc-CT,cust-stats-CT,retry-gt2-CT,txrate2-CT crc32 66e0dff7
[   14.329912] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   14.340524] ath10k_pci 0000:00:00.0: Falling back to user helper
[   14.448630] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[   14.457907] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   15.476384] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[   15.493833] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[   15.500164] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[   15.508310] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24616 iram: 26584'
[   15.576397] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 2 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1

Later, I get these lines:

[   31.856956] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[   31.874404] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[   31.880755] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[   31.888931] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24616 iram: 26584'
[   31.957432] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
[   32.855854] ath10k_pci 0000:00:00.0: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000

I am not sure if the firmware was loaded successfully and I'll be back with a message if it fails again. Nevertheless, I am interested why the AC wifi card ends working (there's not even a carrier). The N one (2.4 GHz) keeps working after the AC one failed.

Best regards,
Alex.

Later edit: it seems like firmware-2.bin was loaded. The file is stored in /lib/firmware/ath10k/QCA988X/hw2.0/ and it is provided by the ath10k-firmware-qca988x-ct package. The firmware is provided by Candela Technologies and the version is 10.1.something. I went to the official page of the ath10k firmware page and there it is mentioned that the kernel 4.x requires at least 10.2. The ath10k-firmware-qca988x package provides that version of firmware. Could anyone enlighten me about the difference?