[openwrt/openwrt] ramips: e390ax: remove redundant 02_network MACs

LEDE Commits lede-commits at lists.infradead.org
Wed Sep 10 13:52:28 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f5655704a7892c772e1d32c6884a8aef5092040c

commit f5655704a7892c772e1d32c6884a8aef5092040c
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Mon Aug 18 17:46:06 2025 -0700

    ramips: e390ax: remove redundant 02_network MACs
    
    These are already specified in DTS. Only thing missing is
    label-mac-device.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/19806
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/ramips/dts/mt7621_comfast_cf-e390ax.dts         | 1 +
 target/linux/ramips/mt7621/base-files/etc/board.d/02_network | 5 -----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/target/linux/ramips/dts/mt7621_comfast_cf-e390ax.dts b/target/linux/ramips/dts/mt7621_comfast_cf-e390ax.dts
index b0f995f8ab..c1780738f6 100644
--- a/target/linux/ramips/dts/mt7621_comfast_cf-e390ax.dts
+++ b/target/linux/ramips/dts/mt7621_comfast_cf-e390ax.dts
@@ -51,6 +51,7 @@
 		led-failsafe = &led_status_red;
 		led-running = &led_status_blue;
 		led-upgrade = &led_status_red;
+		label-mac-device = &gmac0;
 	};
 };
 
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index c12c46dc10..678d7c67c4 100644
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -242,11 +242,6 @@ ramips_setup_macs()
 		lan_mac=$wan_mac
 		label_mac=$wan_mac
 		;;
-	comfast,cf-e390ax)
-		lan_mac=$(cat /sys/class/net/eth0/address)
-		label_mac=$lan_mac
-		wan_mac=$(macaddr_add "$lan_mac" 1)
-		;;
 	dlink,covr-x1860-a1)
 		label_mac=$(mtd_get_mac_ascii config2 factory_mac)
 		wan_mac=$(macaddr_add "$label_mac" 3)




More information about the lede-commits mailing list