[19.07.3] Qualcomm Atheros QCA9984 802.11ac on a Forlinx OK1046A-C

I have a Forlinx OK1046A-C. It has a NXP LS1046A cpu. I am trying to make a wifi card Compex WLE1216VX work on release 19.07.3.
The wifi card chipset is Qualcomm Atheros QCA9984 802.11ac.

The card is seen as a pci device

root@OpenWrt:~# lspci 
0000:00:00.0 PCI bridge: Freescale Semiconductor Inc Device 81c0 (rev 10)
0000:01:00.0 Network controller: Qualcomm Atheros QCA9984 802.11ac Wave 2 Wireless Network Adapter
0001:00:00.0 PCI bridge: Freescale Semiconductor Inc Device 81c0 (rev 10)
0002:00:00.0 PCI bridge: Freescale Semiconductor Inc Device 81c0 (rev 10)

But it seems to have some issues.

root@OpenWrt:~# iw list
nl80211 not found.

And the card is not recognized

root@OpenWrt:~# iwconfig 
eth2      no wireless extensions.

eth1      no wireless extensions.

br-lan    no wireless extensions.

sit0      no wireless extensions.

eth6      no wireless extensions.

eth4      no wireless extensions.

eth0      no wireless extensions.

eth5      no wireless extensions.

eth3      no wireless extensions.

lo        no wireless extensions.

ath10k-firmware-qca9984-ct and kmod-ath10k-ct are installed?

I have kmod-ath10k-ct but I installed ath10k-firmware-qca9984-ct-htt instead of ath10k-firmware-qca9984-ct, but I'm not sure which one to pick.

Both should work the same, at least for all the nirmal stuff. Now it ewould be time to check dmesg for clues.

