aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-04-03 19:05:19 +0200
committerPetr Štetiar <ynezz@true.cz>2019-04-11 22:54:45 +0200
commit7268ebb1e484ac6619963401f484421fa819cd7d (patch)
treed69558c62c3f56267e7fe17d65db9bc833e62316 /target/linux
parentc7eb679047dbc3a15b3eb4d5e5fa376c42f4c7b1 (diff)
downloadupstream-7268ebb1e484ac6619963401f484421fa819cd7d.tar.gz
upstream-7268ebb1e484ac6619963401f484421fa819cd7d.tar.bz2
upstream-7268ebb1e484ac6619963401f484421fa819cd7d.zip
ar71xx: Correct MAC address for WAN interface of Archer C7 v5
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>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 6f5f07e1c5..1db7b5844e 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -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")