From 1755472d2e83da5728f66d928a76191edfb78e43 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 6 Apr 2015 20:09:06 +0200 Subject: [PATCH] ar71xx/sysmocom: switch mac address of eth0 + eth1 The lowest mac address should assigned to the switch --- target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 8cb6387..32e77c3 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c @@ -106,8 +106,8 @@ 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(false, false); - 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, 0); + ath79_init_mac(ath79_eth0_data.mac_addr, art + SYSMOCOM_MAC1_OFFSET, 0); + ath79_init_mac(ath79_eth1_data.mac_addr, art + SYSMOCOM_MAC0_OFFSET, 0); ath79_register_mdio(0, 0x0); ath79_register_eth(1); ath79_register_eth(0);