mediatek: filogic: fix 5G MAC address for Zyxel EX5601

Currently 5G wireless interface MAC address is incorrect.
Fix by setting MAC address using Factory data.

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19968
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Paweł Owoc 2025-09-07 16:50:48 +02:00 committed by Hauke Mehrtens
parent 5c57477358
commit 9ed4d27fbf
2 changed files with 9 additions and 5 deletions

View File

@ -304,12 +304,21 @@
}; };
&wifi { &wifi {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
pinctrl-names = "default", "dbdc"; pinctrl-names = "default", "dbdc";
pinctrl-0 = <&wf_2g_5g_pins>; pinctrl-0 = <&wf_2g_5g_pins>;
pinctrl-1 = <&wf_dbdc_pins>; pinctrl-1 = <&wf_dbdc_pins>;
nvmem-cells = <&eeprom_factory>; nvmem-cells = <&eeprom_factory>;
nvmem-cell-names = "eeprom"; nvmem-cell-names = "eeprom";
band@1 {
reg = <1>;
nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
};
}; };
&crypto { &crypto {

View File

@ -209,11 +209,6 @@ case "$board" in
zbtlink,zbt-z8102ax|\ zbtlink,zbt-z8102ax|\
zbtlink,zbt-z8102ax-v2|\ zbtlink,zbt-z8102ax-v2|\
zbtlink,zbt-z8103ax|\ zbtlink,zbt-z8103ax|\
zyxel,ex5601-t0-stock|\
zyxel,ex5601-t0-ubootmod)
addr=$(mtd_get_mac_binary "Factory" 0x4)
[ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
;;
wavlink,wl-wn573hx3) wavlink,wl-wn573hx3)
addr=$(mtd_get_mac_binary factory 0x04) addr=$(mtd_get_mac_binary factory 0x04)
[ "$PHYNBR" = "1" ] && macaddr_setbit_la $(macaddr_add $addr -0x300000) > /sys${DEVPATH}/macaddress [ "$PHYNBR" = "1" ] && macaddr_setbit_la $(macaddr_add $addr -0x300000) > /sys${DEVPATH}/macaddress