Askey rt4230w ath10k firmware crashed

Hello -
I have an askey rt4230w device and it seems to have a hardware issue.
Wondering if anyone has seen this and if there is something wrong that I could fix or if the wireless device is somehow broken.
Here is my full log from boot with enabling b/g/n wifi at the end: https://pastebin.com/nrNS3Uup

The error that occurs after starting the b/g/n wifi is:

[  279.726669] ath10k_pci 0001:01:00.0: wmi: fixing invalid VHT TX rate code 0xff
[  284.955413] ath10k_pci 0001:01:00.0: Cannot communicate with firmware, previous wmi cmds: 36967:-1808 36965:-1912 40859:-1912 36967:-1918, jiffies: -1504, attempting restart restart firmware, dev-flags: 0 x142
[  284.955604] ath10k_pci 0001:01:00.0: failed to send wmi nop: -108
[  284.973067] ath10k_pci 0001:01:00.0: could not request stats (type -268435456 ret -108 specifier 1)
[  284.979457] ath10k_pci 0001:01:00.0: failed to send pdev bss chan info request: -108
[  285.033767] ath10k_pci 0001:01:00.0: removing peer, cleanup-all, deleting: peer 409262f3 vdev: 0 addr: 80:78:71:4d:55:6d
[  285.044157] ath10k_pci 0001:01:00.0: failed to read hi_board_data address: -16
[  288.123676] ath10k_pci 0001:01:00.0: failed to read device register, device is gone
[  288.123711] ath10k_pci 0001:01:00.0: failed to wait for target after cold reset: -5
[  288.133301] ieee80211 phy1: Hardware restart was requested
[  288.138249] ath10k_pci 0001:01:00.0: failed to send pdev bss chan info request: -108
[  288.143456] qcom-pcie 1b700000.pci: Read DBI address failed
[  288.151325] qcom-pcie 1b700000.pci: Read DBI address failed
[  291.233679] ath10k_pci 0001:01:00.0: failed to read device register, device is gone
[  291.233707] ath10k_pci 0001:01:00.0: failed to wait for target after cold reset: -5
[  291.240138] ath10k_pci 0001:01:00.0: firmware crashed during chip reset
[  291.247833] ath10k_pci 0001:01:00.0: failed to reset chip: -5
[  291.248100] ath10k_pci 0001:01:00.0: firmware crashed! (guid ab1127ff-e9e9-4616-a435-869717f80591)
[  291.254421] ath10k_pci 0001:01:00.0: Could not init hif: -5
[  291.254429] ------------[ cut here ]------------
[  291.260288] ath10k_pci 0001:01:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[  291.269196] WARNING: CPU: 0 PID: 75 at backports-6.1.24/net/mac80211/util.c:2419 0xbf1a7448 [mac80211@698a8cef+0x7f000]
[  291.274664] ath10k_pci 0001:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[  291.279460] Hardware became unavailable during restart.
[  291.291010] ath10k_pci 0001:01:00.0: firmware ver 10.4b-ct-9984-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 7ea63dc5
[  291.299937] Modules linked in:
[  291.308988] ath10k_pci 0001:01:00.0: board_file api 2 bmi_id N/A crc32 0bfe5c35
[  291.319868]  pppoe
[  291.342111] ath10k_pci 0001:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 32 raw 0 hwcrypto 1
[  291.344953]  ppp_async
[  291.352120] ath10k_pci 0001:01:00.0: failed to get memcpy hi address for firmware address 4: -28
[  291.354262]  nft_fib_inet
[  291.364573] ath10k_pci 0001:01:00.0: failed to read firmware dump area: -28
[  291.366699]  nf_flow_table_ipv6
[  291.375694] ath10k_pci 0001:01:00.0: in crash-regs-harder
[  291.378155]  nf_flow_table_ipv4
[  291.384973] ath10k_pci 0001:01:00.0: Trying to read crash dump over pingpong registers, len 60
[  291.388049]  nf_flow_table_inet
[  291.393718] ath10k_pci 0001:01:00.0: in crash-regs-harder
[  291.396559]  ath10k_pci
[  291.405283] ath10k_pci 0001:01:00.0: Trying to read crash dump over pingpong registers, len 6
[  291.408275]  ath10k_core
[  291.413874] ath10k_pci 0001:01:00.0: in crash-regs-harder
[  291.416091]  ath
[  291.424834] ath10k_pci 0001:01:00.0: Trying to read crash dump over pingpong registers, len 0
[  291.427371]  pppox
[  291.432663] ath10k_pci 0001:01:00.0: ath10k_pci ATH10K_DBG_BUFFER:
[  291.434643]  ppp_generic
[  291.442992] ath10k_pci 0001:01:00.0: ATH10K_END
[  291.444952]  nft_reject_ipv6
[  291.451065] ath10k_pci 0001:01:00.0: in crash-regs-harder
[  291.453824]  nft_reject_ipv4
[  291.458010] ath10k_pci 0001:01:00.0: Trying to read crash dump over pingpong registers, len 6
[  291.461139]  nft_reject_inet
[  291.466483] ath10k_pci 0001:01:00.0: in crash-regs-harder
[  291.469388]  nft_reject
[  291.477848] ath10k_pci 0001:01:00.0: Trying to read crash dump over pingpong registers, len 0
[  291.480757]  nft_redir
[  291.486096] ath10k_pci 0001:01:00.0: ath10k_pci ATH10K_DBG_BUFFER:
[  291.488313]  nft_quota
[  291.497029] ath10k_pci 0001:01:00.0: ATH10K_END
[  291.499247]  nft_objref
[  291.505469] ath10k_pci 0001:01:00.0: firmware register dump:
[  291.507753]  nft_numgen
[  291.512176] ath10k_pci 0001:01:00.0: [00]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.514680]  nft_nat
[  291.520509] ath10k_pci 0001:01:00.0: [04]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.522688]  nft_masq
[  291.530706] ath10k_pci 0001:01:00.0: [08]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.530714] ath10k_pci 0001:01:00.0: [12]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.530720] ath10k_pci 0001:01:00.0: [16]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.530725] ath10k_pci 0001:01:00.0: [20]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.530731] ath10k_pci 0001:01:00.0: [24]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.530738] ath10k_pci 0001:01:00.0: [28]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.533018]  nft_log
[  291.540796] ath10k_pci 0001:01:00.0: [32]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.543088]  nft_limit
[  291.550949] ath10k_pci 0001:01:00.0: [36]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.558853]  nft_hash
[  291.566757] ath10k_pci 0001:01:00.0: [40]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.574661]  nft_flow_offload
[  291.582496] ath10k_pci 0001:01:00.0: [44]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.590436]  nft_fib_ipv6
[  291.592739] ath10k_pci 0001:01:00.0: [48]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.600527]  nft_fib_ipv4
[  291.602809] ath10k_pci 0001:01:00.0: [52]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.610774]  nft_fib
[  291.613052] ath10k_pci 0001:01:00.0: [56]: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
[  291.620927]  nft_ct
[  291.623959] ath10k_pci 0001:01:00.0: Copy Engine register dump:
[  291.631707]  nft_counter
[  291.634457] ath10k_pci 0001:01:00.0: [00]: 0x0004a000 4294967295 4294967295 4294967295 4294967295
[  291.642211]  nft_chain_nat
[  291.644952] ath10k_pci 0001:01:00.0: [01]: 0x0004a400 4294967295 4294967295 4294967295 4294967295
[  291.644961] ath10k_pci 0001:01:00.0: [02]: 0x0004a800 4294967295 4294967295 4294967295 4294967295
[  291.644969] ath10k_pci 0001:01:00.0: [03]: 0x0004ac00 4294967295 4294967295 4294967295 4294967295
[  291.644976] ath10k_pci 0001:01:00.0: [04]: 0x0004b000 4294967295 4294967295 4294967295 4294967295
[  291.652713]  nf_tables
[  291.655136] ath10k_pci 0001:01:00.0: [05]: 0x0004b400 4294967295 4294967295 4294967295 4294967295
[  291.662783]  nf_nat nf_flow_table nf_conntrack mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc_ccitt compat ledtrig_usbport sha512_arm seqiv cmac leds_gpio xhci_plat_hcd xhci_pci
[  291.664852] ath10k_pci 0001:01:00.0: [06]: 0x0004b800 4294967295 4294967295 4294967295 4294967295
[  291.670684]  xhci_hcd
[  291.673471] ath10k_pci 0001:01:00.0: [07]: 0x0004bc00 4294967295 4294967295 4294967295 4294967295
[  291.682282]  dwc3
[  291.684908] ath10k_pci 0001:01:00.0: [08]: 0x0004c000 4294967295 4294967295 4294967295 4294967295
[  291.693841]  dwc3_qcom
[  291.702639] ath10k_pci 0001:01:00.0: [09]: 0x0004c400 4294967295 4294967295 4294967295 4294967295
[  291.711554]  ohci_platform
[  291.720397] ath10k_pci 0001:01:00.0: [10]: 0x0004c800 4294967295 4294967295 4294967295 4294967295
[  291.722602]  ohci_hcd
[  291.731612] ath10k_pci 0001:01:00.0: [11]: 0x0004cc00 4294967295 4294967295 4294967295 4294967295
[  291.753635]  phy_qcom_ipq806x_usb
[  291.762626] ath10k_pci 0001:01:00.0: failed to get memcpy hi address for firmware address 8: -28
[  291.764943]  ahci
[  291.773785] ath10k_pci 0001:01:00.0: failed to dump debug log area: -28
[  291.775641]  fsl_mph_dr_of
[  291.784536] ath10k_pci 0001:01:00.0: failed to get memcpy hi address for firmware address 72: -28
[  291.786752]  ehci_platform
[  291.795750] ath10k_pci 0001:01:00.0: failed to get memcpy hi address for firmware address 72: -28
[  291.798297]  ehci_fsl
[  291.807277] ath10k_pci 0001:01:00.0: failed to get memcpy hi address for firmware address 76: -28
[  291.809494]  sd_mod
[  291.818400] ath10k_pci 0001:01:00.0: failed to get memcpy hi address for firmware address 76: -28
[  291.821647]  ahci_platform
[  291.830552] ath10k_pci 0001:01:00.0: failed to read firmware RAM BSS memory from 4291072 (48848 B): -28
[  291.832320]  libahci_platform
[  291.838798] ath10k_pci 0001:01:00.0: failed to read firmware ROM BSS memory from 4197376 (12552 B): -28
[  291.841526]  libahci
[  291.850573] ath10k_pci 0001:01:00.0: already restarting
[  291.853071]  libata scsi_mod scsi_common ehci_hcd gpio_button_hotplug crc32c_generic
[  291.915709] CPU: 0 PID: 75 Comm: kworker/0:10 Not tainted 5.15.150 #0
[  291.923641] Hardware name: Generic DT based system
[  291.929976] Workqueue: events_freezable 0xbf16883c [mac80211@698a8cef+0x7f000]
[  291.934669] Function entered at [<c030d978>] from [<c03098bc>]
[  291.941869] Function entered at [<c03098bc>] from [<c0603e84>]
[  291.947687] Function entered at [<c0603e84>] from [<c031e0fc>]
[  291.953500] Function entered at [<c031e0fc>] from [<c031e1d8>]
[  291.959316] Function entered at [<c031e1d8>] from [<bf1a7448>]
[  291.965148] Function entered at [<bf1a7448>] from [<bf16892c>]
[  291.970952] Function entered at [<bf16892c>] from [<c0337e58>]
[  291.976764] Function entered at [<c0337e58>] from [<c03389d8>]
[  291.982581] Function entered at [<c03389d8>] from [<c033f3d0>]
[  291.988398] Function entered at [<c033f3d0>] from [<c0300134>]
[  291.994213] Exception stack(0xc1245fb0 to 0xc1245ff8)
[  292.000027] 5fa0:                                     00000000 00000000 00000000 00000000
[  292.005154] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  292.013312] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  292.021547] ---[ end trace 812331468b91313f ]---
[  292.027979] ------------[ cut here ]------------