root@OpenWrt:~# dmesg 
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.63 (zyh@1ffe9f7b637e) (gcc version 5.5.0 (LEDE GCC 5.5.0 r5410+3-62ede4f783) ) #0 SMP PREEMPT Mon May 13 01:47:55 2019
[    0.000000] Boot CPU: AArch64 Processor [410fd082]
[    0.000000] earlycon: uart8250 at MMIO 0x00000000021c0500 (options '')
[    0.000000] bootconsole [uart8250] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] OF: reserved mem: initialized node qman-fqd, compatible id fsl,qman-fqd
[    0.000000] OF: reserved mem: initialized node qman-pfdr, compatible id fsl,qman-pfdr
[    0.000000] OF: reserved mem: initialized node bman-fbpr, compatible id fsl,bman-fbpr
[    0.000000] cma: Reserved 16 MiB at 0x00000000f7000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000000fbdfffff]
[    0.000000] NUMA: Adding memblock [0x80000000 - 0xf7ffffff] on node 0
[    0.000000] NUMA: Adding memblock [0xfb800000 - 0xfbdfffff] on node 0
[    0.000000] NUMA: Initmem setup node 0 [mem 0x80000000-0xfbdfffff]
[    0.000000] NUMA: NODE_DATA [mem 0xfbdca9c0-0xfbdcc17f]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000fbdfffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000f7ffffff]
[    0.000000]   node   0: [mem 0x00000000fb800000-0x00000000fbdfffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000fbdfffff]
[    0.000000] On node 0 totalpages: 493056
[    0.000000]   DMA zone: 7928 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 493056 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 22 pages/cpu @ffff80007bd6f000 s52952 r8192 d28968 u90112
[    0.000000] pcpu-alloc: s52952 r8192 d28968 u90112 alloc=22*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 485128
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=PARTUUID=357cf3a8-03 rw rootwait
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Memory: 1906148K/1972224K available (10556K kernel code, 644K rwdata, 3376K rodata, 704K init, 931K bss, 49692K reserved, 16384K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffff000000000000 - 0xffff000008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000   (129022 GB)
[    0.000000]       .text : 0xffff000008080000 - 0xffff000008ad0000   ( 10560 KB)
[    0.000000]     .rodata : 0xffff000008ad0000 - 0xffff000008e20000   (  3392 KB)
[    0.000000]       .init : 0xffff000008e20000 - 0xffff000008ed0000   (   704 KB)
[    0.000000]       .data : 0xffff000008ed0000 - 0xffff000008f71200   (   645 KB)
[    0.000000]        .bss : 0xffff000008f71200 - 0xffff000009059fcc   (   932 KB)
[    0.000000]     fixed   : 0xffff7dfffe7fd000 - 0xffff7dfffec00000   (  4108 KB)
[    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 GB maximum)
[    0.000000]               0xffff7e0000000000 - 0xffff7e0001ef8000   (    30 MB actual)
[    0.000000]     memory  : 0xffff800000000000 - 0xffff80007be00000   (  1982 MB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 64.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] GIC: Adjusting CPU interface base to 0x000000000142f000
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 25.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[    0.000001] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[    0.008287] Console: colour dummy device 80x25
[    0.012774] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=100000)
[    0.023183] pid_max: default: 32768 minimum: 301
[    0.027880] Security Framework initialized
[    0.032244] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.039970] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.047226] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.053965] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.061555] ASID allocator initialised with 65536 entries
[    0.099115] EFI services will not be available.
[    0.144870] Detected PIPT I-cache on CPU1
[    0.144887] CPU1: Booted secondary processor [410fd082]
[    0.176609] Detected PIPT I-cache on CPU2
[    0.176621] CPU2: Booted secondary processor [410fd082]
[    0.208634] Detected PIPT I-cache on CPU3
[    0.208646] CPU3: Booted secondary processor [410fd082]
[    0.208674] Brought up 4 CPUs
[    0.239464] SMP: Total of 4 processors activated.
[    0.244190] CPU features: detected feature: 32-bit EL0 Support
[    0.250070] CPU: All CPU(s) started at EL2
[    0.257277] DMI not present or invalid.
[    0.261218] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.271026] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.277415] xor: measuring software checksum speed
[    0.322247]    8regs     :  7146.000 MB/sec
[    0.366462]    8regs_prefetch:  6308.000 MB/sec
[    0.411028]    32regs    :  7673.000 MB/sec
[    0.455244]    32regs_prefetch:  7221.000 MB/sec
[    0.459881] xor: using function: 32regs (7673.000 MB/sec)
[    0.465732] NET: Registered protocol family 16
[    0.490214] cpuidle: using governor menu
[    0.494371] Bman ver:0a02,02,01
[    0.499523] qman-fqd addr 0x00000000fb000000 size 0x800000
[    0.505037] qman-pfdr addr 0x00000000f8000000 size 0x2000000
[    0.510727] Qman ver:0a01,03,02,01
[    0.514191] vdso: 2 pages (1 code @ ffff000008ad6000, 1 data @ ffff000008ed5000)
[    0.521961] DMA: preallocated 256 KiB pool for atomic allocations
[    0.528146] Serial: AMBA PL011 UART driver
[    0.534961] Machine: LS1046A RDB Board
[    0.538729] SoC family: QorIQ LS1046A
[    0.542402] SoC ID: svr:0x87070010, Revision: 1.0
[    0.575335] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.647244] raid6: int64x1  gen()  1154 MB/s
[    0.719600] raid6: int64x1  xor()   983 MB/s
[    0.791935] raid6: int64x2  gen()  1209 MB/s
[    0.864266] raid6: int64x2  xor()  1283 MB/s
[    0.936602] raid6: int64x4  gen()  1495 MB/s
[    1.008933] raid6: int64x4  xor()  1270 MB/s
[    1.081283] raid6: int64x8  gen()  1863 MB/s
[    1.153623] raid6: int64x8  xor()  1511 MB/s
[    1.225955] raid6: neonx1   gen()  2213 MB/s
[    1.298282] raid6: neonx1   xor()  1463 MB/s
[    1.370624] raid6: neonx2   gen()  2855 MB/s
[    1.442953] raid6: neonx2   xor()  2047 MB/s
[    1.515285] raid6: neonx4   gen()  3430 MB/s
[    1.587606] raid6: neonx4   xor()  2446 MB/s
[    1.659926] raid6: neonx8   gen()  3503 MB/s
[    1.732250] raid6: neonx8   xor()  2649 MB/s
[    1.736537] raid6: using algorithm neonx8 gen() 3503 MB/s
[    1.741961] raid6: .... xor() 2649 MB/s, rmw enabled
[    1.746947] raid6: using intx1 recovery algorithm
[    1.751743] ACPI: Interpreter disabled.
[    1.756816] RCPM: layerscape_rcpm_init: Can't find the RCPM node.
[    1.763321] vgaarb: loaded
[    1.766149] SCSI subsystem initialized
[    1.769984] libata version 3.00 loaded.
[    1.770129] usbcore: registered new interface driver usbfs
[    1.775667] usbcore: registered new interface driver hub
[    1.781032] usbcore: registered new device driver usb
[    1.786289] imx-i2c 2180000.i2c: fsl-scl-gpio not found
[    1.791564] imx-i2c 2180000.i2c: can't get pinctrl, bus recovery not supported
[    1.798957] i2c i2c-0: IMX I2C adapter registered
[    1.803702] i2c i2c-0: using dma0chan16 (tx) and dma0chan17 (rx) for DMA transfers
[    1.811355] imx-i2c 21a0000.i2c: fsl-scl-gpio not found
[    1.816625] imx-i2c 21a0000.i2c: can't get pinctrl, bus recovery not supported
[    1.823977] i2c i2c-1: IMX I2C adapter registered
[    1.828708] i2c i2c-1: can't use DMA, using PIO instead.
[    1.834072] imx-i2c 21b0000.i2c: fsl-scl-gpio not found
[    1.839341] imx-i2c 21b0000.i2c: can't get pinctrl, bus recovery not supported
[    1.846653] i2c i2c-2: IMX I2C adapter registered
[    1.851382] i2c i2c-2: can't use DMA, using PIO instead.
[    1.856791] Linux video capture interface: v2.00
[    1.861449] pps_core: LinuxPPS API ver. 1 registered
[    1.866444] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.875636] PTP clock support registered
[    1.879659] dmi: Firmware registration failed.
[    1.884135] bman-fbpr addr 0x00000000fa000000 size 0x1000000
[    1.889841] Bman err interrupt handler present
[    1.894590] Bman portal initialised, cpu 0
[    1.898759] Bman portal initialised, cpu 1
[    1.902928] Bman portal initialised, cpu 2
[    1.907098] Bman portal initialised, cpu 3
[    1.911212] Bman portals initialised
[    1.915562] Qman err interrupt handler present
[    1.920436] QMan: Allocated lookup table at ffff000009531000, entry count 131073
[    1.928136] Qman portal initialised, cpu 0
[    1.932300] Qman portal initialised, cpu 1
[    1.936464] Qman portal initialised, cpu 2
[    1.940623] Qman portal initialised, cpu 3
[    1.944739] Qman portals initialised
[    1.948367] Bman: BPID allocator includes range 32:32
[    1.953467] Qman: FQID allocator includes range 256:256
[    1.958719] Qman: FQID allocator includes range 32768:32768
[    1.964345] Qman: CGRID allocator includes range 0:256
[    1.969627] Qman: pool channel allocator includes range 1025:15
[    1.975628] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[    1.981819] Advanced Linux Sound Architecture Driver Initialized.
[    1.988261] clocksource: Switched to clocksource arch_sys_counter
[    1.994448] VFS: Disk quotas dquot_6.6.0
[    1.998415] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    2.005422] pnp: PnP ACPI: disabled
[    2.011119] NET: Registered protocol family 2
[    2.015744] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    2.023090] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    2.029907] TCP: Hash tables configured (established 16384 bind 16384)
[    2.036504] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    2.042570] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    2.049126] NET: Registered protocol family 1
[    2.053516] PCI: CLS 0 bytes, default 64
[    2.053680] kvm [1]: 8-bit VMID
[    2.056835] kvm [1]: IDMAP page: 81abf000
[    2.060864] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[    2.066921] kvm [1]: Hyp mode initialized successfully
[    2.072116] kvm [1]: vgic-v2@1440000
[    2.075763] kvm [1]: vgic interrupt IRQ1
[    2.079710] kvm [1]: virtual timer IRQ4
[    2.084481] audit: initializing netlink subsys (disabled)
[    2.089928] audit: type=2000 audit(1.940:1): initialized
[    2.095283] No memory allocated for crashlog
[    2.099646] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    2.106371] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.112247] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.122160] fuse init (API version 7.26)
[    2.126152] SGI XFS with security attributes, realtime, no debug enabled
[    2.134205] async_tx: api initialized (async)
[    2.138610] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    2.146083] io scheduler noop registered
[    2.150031] io scheduler cfq registered (default)
[    2.155934] OF: PCI: host bridge /soc/pcie@3400000 ranges:
[    2.161458] OF: PCI:    IO 0x4000010000..0x400001ffff -> 0x00000000
[    2.167763] OF: PCI:   MEM 0x4040000000..0x407fffffff -> 0x40000000
[    2.174147] layerscape-pcie 3400000.pcie: PCI host bridge to bus 0000:00
[    2.180889] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.186402] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    2.192617] pci_bus 0000:00: root bus resource [mem 0x4040000000-0x407fffffff] (bus address [0x40000000-0x7fffffff])
[    2.203209] pci 0000:00:00.0: [1957:81c0] type 01 class 0x060400
[    2.203222] pci 0000:00:00.0: reg 0x38: [mem 0x4040000000-0x40400007ff pref]
[    2.203249] pci 0000:00:00.0: supports D1 D2
[    2.203251] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
[    2.203428] pci 0000:01:00.0: [168c:0046] type 00 class 0x028000
[    2.203497] pci 0000:01:00.0: reg 0x10: [mem 0x4040200000-0x40403fffff 64bit]
[    2.203832] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.212306] pci 0000:00:00.0: BAR 14: assigned [mem 0x4040000000-0x40401fffff]
[    2.219572] pci 0000:00:00.0: BAR 6: assigned [mem 0x4040200000-0x40402007ff pref]
[    2.227187] pci 0000:01:00.0: BAR 0: assigned [mem 0x4040000000-0x40401fffff 64bit]
[    2.234917] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.239907] pci 0000:00:00.0:   bridge window [mem 0x4040000000-0x40401fffff]
[    2.247186] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt
[    2.254186] pci 0000:01:00.0: Signaling PME through PCIe PME interrupt
[    2.260857] OF: PCI: host bridge /soc/pcie@3500000 ranges:
[    2.266377] OF: PCI:    IO 0x4800010000..0x480001ffff -> 0x00000000
[    2.272681] OF: PCI:   MEM 0x4840000000..0x487fffffff -> 0x40000000
[    2.279053] layerscape-pcie 3500000.pcie: PCI host bridge to bus 0001:00
[    2.285793] pci_bus 0001:00: root bus resource [bus 00-ff]
[    2.291308] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x0000-0xffff])
[    2.300319] pci_bus 0001:00: root bus resource [mem 0x4840000000-0x487fffffff] (bus address [0x40000000-0x7fffffff])
[    2.310909] pci 0001:00:00.0: [1957:81c0] type 01 class 0x060400
[    2.310921] pci 0001:00:00.0: reg 0x38: [mem 0x4840000000-0x48400007ff pref]
[    2.310942] pci 0001:00:00.0: supports D1 D2
[    2.310944] pci 0001:00:00.0: PME# supported from D0 D1 D2 D3hot
[    2.311079] pci 0001:00:00.0: BAR 6: assigned [mem 0x4840000000-0x48400007ff pref]
[    2.318694] pci 0001:00:00.0: PCI bridge to [bus 01]
[    2.323774] pcieport 0001:00:00.0: Signaling PME through PCIe PME interrupt
[    2.330891] OF: PCI: host bridge /soc/pcie@3600000 ranges:
[    2.336411] OF: PCI:    IO 0x5000010000..0x500001ffff -> 0x00000000
[    2.342714] OF: PCI:   MEM 0x5040000000..0x507fffffff -> 0x40000000
[    2.349087] layerscape-pcie 3600000.pcie: PCI host bridge to bus 0002:00
[    2.355827] pci_bus 0002:00: root bus resource [bus 00-ff]
[    2.361341] pci_bus 0002:00: root bus resource [io  0x20000-0x2ffff] (bus address [0x0000-0xffff])
[    2.370353] pci_bus 0002:00: root bus resource [mem 0x5040000000-0x507fffffff] (bus address [0x40000000-0x7fffffff])
[    2.380942] pci 0002:00:00.0: [1957:81c0] type 01 class 0x060400
[    2.380954] pci 0002:00:00.0: reg 0x38: [mem 0x5040000000-0x50400007ff pref]
[    2.380974] pci 0002:00:00.0: supports D1 D2
[    2.380976] pci 0002:00:00.0: PME# supported from D0 D1 D2 D3hot
[    2.381109] pci 0002:00:00.0: BAR 6: assigned [mem 0x5040000000-0x50400007ff pref]
[    2.388724] pci 0002:00:00.0: PCI bridge to [bus 01]
[    2.393806] pcieport 0002:00:00.0: Signaling PME through PCIe PME interrupt
[    2.401940] Freescale LS2 console driver
[    2.405915] fsl-ls2-console: device fsl_mc_console registered
[    2.411718] fsl-ls2-console: device fsl_aiop_console registered
[    2.417916] xenfs: not registering filesystem on non-xen platform
[    2.425156] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    2.432081] console [ttyS0] disabled
[    2.435689] 21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 37, base_baud = 21875000) is a 16550A
[    2.444540] console [ttyS0] enabled
[    2.451521] bootconsole [uart8250] disabled
[    2.460034] 21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 37, base_baud = 21875000) is a 16550A
[    2.468955] 21d0500.serial: ttyS2 at MMIO 0x21d0500 (irq = 38, base_baud = 21875000) is a 16550A
[    2.477870] 21d0600.serial: ttyS3 at MMIO 0x21d0600 (irq = 38, base_baud = 21875000) is a 16550A
[    2.490913] brd: module loaded
[    2.496050] loop: module loaded
[    2.553471] hisi_sas: driver version v1.6
[    2.558215] ahci-qoriq 3200000.sata: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[    2.567184] ahci-qoriq 3200000.sata: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst 
[    2.577180] scsi host0: ahci-qoriq
[    2.580677] ata1: SATA max UDMA/133 mmio [mem 0x03200000-0x0320ffff] port 0x100 irq 48
[    2.589227] fsl-quadspi 1550000.quadspi: n25q128a13 (16384 Kbytes)
[    2.596269] libphy: Fixed MDIO Bus: probed
[    2.600708] tun: Universal TUN/TAP device driver, 1.6
[    2.605756] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    2.612350] libphy: Freescale XGMAC MDIO Bus: probed
[    2.618349] libphy: Freescale XGMAC MDIO Bus: probed
[    2.624315] libphy: Freescale XGMAC MDIO Bus: probed
[    2.629420] libphy: Freescale XGMAC MDIO Bus: probed
[    2.634522] libphy: Freescale XGMAC MDIO Bus: probed
[    2.639626] libphy: Freescale XGMAC MDIO Bus: probed
[    2.644728] libphy: Freescale XGMAC MDIO Bus: probed
[    2.649832] libphy: Freescale XGMAC MDIO Bus: probed
[    2.654935] libphy: Freescale XGMAC MDIO Bus: probed
[    2.660039] libphy: Freescale XGMAC MDIO Bus: probed
[    2.673747] Freescale FM module, FMD API version 21.1.0
[    2.680765] Freescale FM Ports module
[    2.684423] fsl_mac: fsl_mac: FSL FMan MAC API based driver
[    2.690296] fsl_mac 1ae0000.ethernet: FMan MEMAC
[    2.694913] fsl_mac 1ae0000.ethernet: FMan MAC address: 7e:4e:b2:d3:b2:19
[    2.701773] fsl_mac 1ae4000.ethernet: FMan MEMAC
[    2.706389] fsl_mac 1ae4000.ethernet: FMan MAC address: be:27:e8:3a:32:eb
[    2.713247] fsl_mac 1ae6000.ethernet: FMan MEMAC
[    2.717863] fsl_mac 1ae6000.ethernet: FMan MAC address: aa:ed:b4:bb:55:db
[    2.724883] fsl_mac 1ae8000.ethernet: FMan MEMAC
[    2.729499] fsl_mac 1ae8000.ethernet: FMan MAC address: c6:f2:c8:3f:04:42
[    2.736521] fsl_mac 1aea000.ethernet: FMan MEMAC
[    2.741137] fsl_mac 1aea000.ethernet: FMan MAC address: de:4b:11:16:ca:5e
[    2.747995] fsl_mac 1af0000.ethernet: FMan MEMAC
[    2.752610] fsl_mac 1af0000.ethernet: FMan MAC address: 6a:ee:6c:12:c8:ac
[    2.759632] fsl_mac 1af2000.ethernet: FMan MEMAC
[    2.764247] fsl_mac 1af2000.ethernet: FMan MAC address: 8e:0a:ce:91:c1:fc
[    2.771050] fsl_dpa: FSL DPAA Ethernet driver
[    2.780309] fsl_dpa: fsl_dpa: Probed interface eth0
[    2.790276] fsl_dpa: fsl_dpa: Probed interface eth1
[    2.800575] fsl_dpa: fsl_dpa: Probed interface eth2
[    2.810183] fsl_dpa: fsl_dpa: Probed interface eth3
[    2.819771] fsl_dpa: fsl_dpa: Probed interface eth4
[    2.829594] fsl_dpa: fsl_dpa: Probed interface eth5
[    2.839568] fsl_dpa: fsl_dpa: Probed interface eth6
[    2.844523] fsl_advanced: FSL DPAA Advanced drivers:
[    2.849496] fsl_proxy: FSL DPAA Proxy initialization driver
[    2.855202] fsl_oh: FSL FMan Offline Parsing port driver
[    2.860814] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    2.867860] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    2.873644] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    2.879473] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    2.885414] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    2.892372] igb: Copyright (c) 2007-2014 Intel Corporation.
[    2.897963] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    2.902378] ata1: SATA link down (SStatus 0 SControl 300)
[    2.911181] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    2.917113] sky2: driver version 1.30
[    2.921185] VFIO - User Level meta-driver version: 0.3
[    2.926615] dwc3 2f00000.usb: request value same as default, ignoring
[    2.933247] dwc3 3000000.usb: request value same as default, ignoring
[    2.939825] dwc3 3100000.usb: request value same as default, ignoring
[    2.946773] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.953298] ehci-pci: EHCI PCI platform driver
[    2.957758] ehci-platform: EHCI generic platform driver
[    2.963097] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.969279] ohci-pci: OHCI PCI platform driver
[    2.973738] ohci-platform: OHCI generic platform driver
[    2.979224] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    2.984713] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    2.992516] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x02010010
[    3.001231] xhci-hcd xhci-hcd.0.auto: irq 45, io mem 0x02f00000
[    3.007365] hub 1-0:1.0: USB hub found
[    3.011121] hub 1-0:1.0: 1 port detected
[    3.015149] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.020635] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    3.028310] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.036578] hub 2-0:1.0: USB hub found
[    3.040334] hub 2-0:1.0: 1 port detected
[    3.044377] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    3.049864] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    3.057658] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x02010010
[    3.066368] xhci-hcd xhci-hcd.1.auto: irq 46, io mem 0x03000000
[    3.072469] hub 3-0:1.0: USB hub found
[    3.076217] hub 3-0:1.0: 1 port detected
[    3.080238] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    3.085726] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    3.093397] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.101664] hub 4-0:1.0: USB hub found
[    3.105418] hub 4-0:1.0: 1 port detected
[    3.109462] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    3.114950] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 5
[    3.122770] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x02010010
[    3.131481] xhci-hcd xhci-hcd.2.auto: irq 47, io mem 0x03100000
[    3.137582] hub 5-0:1.0: USB hub found
[    3.141336] hub 5-0:1.0: 1 port detected
[    3.145355] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    3.150872] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 6
[    3.158548] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.166814] hub 6-0:1.0: USB hub found
[    3.170569] hub 6-0:1.0: 1 port detected
[    3.174658] usbcore: registered new interface driver usb-storage
[    3.181472] mousedev: PS/2 mouse device common for all mice
[    3.200187] rtc-rx8010 1-0032: rtc core: registered rx8010 as rtc0
[    3.206423] i2c /dev entries driver
[    3.210267] usbcore: registered new interface driver uvcvideo
[    3.216050] USB Video Class driver (1.1.1)
[    3.220962] imx2-wdt 2ad0000.watchdog: timeout 60 sec (nowayout=0)
[    3.227439] qoriq_cpufreq: Freescale QorIQ CPU frequency scaling driver
[    3.234343] sdhci: Secure Digital Host Controller Interface driver
[    3.240520] sdhci: Copyright(c) Pierre Ossman
[    3.244919] Synopsys Designware Multimedia Card Interface Driver
[    3.251232] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.300278] mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA 64-bit
[    3.311517] ledtrig-cpu: registered to indicate activity on CPUs
[    3.318469] platform caam_qi: Linux CAAM Queue I/F driver initialised
[    3.326924] caam 1700000.crypto: device ID = 0x0a11030100000000 (Era 8)
[    3.335545] caam 1700000.crypto: job rings = 3, qi = 1, dpaa2 = no
[    3.357283] caam algorithms registered in /proc/crypto
[    3.363684] platform caam_qi: algorithms registered in /proc/crypto
[    3.370772] caam_jr 1710000.jr: registering rng-caam
[    3.375774] caam 1700000.crypto: caam pkc algorithms registered in /proc/crypto
[    3.383377] usbcore: registered new interface driver usbhid
[    3.388951] usbhid: USB HID core driver
[    3.393368] Freescale USDPAA process driver
[    3.397554] fsl-usdpaa: no region found
[    3.401390] Freescale USDPAA process IRQ driver
[    3.406524] Initializing XFRM netlink socket
[    3.410845] NET: Registered protocol family 10
[    3.419762] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.425923] NET: Registered protocol family 17
[    3.430387] 8021q: 802.1Q VLAN Support v1.8
[    3.434583] Key type dns_resolver registered
[    3.438858] Key type ceph registered
[    3.442609] libceph: loaded (mon/osd proto 15/24)
[    3.447505] registered taskstats version 1
[    3.454707] Btrfs loaded, crc32c=crc32c-generic
[    3.464347] rtc-rx8010 1-0032: setting system clock to 2020-07-16 10:53:27 UTC (1594896807)
[    3.472787] ALSA device list:
[    3.475750]   No soundcards found.
[    3.479285] Waiting for root device PARTUUID=357cf3a8-03...
[    3.484968] mmc0: new HS200 MMC card at address 0001
[    3.490173] mmcblk0: mmc0:0001 Q2J55L 7.09 GiB 
[    3.494827] mmcblk0boot0: mmc0:0001 Q2J55L partition 1 16.0 MiB
[    3.500871] mmcblk0boot1: mmc0:0001 Q2J55L partition 2 16.0 MiB
[    3.506912] mmcblk0rpmb: mmc0:0001 Q2J55L partition 3 4.00 MiB
[    3.513410]  mmcblk0: p1 p2 p3
[    3.592606] EXT4-fs (mmcblk0p3): couldn't mount as ext3 due to feature incompatibilities
[    3.610029] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    3.618131] VFS: Mounted root (ext4 filesystem) on device 179:3.
[    3.624460] Freeing unused kernel memory: 704K
[    3.660282] init: Console is alive
[    3.663725] init: - watchdog -
[    3.677016] init: - preinit -
[    3.685345] random: fast init done
[    3.762827] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.791368] mount_root: mounting /dev/root
[    7.795587] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
[    7.801019] mount_root: loading kmods from internal overlay
[    7.807445] mount_root: failed to launch kmodloader from internal overlay
[    7.856601] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.230412] block[2373]: unhandled level 2 translation fault (11) at 0x00000020, esr 0x92000006
[    8.239123] pgd = ffff800073bd9000
[    8.242520] [00000020] *pgd=00000000f3701003, *pud=00000000f35f9003, *pmd=0000000000000000

