ath79: fix MAC address setup for TP-Link TL-WDR3600/TL-WDR4300
authorSungbo Eo <mans0n@gorani.run>
Sun, 15 Dec 2019 09:11:45 +0000 (18:11 +0900)
committerRISCi_ATOM <bob@bobcall.me>
Sun, 22 Dec 2019 11:48:04 +0000 (06:48 -0500)
commitc812516ac0511ae2f56485ffe1d71d20de2e29ee
tree8d63a6b04fa9afb7c8b507bc3a8464e321d7c83b
parent17f6d0f4db6aa83a213f7156fd7292e18b221c41
ath79: fix MAC address setup for TP-Link TL-WDR3600/TL-WDR4300

The current ethernet MAC address setup of TL-WDR4300 board is different
from the setup of stock firmware:

OpenWrt: lan = label_mac -2, wan = label_mac -2
  stock: lan = label_mac,    wan = label_mac +1

The full address assignment is as follows:
LAN  label
WAN  label + 1
5G   label
2G   label - 1

This patch changes all devices using TL-WDR4300 board:
TL-WDR3600 v1 (checked on device)
TL-WDR4300 v1 (checked on device)
TL-WDR4300 v1 (IL)

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
[rephrase/extend commit title/message, backport]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit a4260eaab7744c8e3f1f7a62a61aab5e3b562342)
target/linux/ath79/base-files/etc/board.d/02_network
target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi