Skip to content

Commit

Permalink
ath79: Correct MAC address for WAN interface of Archer A7/C7 v5
Browse files Browse the repository at this point in the history
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: openwrt#1726

Tested-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
  • Loading branch information
adschm authored and grosjo committed Aug 31, 2019
1 parent 3af7776 commit 6b4cf9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions target/linux/ath79/base-files/etc/board.d/02_network
Expand Up @@ -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)
Expand Down

0 comments on commit 6b4cf9f

Please sign in to comment.