aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2019-12-15 18:10:18 +0900
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-21 00:31:39 +0100
commit27eea249213b04a372491009850926f9282d132e (patch)
treeb8715e5e851e928e7d66c195fc64e71c023eed91 /target/linux/ar71xx/files/arch
parent9bdd3d39ad9af8f8fb55c7b68c7267f990ff2b7c (diff)
downloadupstream-27eea249213b04a372491009850926f9282d132e.tar.gz
upstream-27eea249213b04a372491009850926f9282d132e.tar.bz2
upstream-27eea249213b04a372491009850926f9282d132e.zip
ar71xx: fix MAC address setup for TL-WDR4300 board
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 This patch applies to all devices using TL-WDR4300 board: TL-WDR3600 v1 TL-WDR4300 v1 TL-WDR4300 v1 (IL) TL-WDR4310 v1 Mercury MW4530R v1 Signed-off-by: Sungbo Eo <mans0n@gorani.run> (cherry picked from commit 9b02d32e34df2bb8821ec6f08f525bee22d0d1ba)
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
index 972cb7960d..b9fea95bc2 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
@@ -183,7 +183,7 @@ static void __init wdr4300_setup(void)
ath79_register_mdio(0, 0x0);
- ath79_init_mac(ath79_eth0_data.mac_addr, mac, -2);
+ ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
/* GMAC0 is connected to an AR8327N switch */
ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;