This log happens a few times, followed by

ath10k_pci 0001:01:00.0: failed to send pdev bss chan info request: -108

very often in the log.

Enabling the AC radio results in a slightly different output but still no working wireless - https://pastebin.com/H1EsR8J0

Any insight is greatly appreciated.

Change -ct kmod and microcode to non-ct and try again.

I used the firmware builder with ath10k-firmware-qca9984 and kmod-ath10k instead of the -ct versions. I do not have microcode installed?

Log is very similar when enabling wifi: https://pastebin.com/D232QTMw

[  197.754962] ath10k_pci 0001:01:00.0: Unknown eventid: 36933
[  197.758400] br-lan: port 2(phy1-ap0) entered blocking state
[  197.759344] br-lan: port 2(phy1-ap0) entered disabled state
[  197.765137] device phy1-ap0 entered promiscuous mode
[  197.770536] br-lan: port 2(phy1-ap0) entered blocking state
[  197.775717] br-lan: port 2(phy1-ap0) entered forwarding state
[  197.781441] br-lan: port 2(phy1-ap0) entered disabled state
[  198.083669] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
[  198.083816] br-lan: port 2(phy1-ap0) entered blocking state
[  198.089090] br-lan: port 2(phy1-ap0) entered forwarding state
[  211.354940] ath10k_pci 0001:01:00.0: wmi command 37004 timeout, restarting hardware
[  211.354979] ath10k_pci 0001:01:00.0: failed to send pdev bss chan info request
[  211.371817] ath10k_pci 0001:01:00.0: failed to read hi_board_data address: -16
[  214.443726] ath10k_pci 0001:01:00.0: failed to read device register, device is gone
[  214.443754] ath10k_pci 0001:01:00.0: failed to wait for target after cold reset: -5
[  214.453106] ieee80211 phy1: Hardware restart was requested
[  214.458231] ath10k_pci 0001:01:00.0: failed to send pdev bss chan info request
[  214.463789] qcom-pcie 1b700000.pci: Read DBI address failed
[  214.470600] qcom-pcie 1b700000.pci: Read DBI address failed
[  217.553732] ath10k_pci 0001:01:00.0: failed to read device register, device is gone
[  217.553766] ath10k_pci 0001:01:00.0: failed to wait for target after cold reset: -5
[  217.560196] ath10k_pci 0001:01:00.0: firmware crashed during chip reset
[  217.567885] ath10k_pci 0001:01:00.0: failed to reset chip: -5
[  217.568145] ath10k_pci 0001:01:00.0: firmware crashed! (guid e96d64ca-1db2-41fa-ba24-248cb075eee1)
[  217.574504] ath10k_pci 0001:01:00.0: Could not init hif: -5
[  217.580339] ath10k_pci 0001:01:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[  217.589248] ------------[ cut here ]------------
[  217.594772] ath10k_pci 0001:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[  217.604773] WARNING: CPU: 1 PID: 93 at backports-6.1.24/net/mac80211/util.c:2419 0xbf1aa448 [mac80211@6512deba+0x7f000]
[  217.604799] Hardware became unavailable during restart.
[  217.604801] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath10k_pci ath10k_core ath
[  217.611269] ath10k_pci 0001:01:00.0: firmware ver 10.4-3.9.0.2-00157 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 6cdc6ff9
[  217.617552]  pppox ppp_generic
[  217.628884] ath10k_pci 0001:01:00.0: board_file api 2 bmi_id N/A crc32 0bfe5c35
[  217.633291]  nft_reject_ipv6
[  217.646204] ath10k_pci 0001:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 512 raw 0 hwcrypto 1
[  217.663192]  nft_reject_ipv4
[  217.666330] ath10k_pci 0001:01:00.0: failed to get memcpy hi address for firmware address 4: -28
[  217.673469]  nft_reject_inet
[  217.676658] ath10k_pci 0001:01:00.0: failed to read firmware dump area: -28
[  217.686810]  nft_reject
[  217.689709] ath10k_pci 0001:01:00.0: Copy Engine register dump:
[  217.698525]  nft_redir
[  217.701339] ath10k_pci 0001:01:00.0: [00]: 0x0004a000 4294967295 4294967295 4294967295 4294967295
[  217.708084]  nft_quota
[  217.710452] ath10k_pci 0001:01:00.0: [01]: 0x0004a400 4294967295 4294967295 4294967295 4294967295
[  217.716394]  nft_objref
[  217.718790] ath10k_pci 0001:01:00.0: [02]: 0x0004a800 4294967295 4294967295 4294967295 4294967295
[  217.727765]  nft_numgen
[  217.729988] ath10k_pci 0001:01:00.0: [03]: 0x0004ac00 4294967295 4294967295 4294967295 4294967295
[  217.738981]  nft_nat
[  217.741185] ath10k_pci 0001:01:00.0: [04]: 0x0004b000 4294967295 4294967295 4294967295 4294967295
[  217.750258]  nft_masq
[  217.752470] ath10k_pci 0001:01:00.0: [05]: 0x0004b400 4294967295 4294967295 4294967295 4294967295
[  217.761536]  nft_log
[  217.763818] ath10k_pci 0001:01:00.0: [06]: 0x0004b800 4294967295 4294967295 4294967295 4294967295
[  217.772511]  nft_limit
[  217.774846] ath10k_pci 0001:01:00.0: [07]: 0x0004bc00 4294967295 4294967295 4294967295 4294967295
[  217.783622]  nft_hash
[  217.785936] ath10k_pci 0001:01:00.0: [08]: 0x0004c000 4294967295 4294967295 4294967295 4294967295
[  217.794713]  nft_flow_offload
[  217.796915] ath10k_pci 0001:01:00.0: [09]: 0x0004c400 4294967295 4294967295 4294967295 4294967295
[  217.805896]  nft_fib_ipv6
[  217.808113] ath10k_pci 0001:01:00.0: [10]: 0x0004c800 4294967295 4294967295 4294967295 4294967295
[  217.817018]  nft_fib_ipv4
[  217.819918] ath10k_pci 0001:01:00.0: [11]: 0x0004cc00 4294967295 4294967295 4294967295 4294967295
[  217.828827]  nft_fib
[  217.831449] ath10k_pci 0001:01:00.0: already restarting
[  217.840292]  nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc_ccitt compat ledtrig_usbport sha512_arm seqiv cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd phy_qcom_ipq806x_usb ahci fsl_mph_dr_of ehci_platform ehci_fsl sd_mod ahci_platform libahci_platform libahci libata scsi_mod scsi_common ehci_hcd gpio_button_hotplug crc32c_generic
[  217.882562] CPU: 1 PID: 93 Comm: kworker/1:3 Not tainted 5.15.150 #0
[  217.904722] Hardware name: Generic DT based system
[  217.911232] Workqueue: events_freezable 0xbf16b83c [mac80211@6512deba+0x7f000]
[  217.915838] Function entered at [<c030d978>] from [<c03098bc>]
[  217.923040] Function entered at [<c03098bc>] from [<c0603e84>]
[  217.928855] Function entered at [<c0603e84>] from [<c031e0fc>]
[  217.934670] Function entered at [<c031e0fc>] from [<c031e1d8>]
[  217.940486] Function entered at [<c031e1d8>] from [<bf1aa448>]
[  217.946314] Function entered at [<bf1aa448>] from [<bf16b92c>]
[  217.952121] Function entered at [<bf16b92c>] from [<c0337e58>]
[  217.957934] Function entered at [<c0337e58>] from [<c03389d8>]
[  217.963749] Function entered at [<c03389d8>] from [<c033f3d0>]
[  217.969566] Function entered at [<c033f3d0>] from [<c0300134>]
[  217.975382] Exception stack(0xc1981fb0 to 0xc1981ff8)
[  217.981197] 1fa0:                                     00000000 00000000 00000000 00000000
[  217.986324] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  217.994482] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  218.002707] ---[ end trace 33e604753bde39a2 ]---
[  218.009140] ------------[ cut here ]------------
[  218.013987] WARNING: CPU: 1 PID: 93 at backports-6.1.24/net/mac80211/main.c:293 0xbf16d180 [mac80211@6512deba+0x7f000]
[  218.018530] phy1-ap0: Failed check-sdata-in-driver check, flags: 0x9
[  218.029075] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath10k_pci ath10k_core ath pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc_ccitt compat ledtrig_usbport sha512_arm seqiv cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd phy_qcom_ipq806x_usb ahci fsl_mph_dr_of ehci_platform ehci_fsl sd_mod ahci_platform libahci_platform libahci libata scsi_mod scsi_common ehci_hcd gpio_button_hotplug crc32c_generic
[  218.088808] CPU: 1 PID: 93 Comm: kworker/1:3 Tainted: G        W         5.15.150 #0
[  218.110974] Hardware name: Generic DT based system
[  218.118955] Workqueue: events_freezable 0xbf16b83c [mac80211@6512deba+0x7f000]
[  218.123561] Function entered at [<c030d978>] from [<c03098bc>]
[  218.130764] Function entered at [<c03098bc>] from [<c0603e84>]
[  218.136578] Function entered at [<c0603e84>] from [<c031e0fc>]
[  218.142394] Function entered at [<c031e0fc>] from [<c031e1d8>]
[  218.148210] Function entered at [<c031e1d8>] from [<bf16d180>]
[  218.154032] Function entered at [<bf16d180>] from [<bf18dec8>]
[  218.159849] Function entered at [<bf18dec8>] from [<bf15f5f8>]
[  218.165664] Function entered at [<bf15f5f8>] from [<bf15f6e8>]
[  218.171477] Function entered at [<bf15f6e8>] from [<bf12da3c>]
[  218.177293] Function entered at [<bf12da3c>] from [<c034072c>]
[  218.183107] Function entered at [<c034072c>] from [<c07ea658>]
[  218.188924] Function entered at [<c07ea658>] from [<c07ea780>]
[  218.194739] Function entered at [<c07ea780>] from [<c07eba50>]
[  218.200556] Function entered at [<c07eba50>] from [<bf12ce24>]
[  218.206374] Function entered at [<bf12ce24>] from [<bf16b954>]
[  218.212190] Function entered at [<bf16b954>] from [<c0337e58>]
[  218.218003] Function entered at [<c0337e58>] from [<c03389d8>]
[  218.223818] Function entered at [<c03389d8>] from [<c033f3d0>]
[  218.229635] Function entered at [<c033f3d0>] from [<c0300134>]
[  218.235452] Exception stack(0xc1981fb0 to 0xc1981ff8)
[  218.241265] 1fa0:                                     00000000 00000000 00000000 00000000
[  218.246393] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  218.254552] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  218.262780] ---[ end trace 33e604753bde39a3 ]---
[  218.269187] ------------[ cut here ]------------
[  218.274059] WARNING: CPU: 1 PID: 93 at backports-6.1.24/net/mac80211/driver-ops.h:959 0xbf18dff0 [mac80211@6512deba+0x7f000]
[  218.278600] phy1-ap0: Failed check-sdata-in-driver check, flags: 0x9
[  218.289867] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath10k_pci ath10k_core ath pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc_ccitt compat ledtrig_usbport sha512_arm seqiv cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd phy_qcom_ipq806x_usb ahci fsl_mph_dr_of ehci_platform ehci_fsl sd_mod ahci_platform libahci_platform libahci libata scsi_mod scsi_common ehci_hcd gpio_button_hotplug crc32c_generic
[  218.349380] CPU: 1 PID: 93 Comm: kworker/1:3 Tainted: G        W         5.15.150 #0
[  218.371565] Hardware name: Generic DT based system
[  218.379548] Workqueue: events_freezable 0xbf16b83c [mac80211@6512deba+0x7f000]
[  218.384152] Function entered at [<c030d978>] from [<c03098bc>]
[  218.391353] Function entered at [<c03098bc>] from [<c0603e84>]
[  218.397170] Function entered at [<c0603e84>] from [<c031e0fc>]
[  218.402985] Function entered at [<c031e0fc>] from [<c031e1d8>]
[  218.408802] Function entered at [<c031e1d8>] from [<bf18dff0>]
[  218.414619] Function entered at [<bf18dff0>] from [<bf15f5f8>]
[  218.420436] Function entered at [<bf15f5f8>] from [<bf15f6e8>]
[  218.426250] Function entered at [<bf15f6e8>] from [<bf12da3c>]
[  218.432068] Function entered at [<bf12da3c>] from [<c034072c>]
[  218.437882] Function entered at [<c034072c>] from [<c07ea658>]
[  218.443697] Function entered at [<c07ea658>] from [<c07ea780>]
[  218.449513] Function entered at [<c07ea780>] from [<c07eba50>]
[  218.455329] Function entered at [<c07eba50>] from [<bf12ce24>]
[  218.461147] Function entered at [<bf12ce24>] from [<bf16b954>]
[  218.466964] Function entered at [<bf16b954>] from [<c0337e58>]
[  218.472777] Function entered at [<c0337e58>] from [<c03389d8>]
[  218.478594] Function entered at [<c03389d8>] from [<c033f3d0>]
[  218.484409] Function entered at [<c033f3d0>] from [<c0300134>]
[  218.490226] Exception stack(0xc1981fb0 to 0xc1981ff8)
[  218.496042] 1fa0:                                     00000000 00000000 00000000 00000000
[  218.501166] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  218.509327] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  218.517542] ---[ end trace 33e604753bde39a4 ]---
[  218.523952] ------------[ cut here ]------------

