ar71xx: Correct MAC address for WAN interface of Archer C7 v5
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 3 Apr 2019 17:05:19 +0000 (19:05 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 8 Apr 2019 16:37:05 +0000 (18:37 +0200)
This device shares the network config with v4, thus the WAN MAC
also needs to be fixed the same way. However, the partition
where the MAC address resides has been changed.

Based on: https://github.com/openwrt/openwrt/pull/1726

Tested-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ar71xx/base-files/etc/board.d/02_network

index 8e5ff101d6fb35f17a4bab8990dc49f29d9074a0..68874e0c2e8df680b2aee1b52859cab24e4589cc 100755 (executable)
@@ -605,6 +605,10 @@ ar71xx_setup_macs()
                base_mac=$(mtd_get_mac_binary config 8)
                wan_mac=$(macaddr_add "$base_mac" 1)
                ;;
+       archer-c7-v5)
+               base_mac=$(mtd_get_mac_binary info 8)
+               wan_mac=$(macaddr_add "$base_mac" 1)
+               ;;
        dgl-5500-a1|\
        dir-825-c1)
                wan_mac=$(mtd_get_mac_ascii nvram "wan_mac")