ar71xx: fix for wrong eth0 mac assignment on Netgear WNDAP360
authorGabor Juhos <juhosg@openwrt.org>
Mon, 8 Jul 2013 08:40:18 +0000 (08:40 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 8 Jul 2013 08:40:18 +0000 (08:40 +0000)
Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37192

target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c

index 3d8d6b0af1423512b699d402a773bbdf93a3d2da..0fd399ebc72cbe604b5c85e2b9aac3b8bc5d9557 100644 (file)
@@ -76,7 +76,9 @@ static void __init wndap360_setup(void)
 
        ath79_register_mdio(0, ~(WNDAP360_LAN_PHYMASK));
 
-       ath79_init_mac(ath79_eth0_data.mac_addr, art, 0);
+       /* Reusing wifi MAC with offset of 1 as eth0 MAC */
+       ath79_init_mac(ath79_eth0_data.mac_addr,
+                      art + WNDAP360_WMAC0_MAC_OFFSET, 1);
        ath79_eth0_pll_data.pll_1000 = 0x11110000;
        ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
        ath79_eth0_data.phy_mask = WNDAP360_LAN_PHYMASK;