ar71xx: fix MAC addresses on TP-Link TL-WR1043ND v4
[openwrt/staging/mkresin.git] / target / linux / ar71xx / base-files / etc / board.d / 02_network
index 5fa8c2f4c8c4b578c2bf06132c142d487244245d..39e819fd3dcb4bf942db9c65ad52685e5ddd678b 100755 (executable)
@@ -531,7 +531,8 @@ ar71xx_setup_macs()
                lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
                ;;
        tl-wr1043nd-v4)
-               wan_mac=$(mtd_get_mac_binary config 0x1017c)
+               lan_mac=$(mtd_get_mac_binary product-info 8)
+               wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
        esr900)
                wan_mac=$(mtd_get_mac_ascii u-boot-env "wanaddr")
@@ -540,7 +541,8 @@ ar71xx_setup_macs()
        mynet-n750)
                wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
                ;;
-       wpj344)
+       wpj344|\
+       wpj558)
                wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)
                ;;
        esac