From e25ed2fede8a401f41fd1c977bc57927c5f87383 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 10 Mar 2015 13:31:13 +0100 Subject: [PATCH] ar71xx/sysmocom: fix MAC address offset usage. ath79_init_mac(*dest, *src, offset): The offset was misused. Offset is added to the MAC address value. --- target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c index ada801f..eb129da 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c @@ -106,7 +106,7 @@ static void __init sysmocom_sob_ap2_setup(void) /* RJ45 port is separate WAN port / MAC, not switched with other ports */ ath79_setup_ar933x_phy4_switch(true, true); ath79_init_mac(ath79_eth0_data.mac_addr, art + SYSMOCOM_MAC0_OFFSET, 0); - ath79_init_mac(ath79_eth1_data.mac_addr, art + SYSMOCOM_MAC1_OFFSET, 1); + ath79_init_mac(ath79_eth1_data.mac_addr, art + SYSMOCOM_MAC1_OFFSET, 0); ath79_register_mdio(0, 0x0); ath79_register_eth(0); ath79_register_eth(1);