From c655deec99110922ffad41ed8a53e9fb6451ec50 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 22 Jun 2024 11:24:35 -0700 Subject: [PATCH] ath79: engenius: remove userspace label mac Can be handled easily in dts. Signed-off-by: Rosen Penev --- target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts | 1 + target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts | 1 + target/linux/ath79/generic/base-files/etc/board.d/02_network | 4 ---- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts b/target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts index 69dd46f0c7f..1de574351d1 100644 --- a/target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts +++ b/target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts @@ -12,6 +12,7 @@ compatible = "engenius,eap300-v2", "qca,ar9341"; aliases { + label-mac-device = &wmac; led-boot = &led_power; led-failsafe = &led_power; led-running = &led_power; diff --git a/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts b/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts index 0e455ab9829..229c7e8a284 100644 --- a/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts +++ b/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts @@ -12,6 +12,7 @@ compatible = "engenius,ens202ext-v1", "qca,ar9341"; aliases { + label-mac-device = &wmac; led-boot = &led_power; led-failsafe = &led_power; led-running = &led_power; 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 73461ba6219..dadcc47bd1b 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 @@ -622,10 +622,6 @@ ath79_setup_macs() lan_mac=$(mtd_get_mac_binary "Board data" 2) label_mac=$lan_mac ;; - engenius,eap300-v2|\ - engenius,ens202ext-v1) - label_mac=$(mtd_get_mac_binary art 0x1002) - ;; arduino,yun) base_mac=$(mtd_get_mac_binary art 0x1002) lan_mac=$(macaddr_setbit $base_mac 29)