From f96b3383d51f544861b8da4d7192594497d3f0b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Owoc?= Date: Thu, 1 Aug 2024 08:53:14 +0200 Subject: [PATCH] qualcommax: ipq807x: fix mac setup for Linksys MX4200v2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Currently for Linksys MX4200v2 all u-boot ethXaddr variables share the same MAC address and there is no need to check them one by one. Signed-off-by: Paweł Owoc Link: https://github.com/openwrt/openwrt/pull/16070 Signed-off-by: Robert Marko --- .../qualcommax/ipq807x/base-files/etc/board.d/02_network | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/linux/qualcommax/ipq807x/base-files/etc/board.d/02_network b/target/linux/qualcommax/ipq807x/base-files/etc/board.d/02_network index 012288fedc..e3e1104486 100644 --- a/target/linux/qualcommax/ipq807x/base-files/etc/board.d/02_network +++ b/target/linux/qualcommax/ipq807x/base-files/etc/board.d/02_network @@ -83,10 +83,8 @@ ipq807x_setup_macs() case "$board" in linksys,mx4200v2) label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr) - for i in $(seq 3 5); do - [ "$(mtd_get_mac_ascii u_env eth${i}addr)" != "$label_mac" ] && lan_mac=$label_mac - done - [ "$(mtd_get_mac_ascii u_env eth2addr)" != "$label_mac" ] && wan_mac=$label_mac + [ "$(mtd_get_mac_ascii u_env eth1addr)" != "$label_mac" ] && wan_mac=$label_mac + [ "$(mtd_get_mac_ascii u_env eth2addr)" != "$label_mac" ] && lan_mac=$label_mac ;; linksys,mx8500) label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr) -- 2.30.2