summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-05-21 13:17:56 +0200
committerAlexander Couzens <lynxis@fe80.eu>2019-05-21 14:53:45 +0200
commit8357b8131cd72b02794da2c430f3ca54416d89f2 (patch)
tree8d97bbea95d589413106f75d5e07bc5e7e96d0dd
parent4da5ba4a6bd91ecd528d4b78287aa7ac1e0fb3e4 (diff)
downloadopenwrt-8357b8131cd72b02794da2c430f3ca54416d89f2.tar.gz
openwrt-8357b8131cd72b02794da2c430f3ca54416d89f2.tar.bz2
openwrt-8357b8131cd72b02794da2c430f3ca54416d89f2.zip
ar71xx: wr940 v4/v6: correct lan interface mac address
The vendor firmware only uses two mac addresses, the mac address on the label and the label + 1. While checking multiple devices, all labels have even mac addresses. Concluding only 2 address are assigned to a device. Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr940n-v4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr940n-v4.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr940n-v4.c
index b530622d9f..9324b2b924 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr940n-v4.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr940n-v4.c
@@ -143,7 +143,7 @@ static void __init tl_wr940n_setup(void)
ath79_register_mdio(0, 0x0);
ath79_init_mac(ath79_eth0_data.mac_addr, mac, 1);
- ath79_init_mac(ath79_eth1_data.mac_addr, mac, -1);
+ ath79_init_mac(ath79_eth1_data.mac_addr, mac, 0);
ath79_switch_data.phy4_mii_en = 1;