OpenWrt support for Xiaomi AX9000

My ax9000 radios go offline after ~ 3 - 4 days, a restart fixes the issue. At first, radio0 and radio1 would go offline and finally radio3. I checked the logs and can see the following error.

Firmware Version OpenWrt SNAPSHOT r22882-7ad1fa12ef / LuCI Master git-23.118.79121-6fb185f

[358132.021068] ath11k_warn: 70 callbacks suppressed
[358132.021087] ath11k c000000.wifi: failed to send WMI_PDEV_BSS_CHAN_INFO_REQUEST cmd
[358132.024801] ath11k c000000.wifi: failed to send pdev bss chan info request
[358132.032611] ath11k c000000.wifi: failed to send WMI_PDEV_SET_PARAM cmd
[358132.039226] ath11k c000000.wifi: Failed to set beacon mode for VDEV: 0
[358132.045817] ath11k c000000.wifi: failed to send WMI_BCN_TMPL_CMDID
[358132.052378] ath11k c000000.wifi: failed to submit beacon template command: -108
[358132.058650] ath11k c000000.wifi: failed to update bcn template: -108
[358132.066281] ath11k c000000.wifi: failed to send WMI_VDEV_SET_PARAM_CMDID
[358132.072604] ath11k c000000.wifi: failed to set BA BUFFER SIZE 256 for vdev: 0
[358132.079399] ath11k c000000.wifi: failed to send WMI_VDEV_SET_PARAM_CMDID
[358138.086982] ath11k_warn: 70 callbacks suppressed
[358138.087004] ath11k c000000.wifi: failed to send WMI_PDEV_BSS_CHAN_INFO_REQUEST cmd
[358138.090695] ath11k c000000.wifi: failed to send pdev bss chan info request
[358138.098428] ath11k c000000.wifi: failed to send WMI_PDEV_SET_PARAM cmd
[358138.105156] ath11k c000000.wifi: Failed to set beacon mode for VDEV: 0
[358138.111727] ath11k c000000.wifi: failed to send WMI_BCN_TMPL_CMDID
[358138.118322] ath11k c000000.wifi: failed to submit beacon template command: -108
[358138.124581] ath11k c000000.wifi: failed to update bcn template: -108
[358138.132198] ath11k c000000.wifi: failed to send WMI_VDEV_SET_PARAM_CMDID
[358138.138544] ath11k c000000.wifi: failed to set BA BUFFER SIZE 256 for vdev: 0
[358138.145315] ath11k c000000.wifi: failed to send WMI_VDEV_SET_PARAM_CMDID
[358144.152989] ath11k_warn: 70 callbacks suppressed
[358144.153012] ath11k c000000.wifi: failed to send WMI_PDEV_BSS_CHAN_INFO_REQUEST cmd
[358144.156739] ath11k c000000.wifi: failed to send pdev bss chan info request
[358144.164411] ath11k c000000.wifi: failed to send WMI_PDEV_SET_PARAM cmd
[358144.171111] ath11k c000000.wifi: Failed to set beacon mode for VDEV: 0
[358144.177741] ath11k c000000.wifi: failed to send WMI_BCN_TMPL_CMDID
[358144.184319] ath11k c000000.wifi: failed to submit beacon template command: -108
[358144.190556] ath11k c000000.wifi: failed to update bcn template: -108
[358144.198219] ath11k c000000.wifi: failed to send WMI_VDEV_SET_PARAM_CMDID
[358144.204562] ath11k c000000.wifi: failed to set BA BUFFER SIZE 256 for vdev: 0
[358144.211304] ath11k c000000.wifi: failed to send WMI_VDEV_SET_PARAM_CMDID

Anyone here experienced similar wifi issues?

Hi,

I have the same issue now.

I have used radio1 and radio3, it was all right.

The issue came once I enabled and set radio2. I am still testing but soon I will disable radio2 again for stability...

i too have this issue and i thought it was because i selected channel 100 (dfs) so radio 2 is the issue

a question if anyone knows ... the stock firmware has the lm63 sensor "coupled" i think with the ecm230x (0x2f) as per the stock dts. If i have both on the dts i loose control of the fan and hwmon for the lm63 instead. Does the lm63 take control of the fan ? i don't see anything on the lm63 code that alludes to it ... or maybe i need to add a fan to the lm63 definition ?

the emc230x definition works on its own ... it feels the lm63 is really not needed ... i tried both on the same i2c-0 and defined another i2c (-1) and lm63 takes over the hwmon and control of pwm1 which is the reason for the question above... no need for the lm63 ?

Any new developments happening on wifi channels issue as we can only use lower channels on 5ghz upper channels including dfs are not working?

Unfortunately, the software VLAN is working completely unreliable. I've got 5 VLANs, created bridges and assigned the APs to the corresponding bridges. It works a few minutes, then all traffic from the Wifi clients is unkooked and then suddenly it works again for a few minutes. Pinging the bridges from the respective VLANs is working flawlessly all the time...

How do you get the 2.9 firmware? It's not in the kvalo repo.

There is also a huge difference in size between the board-2.bin that comes with OpenWRT (generic one has the same size) and the one in kvalo's repo. The one from kvalo is around 640KB larger.

so openwrt is now using the 2.9 firmware and the behaviour using "hacked" board2.bin is the same as the board2.bin i got from kvalo repo. In summary i don't think there are no improvements .... sorry !

note that the "firmware" from my perspective are the m3.bin & amss.bin files not the board-2.bin file ...

@robimarko you think it'd be worth pinging Kalle about the regdb? Been almost 3 months since your explanation but he hasn't followed up since then.

Its not really up to Kalle and QCA isn't fast

That's right but do you know if it's actually being looked into?

I dont know anything other than what is in the ticket itself

1 Like

@robimarko latest snapshot after upgrading to kernel 6.1 bricked my AX9000. I have restored to Xiaomi firmware and re-flashed OpenWRT, then tried the latest snapshot and failed.

CN or International?

International. I confirm that the latest build from today (r23282-a3ee2bf9a1) works again.

Attend sysupgrade appears broken

STDERR:

Package list missing or not up-to-date, generating it.

Building package index...
Downloading https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/packages/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_base
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/kmods/6.1.31-1-60f86a80e0a69b692f8cccde5fa6019e/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_kmods
Downloading https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/kmods/6.1.31-1-60f86a80e0a69b692f8cccde5fa6019e/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_luci
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_packages
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_routing
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_telephony
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.
Downloading file:packages/Packages
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/imagebuilder
Downloading file:packages/Packages.sig
Signature check failed.
Remove wrong Signature file.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency libubox20230523 for mtd
 * pkg_hash_fetch_best_installation_candidate: Packages for mtd found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package mtd.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for mtd:
 * 	libubox20230523
 * opkg_install_cmd: Cannot install package mtd.
make[2]: *** [Makefile:187: package_install] Error 255
make[1]: *** [Makefile:152: _call_manifest] Error 2
make: *** [Makefile:272: manifest] Error 2

Its going to take some time for phase2 builders to catch up, there were some issues last week

2 Likes

Radio 3 BDF issue appears to have been resolved in OpenWrt SNAPSHOT r23282-a3ee2bf9a1 :slight_smile:

Strange, I still require the generic board-2.bin file to use Radio 3. Which issues are you referring to?

The non-connecting issues.

I have 2 of these devices, after upgrading to the latest snapshot, I'm able to connect to radio 3 on both without replacing with the generic board-2.bin.

I should mention that radio1 also now appears to support 160GHz