Did you restart device?

I did restart a few times.
I also tried restart with wifi already enabled. Slightly different errors, but same results.

[   38.633763] ath10k_pci 0001:01:00.0: wmi command 36875 timeout, restarting hardware
[   38.633805] ath10k_pci 0001:01:00.0: failed to set wmm params: -11
[   38.640567] ath10k_pci 0001:01:00.0: failed to set wmm params: -108
[   38.647372] ath10k_pci 0001:01:00.0: failed to set wmm params: -108
[   38.684031] ath10k_pci 0001:01:00.0: failed to read hi_board_data address: -16
[   41.763725] ath10k_pci 0001:01:00.0: failed to read device register, device is gone
[   41.763762] ath10k_pci 0001:01:00.0: failed to wait for target after cold reset: -5
[   41.773056] ieee80211 phy1: Hardware restart was requested
[   41.779625] ath10k_pci 0001:01:00.0: failed to send pdev bss chan info request
[   41.783508] qcom-pcie 1b700000.pci: Read DBI address failed
[   41.790675] qcom-pcie 1b700000.pci: Read DBI address failed
[   44.873731] ath10k_pci 0001:01:00.0: failed to read device register, device is gone
[   44.873764] ath10k_pci 0001:01:00.0: failed to wait for target after cold reset: -5
[   44.880193] ath10k_pci 0001:01:00.0: firmware crashed during chip reset
[   44.887912] ath10k_pci 0001:01:00.0: failed to reset chip: -5
[   44.888135] ath10k_pci 0001:01:00.0: firmware crashed! (guid 0e9f96d1-e67b-492e-b2e4-537020a32b2f)
[   44.894499] ath10k_pci 0001:01:00.0: Could not init hif: -5
[   44.894508] ------------[ cut here ]------------
[   44.894510] WARNING: CPU: 1 PID: 106 at backports-6.1.24/net/mac80211/util.c:2419 0xbf1aa448 [mac80211@6efc0c5c+0x7f000]
[   44.900337] ath10k_pci 0001:01:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
[   44.909242] Hardware became unavailable during restart.
[   44.909246] Modules linked in:
[   44.914718] ath10k_pci 0001:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   44.919519]  pppoe
[   44.932284] ath10k_pci 0001:01:00.0: firmware ver 10.4-3.9.0.2-00157 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps,peer-fixed-rate,iram-recovery crc32 6cdc6ff9
[   44.940244]  ppp_async
[   44.945996] ath10k_pci 0001:01:00.0: board_file api 2 bmi_id N/A crc32 0bfe5c35
[   44.948334]  nft_fib_inet
[   44.956635] ath10k_pci 0001:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 512 raw 0 hwcrypto 1
[   44.958503]  nf_flow_table_ipv6
[   44.975487] ath10k_pci 0001:01:00.0: failed to get memcpy hi address for firmware address 4: -28
[   44.977845]  nf_flow_table_ipv4
[   44.985095] ath10k_pci 0001:01:00.0: failed to read firmware dump area: -28
[   44.987834]  nf_flow_table_inet
[   44.998121] ath10k_pci 0001:01:00.0: Copy Engine register dump:
[   44.998128] ath10k_pci 0001:01:00.0: [00]: 0x0004a000 4294967295 4294967295 4294967295 4294967295
[   45.001027]  ath10k_pci
...

