From 7231c1edd99217c6baa8d7d5d841d75ad9de26f1 Mon Sep 17 00:00:00 2001 From: Sungbo Eo Date: Wed, 13 Nov 2019 23:22:54 +0900 Subject: [PATCH] ramips: fix MAC address setup for Samsung CY-SWR1100 Ethernet MAC address setup has been broken since c3e420f28cf1. Restore original setting. Fixes: c3e420f28cf1 ("ramips: Add support for D-Link DCH-M225") Signed-off-by: Sungbo Eo --- target/linux/ramips/rt3883/base-files/etc/board.d/02_network | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/rt3883/base-files/etc/board.d/02_network b/target/linux/ramips/rt3883/base-files/etc/board.d/02_network index 27c15eecac..2ef0e319bb 100755 --- a/target/linux/ramips/rt3883/base-files/etc/board.d/02_network +++ b/target/linux/ramips/rt3883/base-files/etc/board.d/02_network @@ -70,7 +70,8 @@ ramips_setup_macs() wan_mac=$(mtd_get_mac_binary devdata 0x7) ;; samsung,cy-swr1100) - lan_mac=$(mtd_get_mac_ascii factory lanmac) + lan_mac=$(mtd_get_mac_ascii nvram lanmac) + wan_mac=$(mtd_get_mac_ascii nvram wanmac) ;; sitecom,wlr-6000) wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x8004)" 2) -- 2.30.2