ramips: fix MAC address setup for Samsung CY-SWR1100
authorSungbo Eo <mans0n@gorani.run>
Wed, 13 Nov 2019 14:22:54 +0000 (23:22 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 13 Nov 2019 14:57:53 +0000 (15:57 +0100)
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 <mans0n@gorani.run>
target/linux/ramips/rt3883/base-files/etc/board.d/02_network

index 27c15eecac0d244d9e27e85e731b261c15422cf8..2ef0e319bb43dd68e746259e1cb77251fc9e873d 100755 (executable)
@@ -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)