Thanks for looking at it with me. :slight_smile: Any other ideas, or is it a PCI / hardware failure?

I compared my log with the OpenWrt bootlog and the only pci related difference I see is some additional lines in my log that are not present in the wiki.

[    0.326401] qcom-pcie 1b500000.pci: iATU unroll: disabled
[    0.326422] qcom-pcie 1b500000.pci: Detected iATU regions: 8 outbound, 8 inbound
[    0.429178] qcom-pcie 1b500000.pci: Link up

Perhaps just a difference in age of the logs.

There should be significantly more preceding messages, like loading firmware and identifying device.

There are - i was just looking for differences from the working log on the hardware wiki and those were the only ones i saw.

[    0.206943] qcom-pcie 1b500000.pci: supply vdda not found, using dummy regulator
[    0.207156] qcom-pcie 1b500000.pci: supply vdda_phy not found, using dummy regulator
[    0.207296] qcom-pcie 1b500000.pci: supply vdda_refclk not found, using dummy regulator
[    0.207560] qcom-pcie 1b500000.pci: host bridge /soc/pci@1b500000 ranges:
[    0.207644] qcom-pcie 1b500000.pci:       IO 0x000fe00000..0x000fe0ffff -> 0x0000000000
[    0.207687] qcom-pcie 1b500000.pci:      MEM 0x0008000000..0x000fdfffff -> 0x0008000000
[    0.326401] qcom-pcie 1b500000.pci: iATU unroll: disabled
[    0.326422] qcom-pcie 1b500000.pci: Detected iATU regions: 8 outbound, 8 inbound
[    0.429178] qcom-pcie 1b500000.pci: Link up
[    0.429316] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[    0.429337] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.429358] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.429375] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[    0.429449] pci 0000:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.429587] pci 0000:00:00.0: supports D1
[    0.429605] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.433030] PCI: bus0: Fast back to back transfers disabled
[    0.433428] pci 0000:01:00.0: [168c:0046] type 00 class 0x028000
[    0.433720] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.434555] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.438131] PCI: bus1: Fast back to back transfers disabled
[    0.438214] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[    0.438242] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[    0.438342] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.438367] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
[    0.439320] pcieport 0000:00:00.0: AER: enabled with IRQ 43
[    0.440231] qcom-pcie 1b700000.pci: supply vdda not found, using dummy regulator
[    0.440432] qcom-pcie 1b700000.pci: supply vdda_phy not found, using dummy regulator
[    0.440541] qcom-pcie 1b700000.pci: supply vdda_refclk not found, using dummy regulator
[    0.440834] qcom-pcie 1b700000.pci: host bridge /soc/pci@1b700000 ranges:
[    0.440939] qcom-pcie 1b700000.pci:       IO 0x0031e00000..0x0031e0ffff -> 0x0000000000
[    0.441000] qcom-pcie 1b700000.pci:      MEM 0x002e000000..0x0031dfffff -> 0x002e000000
[    0.568166] qcom-pcie 1b700000.pci: iATU unroll: disabled
[    0.568189] qcom-pcie 1b700000.pci: Detected iATU regions: 8 outbound, 8 inbound
[    0.670882] qcom-pcie 1b700000.pci: Link up
[    0.671013] qcom-pcie 1b700000.pci: PCI host bridge to bus 0001:00
[    0.671033] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.671054] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x0000-0xffff])
[    0.671073] pci_bus 0001:00: root bus resource [mem 0x2e000000-0x31dfffff]
[    0.671142] pci 0001:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.671268] pci 0001:00:00.0: supports D1
[    0.671285] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
[    0.674762] PCI: bus0: Fast back to back transfers disabled
[    0.675137] pci 0001:01:00.0: [168c:0046] type 00 class 0x028000
[    0.675332] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.676211] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
[    0.676492] pci 0001:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0001:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    0.679854] PCI: bus1: Fast back to back transfers disabled
[    0.679931] pci 0001:00:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[    0.679957] pci 0001:01:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[    0.680059] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    0.680081] pci 0001:00:00.0:   bridge window [mem 0x2e000000-0x2e1fffff]
[    0.680924] pcieport 0001:00:00.0: AER: enabled with IRQ 45

