浏览代码

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.

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 年之前
父节点
当前提交
93d23aced2
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      target/linux/ar71xx/base-files/etc/board.d/02_network

+ 4 - 0
target/linux/ar71xx/base-files/etc/board.d/02_network

@@ -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")