ath79: ap5030dn: use label-mac-device property
authorRosen Penev <rosenp@gmail.com>
Sat, 22 Jun 2024 18:43:03 +0000 (11:43 -0700)
committerRobert Marko <robimarko@gmail.com>
Sat, 21 Dec 2024 11:20:10 +0000 (12:20 +0100)
Userspace handling is deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17311
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/dts/qca9550_huawei_ap5030dn.dts
target/linux/ath79/generic/base-files/etc/board.d/02_network

index 1c2a75f1dd428b0b5f263fddad907d762efe37b3..731b5a82556b97a6e6b42f92b5216cb871da02a4 100644 (file)
@@ -15,6 +15,7 @@
        };
 
        aliases {
+               label-mac-device = &eth0;
                led-boot = &led_function_red;
                led-failsafe = &led_function_red;
                led-running = &led_function_green;
index e987d754f0ac429205de890da2e57f82905e0e19..42910d436eef81cd27d5101483c9ec6cc2b1a909 100644 (file)
@@ -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)