In progress : ZBTLINK Z100 AX v01 ( WIFI 6 / AX )

I am furious , i remove all.

**Build with Snapshot run fine ** if not build with 21.02.1 version is with wifi problems
:
*

mt7621_zbtlink_zbt-z100a.dts

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "mt7621.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
	compatible = "zbtlink,zbt-z100a", "mediatek,mt7621-soc";
	model = "ZBTLINK Z100A";





	aliases {
		label-mac-device = &gmac0;
	};

	chosen {
		bootargs = "console=ttyS0,115200";
		bootargs-override = "console=ttyS0,115200";
	};

	
 keys {
                compatible = "gpio-keys";

                reset {
                        label = "reset";
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };

                wps {
                        label = "wps";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };

        leds {
                compatible = "gpio-leds";

                blue {
                        label = "blue";
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
                red {
                        label = "red";
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
                green {
                        label = "green";
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
                
                
             
             
             
             
                
        };

	
};

&pcie {
	status = "okay";
};



&pcie1 {
	wifi@0,0 {
		compatible = "mediatek,mt76";
		reg = <0x0000 0 0 0 0>;
		mediatek,mtd-eeprom = <&factory 0x0000>;
		mtd-mac-address = <&factory 0x4>;
		nvmem-cells = <&macaddr_factory_4>;
		nvmem-cell-names = "mac-address";
				
	};
};


&gmac0 {
	nvmem-cells = <&macaddr_factory_4>;
	nvmem-cell-names = "mac-address";
	mac-address-increment = <(2)>;
};




&switch0 {
	ports {
		
		port@1 {
			status = "okay";
			label = "lan1";
		};

		port@2 {
			status = "okay";
			label = "lan2";
		};

		port@3 {
			status = "okay";
			label = "lan3";
		};

		wan_port: port@4 {
			status = "okay";
			label = "wan";
			nvmem-cells = <&macaddr_factory_4>;
			nvmem-cell-names = "mac-address";
			mac-address-increment = <(3)>;
		};

	};
};

&state_default {
	gpio {
		groups = "uart3";
		function = "gpio";
	};
};

&spi0 {
	status = "okay";

	flash@0 {
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <50000000>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x0 0x30000>;
				read-only;
			};

			partition@30000 {
				label = "u-boot-env";
				reg = <0x30000 0x10000>;
				read-only;
			};

			partition@40000 {
				label = "product";
				reg = <0x40000 0x10000>;
				read-only;
			};

			factory: partition@50000 {
				label = "factory";
				reg = <0x50000 0x40000>;
				read-only;
			};

			partition@90000 {
				compatible = "denx,fit";
				label = "firmware";
				reg = <0x90000 0x0f70000>;
			};
		};
	};
};

&factory {
	compatible = "nvmem-cells";
	#address-cells = <1>;
	#size-cells = <1>;

	macaddr_factory_4: macaddr@4 {
		reg = <0x4 0x6>;
	};
};

add-on to mt7621.mk

define Device/zbtlink_zbt-z100a
  $(Device/dsa-migration)
  DEVICE_VENDOR := ZBTLINK
  DEVICE_MODEL := ZBT Z100A
  DEVICE_DTS_CONFIG := config@1
  DEVICE_PACKAGES += kmod-mt7915e kmod-usb3
  KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
  IMAGE_SIZE := 15808k
  SUPPORTED_DEVICES += mt7621-zbtlink_zbt-z100a
endef
TARGET_DEVICES += zbtlink_zbt-z100a

I also have problems with AX:
To begin with, current hostapd (2.9) support for AX is limited, so I rewrote the package to use 2.10 and updated the patches.
I also enabled CONFIG_DRIVER_11AX_SUPPORT in the PKG_CONFIG_DEPENDS, but until now, I didn't manage to get it running:
when I enable AX support, the hostapd file is generated incorrectly:

WIth the ZBTLINK Z100 AX v01 ( WIFI 6 / AX ) ?

For wifi ax you only need to build the snapshot

With version build 21.02.1 or 21.02.2 the ax is poorly managed

News:

found:

good price

https://fr.aliexpress.com/item/1005003087157413.html?spm=a2g0o.productlist.main.57.18c9224fWBUqCp&algo_pvid=25c04603-b5f4-419d-9ee7-6b389241d75a&algo_exp_id=25c04603-b5f4-419d-9ee7-6b389241d75a-29&pdp_npi=3%40dis!EUR!92.27!59.98!!!!!%402100b5dc16880399877094642d0730!12000023998833749!sea!FR!2190887889&curPageLogUid=C7npRE7NkQS2

OEM 17.01 firmware is with 5GHz ax good speed