Could be power management.

echo performance > /sys/module/pcie_aspm/parameters/policy
rmmod ath10k_pci
modprobe ath10k_pci

seems I don't have that pcie directory:

echo performance > /sys/module/pcie_aspm/parameters/policy
-ash: can't create /sys/module/pcie_aspm/parameters/policy: nonexistent directory

I cannot create the directory either:

mkdir /sys/module/pcie_aspm
mkdir: can't create directory '/sys/module/pcie_aspm': Operation not permitted

no output from the other 2 commands, i guess that is just reloading driver?

root@OpenWrt:~# rmmod ath10k_pci
root@OpenWrt:~# modprobe ath10k_pci

my /sys/module directory:

8250
ahci
ahci_platform
armmmci
ath
ath10k_core
ath10k_pci
blk_cgroup
block
cfg80211
cmac
compat
cpufreq
cpuidle
crc32c_generic
crc_ccitt
cryptomgr
dwc3
dwc3_qcom
ehci_fsl
ehci_hcd
ehci_platform
firmware_class
fsl_mph_dr_of
gpio_button_hotplug
i2c_qup
ipv6
kernel
leds_gpio
ledtrig_usbport
libahci
libahci_platform
libata
libcrc32c
loop
mac80211
mmcblk
netpoll
nf_conntrack
nf_defrag_ipv4
nf_defrag_ipv6
nf_flow_table
nf_flow_table_inet
nf_flow_table_ipv4
nf_flow_table_ipv6
nf_log_syslog
nf_nat
nf_reject_ipv4
nf_reject_ipv6
nf_tables
nfnetlink
nft_chain_nat
nft_counter
nft_ct
nft_fib
nft_fib_inet
nft_fib_ipv4
nft_fib_ipv6
nft_flow_offload
nft_hash
nft_limit
nft_log
nft_masq
nft_nat
nft_numgen
nft_objref
nft_quota
nft_redir
nft_reject
nft_reject_inet
nft_reject_ipv4
nft_reject_ipv6
nmi_backtrace
nvmem_qfprom
ohci_hcd
ohci_platform
overlay
phy_qcom_ipq806x_usb
ppp_async
ppp_generic
pppoe
pppox
printk
random
rcupdate
rcutree
rng_core
scsi_common
scsi_mod
sd_mod
sdhci
seqiv
sha512_arm
slab_common
slhc
spurious
srcutree
stmmac
tcp_cubic
ubi
ubifs
usbcore
watchdog
workqueue
xhci_hcd
xhci_pci
xhci_plat_hcd

