浏览代码

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 <[email protected]>
Signed-off-by: Adrian Schmutzler <[email protected]>
Adrian Schmutzler 6 年之前
父节点
当前提交
0a13f589c3
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      target/linux/ath79/base-files/etc/board.d/02_network

+ 5 - 0
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)