[    8.252289] CPU: 1 PID: 2373 Comm: block Not tainted 4.9.63 #0
[    8.258118] Hardware name: LS1046A RDB Board (DT)
[    8.262816] task: ffff800074618700 task.stack: ffff800073b6c000
[    8.268740] PC is at 0x406dd8
[    8.271697] LR is at 0x403ab4
[    8.274658] pc : [<0000000000406dd8>] lr : [<0000000000403ab4>] pstate: 80000000
[    8.282048] sp : 0000ffffec24a950
[    8.285356] x29: 0000ffffec24a950 x28: 0000ffff95548000 
[    8.290667] x27: 0000ffff95548000 x26: 0000ffffec24acb8 
[    8.295976] x25: 0000ffff95548cb0 x24: 0000ffffec24abc8 
[    8.301290] x23: 0000ffffec24abc0 x22: 00000000004086ff 
[    8.306599] x21: 0000000000000000 x20: 0000000000000000 
[    8.311910] x19: 000000000041a018 x18: 0000000000000000 
[    8.317222] x17: 0000ffff954d2dc8 x16: 0000000000419ff0 
[    8.322533] x15: 0000000000000004 x14: 0000000000800000 
[    8.327842] x13: 000000006474e551 x12: 0000ffff954849d3 
[    8.333154] x11: 0000000000000020 x10: 000000000041a1d4 
[    8.338484] x9 : 0000000000000001 x8 : 0000000000000038 
[    8.343798] x7 : 0000000000000000 x6 : 0000000000000000 
[    8.349114] x5 : 0000000000000000 x4 : 0000ffff95546b58 
[    8.354426] x3 : 0000ffffec24abc8 x2 : 0000000000000000 
[    8.359738] x1 : 0000000000000000 x0 : 0000000000000000 

