aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-04-03 19:07:52 +0200
committerPetr Štetiar <ynezz@true.cz>2019-04-08 18:37:04 +0200
commit0a13f589c3df688f9c184a78f97b856890f767a1 (patch)
treeeb5fcb1ebb78db8c9a6e87766aa2fd836141b34f /target
parenta5885ea4075cc58e433bafb3ffdecb926e99973f (diff)
downloadupstream-0a13f589c3df688f9c184a78f97b856890f767a1.tar.gz
upstream-0a13f589c3df688f9c184a78f97b856890f767a1.tar.bz2
upstream-0a13f589c3df688f9c184a78f97b856890f767a1.zip
ath79: Correct MAC address for WAN interface of Archer A7/C7 v5
These devices share the network config with C7v4, 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>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network
index 4651669d31..4c734ac69a 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -327,6 +327,11 @@ ath79_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 0)
lan_mac=$(macaddr_setbit_la "$wan_mac")
;;
+ tplink,archer-a7-v5|\
+ tplink,archer-c7-v5)
+ base_mac=$(mtd_get_mac_binary info 8)
+ wan_mac=$(macaddr_add "$base_mac" 1)
+ ;;
tplink,archer-c7-v4)
base_mac=$(mtd_get_mac_binary config 8)
wan_mac=$(macaddr_add "$base_mac" 1)