diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-07-08 08:40:18 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-07-08 08:40:18 +0000 |
commit | ca02639d17f41ed5cc68b502f9fc286aa3ae8c39 (patch) | |
tree | 31e4a0abee0b9b3c9689df8b7d493b795a04e4e2 /target/linux/ar71xx/files | |
parent | 9de461f2028e7af05e08d732c5389abe8aedaa29 (diff) | |
download | master-31e0f0ae-ca02639d17f41ed5cc68b502f9fc286aa3ae8c39.tar.gz master-31e0f0ae-ca02639d17f41ed5cc68b502f9fc286aa3ae8c39.tar.bz2 master-31e0f0ae-ca02639d17f41ed5cc68b502f9fc286aa3ae8c39.zip |
ar71xx: fix for wrong eth0 mac assignment on Netgear WNDAP360
Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37192
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c index 3d8d6b0af1..0fd399ebc7 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c @@ -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; |