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>
Thu, 11 Apr 2019 20:54:45 +0000 (22:54 +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.

Backport of commit 93d23aced24c2e620461e1b0448d35be21f7e501

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 6f5f07e1c5d0c4d0b88c9b171f7cf208cf98cb49..1db7b5844e3190e08d6a45a2daa551f63001bc41 100755 (executable)
@@ -580,6 +580,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")