[    8.367239] urandom-seed: Seeding with /etc/urandom.seed
[    8.401764] procd: - early -
[    8.404664] procd: - watchdog -
[    8.957641] procd: - watchdog -
[    8.960847] procd: - ubus -
[    9.014030] procd: - init -
[    9.064629] urngd: v1.0.2 started.
[    9.081908] random: crng init done
[   11.239746] br-lan: port 1(eth0) entered blocking state
[   11.244981] br-lan: port 1(eth0) entered disabled state
[   11.250287] device eth0 entered promiscuous mode
[   11.255163] br-lan: port 1(eth0) entered blocking state
[   11.260388] br-lan: port 1(eth0) entered forwarding state
[   11.271268] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   12.240597] br-lan: port 1(eth0) entered disabled state
[   14.288615] br-lan: port 1(eth0) entered blocking state
[   14.293842] br-lan: port 1(eth0) entered forwarding state

There is no driver loaded for the wifi card

root@OpenWrt:~# lspci -v
0000:00:00.0 PCI bridge: Freescale Semiconductor Inc Device 81c0 (rev 10) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 70
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: None
	Memory behind bridge: 40000000-401fffff [size=2M]
	Prefetchable memory behind bridge: None
	Expansion ROM at 4040200000 [disabled] [size=2K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/16 Maskable- 64bit+
	Capabilities: [70] Express Root Port (Slot-), MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Secondary PCI Express <?>
	Kernel driver in use: pcieport
lspci: Unable to load libkmod resources: error -12

0000:01:00.0 Network controller: Qualcomm Atheros QCA9984 802.11ac Wave 2 Wireless Network Adapter
	Subsystem: Qualcomm Atheros Device cafe
	Flags: bus master, fast devsel, latency 0, IRQ 255
	Memory at 4040000000 (64-bit, non-prefetchable) [size=2M]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/32 Maskable+ 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Device Serial Number 00-00-00-00-00-00-00-00
	Capabilities: [158] Latency Tolerance Reporting
	Capabilities: [160] L1 PM Substates

0001:00:00.0 PCI bridge: Freescale Semiconductor Inc Device 81c0 (rev 10) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 71
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: None
	Memory behind bridge: None
	Prefetchable memory behind bridge: None
	Expansion ROM at 4840000000 [disabled] [size=2K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/16 Maskable- 64bit+
	Capabilities: [70] Express Root Port (Slot-), MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Secondary PCI Express <?>
	Kernel driver in use: pcieport

0002:00:00.0 PCI bridge: Freescale Semiconductor Inc Device 81c0 (rev 10) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 72
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: None
	Memory behind bridge: None
	Prefetchable memory behind bridge: None
	Expansion ROM at 5040000000 [disabled] [size=2K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/16 Maskable- 64bit+
	Capabilities: [70] Express Root Port (Slot-), MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Secondary PCI Express <?>
	Kernel driver in use: pcieport

is the kmod loaded?

lsmod | grep ath10k

and why is your dmesg showing kernel 4.9?

Should be version 4.14 for target layerscape and 19.07

lsmod does not return anything, but it's probably normal, I think I have only build-in items.

About the kernel version, it is odd indeed. zyh is the nickname of a developer at Forlinx. I assume flashing the device does not replace the original kernel. I'll look into that to see if I can figure out how to update it.

The stack trace would be the first concern, as afterwards all bets are off.

Maybe this patch is needed.

If you need it this is the link, let me know if you can download it or not, I don't use dropbox very much so unsure if I have the correct settings.
https://www.dropbox.com/s/jyhki6kodcz6d9n/wle1216vx-ath10k-ct-support.zip?dl=1