From f10ee1e20966bdb86cb61a87338f953de1d86cc6 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 22 Jun 2024 11:43:03 -0700 Subject: [PATCH] ath79: ap5030dn: use label-mac-device property Userspace handling is deprecated. Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/17311 Signed-off-by: Robert Marko --- 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 = ð0; 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) -- 2.30.2