ath79: engenius: remove userspace label mac

Can be handled easily in dts.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2024-06-22 11:24:35 -07:00
parent 2c1bc871e3
commit c655deec99
3 changed files with 2 additions and 4 deletions

View File

@ -12,6 +12,7 @@
compatible = "engenius,eap300-v2", "qca,ar9341"; compatible = "engenius,eap300-v2", "qca,ar9341";
aliases { aliases {
label-mac-device = &wmac;
led-boot = &led_power; led-boot = &led_power;
led-failsafe = &led_power; led-failsafe = &led_power;
led-running = &led_power; led-running = &led_power;

View File

@ -12,6 +12,7 @@
compatible = "engenius,ens202ext-v1", "qca,ar9341"; compatible = "engenius,ens202ext-v1", "qca,ar9341";
aliases { aliases {
label-mac-device = &wmac;
led-boot = &led_power; led-boot = &led_power;
led-failsafe = &led_power; led-failsafe = &led_power;
led-running = &led_power; led-running = &led_power;

View File

@ -622,10 +622,6 @@ ath79_setup_macs()
lan_mac=$(mtd_get_mac_binary "Board data" 2) lan_mac=$(mtd_get_mac_binary "Board data" 2)
label_mac=$lan_mac label_mac=$lan_mac
;; ;;
engenius,eap300-v2|\
engenius,ens202ext-v1)
label_mac=$(mtd_get_mac_binary art 0x1002)
;;
arduino,yun) arduino,yun)
base_mac=$(mtd_get_mac_binary art 0x1002) base_mac=$(mtd_get_mac_binary art 0x1002)
lan_mac=$(macaddr_setbit $base_mac 29) lan_mac=$(macaddr_setbit $base_mac 29)