Power management is not enabled in platform, so it is not the cause.

ubus call system board
opkg list-installed | grep ath10k

Essentially upgrade to 23.05.3 if you are not running it.

root@OpenWrt:~# ubus call system board
{
        "kernel": "5.15.150",
        "hostname": "OpenWrt",
        "system": "ARMv7 Processor rev 0 (v7l)",
        "model": "Askey RT4230W REV6",
        "board_name": "askey,rt4230w-rev6",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "23.05.3",
                "revision": "r23809-234f1a2efa",
                "target": "ipq806x/generic",
                "description": "OpenWrt 23.05.3 r23809-234f1a2efa"
        }
}
root@OpenWrt:~# opkg list-installed | grep ath10k
ath10k-board-qca9984 - 20230804-1
ath10k-firmware-qca9984 - 20230804-1
kmod-ath10k - 5.15.150+6.1.24-3

To be clear this is specific to this device. The other RT4230W I own has no issues.

The "PCI SLOT" is just paths on PCB, it is very possible to be manufacturing defect, but then it has to appear with OEM software also.

Hello,

I'd like to tell you about a similar problem on my side with mwlwifi.

When recompiling a driver, even an ISO one, I get

[ 296.011435] WARNING: CPU: 0 PID: 4705 at backports-6.1.24/net/wireless/util.c:1418 0xbf047b80 [cfg80211@9c984d79+0x3f000]
[ 296.022572] invalid rate bw=6, mcs=9, nss=2

or even

[ 326.740098] WARNING : CPU : 1 PID : 4823 at backports-6.1.24/net/wireless/nl80211.c:6252 0xbf06a33c [cfg80211@9c984d79+0x3f000]

whereas with the file delivered with the openwrt 23.05.3 image, nothing.
When compiling an openwrt kernel, I get no error.

mwlwifi is clearly not ath10k.

I quite agree, what I'm inferring is that recompiling a driver with openwrt 23.05.3 poses a problem.

After re-reading, we're probably in a different situation, sorry for the spam.

I wasn't able to solve this issue.
I feel like this device is a steal, they are cheap on ebay with good specs so its not too big a deal. I probably messed something up during the original flash maybe.

This one is going to be a paperweight!

Kind of it provides only bw=5 aka 80mhz channels

What is the reason for that? I just tried it on my device and it seems to work fine. I usually use 40Hz to avoid DFS and have a few non-overlapping channels.

My internet speed is 600M so that is the limit for quick internet speed test :slight_smile:

I did use the non-ct ath10k driver in my setup if that matters.