ath79: ZTE MF281: use specific board definition file for qca9888
authorLech Perczak <lech.perczak@gmail.com>
Mon, 3 Feb 2025 23:24:21 +0000 (00:24 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 16 Mar 2025 21:10:05 +0000 (22:10 +0100)
Using board definition file extracted from stock firmware yields 50%
throughput improvement in RX direction under iperf3 test.
Make the device use temporary files from firmware_qca-wireless.git
temporarily, as well as select the specific variant in the device tree
files. The device uses same board file as the MF286C.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17620
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/dts/qca9563_zte_mf281.dts
target/linux/ath79/image/nand.mk

index d0693658a4dbdd4b8a3143910dc2beaa3be70980..06a8b2350aba983b3d693194a36c6ed8b6becf17 100644 (file)
 &wifi_ath10k {
        nvmem-cells = <&macaddr_mac_0 1>, <&cal_caldata_5000>;
        nvmem-cell-names = "mac-address", "pre-calibration";
+       /* Board file from stock firmware is shared with MF286C */
+       qcom,ath10k-calibration-variant = "ZTE-MF286C";
 };
 
 &pinmux {
index f473fa780f5647f11da25804ac8b08144f04a09a..0408d6ad823fe3558f9f56fcc3f2c6b515f6f3b2 100644 (file)
@@ -458,6 +458,7 @@ define Device/zte_mf281
   IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
        check-size
   DEVICE_PACKAGES += ath10k-firmware-qca9888-ct kmod-usb-net-rndis \
+       -ath10k-board-qca9888 ipq-wifi-zte_mf286c \
        kmod-usb-acm comgt-ncm
 endef
 TARGET_DEVICES += zte_mf281