[openwrt/openwrt] ath79: ap5030dn: use label-mac-device property

LEDE Commits lede-commits at lists.infradead.org
Sat Dec 21 03:20:13 PST 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f10ee1e20966bdb86cb61a87338f953de1d86cc6

commit f10ee1e20966bdb86cb61a87338f953de1d86cc6
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sat Jun 22 11:43:03 2024 -0700

    ath79: ap5030dn: use label-mac-device property
    
    Userspace handling is deprecated.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/17311
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/ath79/dts/qca9550_huawei_ap5030dn.dts           | 1 +
 target/linux/ath79/generic/base-files/etc/board.d/02_network | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/target/linux/ath79/dts/qca9550_huawei_ap5030dn.dts b/target/linux/ath79/dts/qca9550_huawei_ap5030dn.dts
index 1c2a75f1dd..731b5a8255 100644
--- a/target/linux/ath79/dts/qca9550_huawei_ap5030dn.dts
+++ b/target/linux/ath79/dts/qca9550_huawei_ap5030dn.dts
@@ -15,6 +15,7 @@
 	};
 
 	aliases {
+		label-mac-device = &eth0;
 		led-boot = &led_function_red;
 		led-failsafe = &led_function_red;
 		led-running = &led_function_green;
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network
index e987d754f0..42910d436e 100644
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -754,9 +754,6 @@ ath79_setup_macs()
 	hak5,packet-squirrel)
 		label_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
 		;;
-	huawei,ap5030dn)
-		label_mac=$(mtd_get_mac_binary art 0x2005b)
-		;;
 	iodata,etg3-r)
 		lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
 		wan_mac=$(macaddr_add "$lan_mac" -1)




More information about the lede-commits mailing list