ar71xx: use correct mac on the lan interface on several TP-LINK devices
authorGabor Juhos <juhosg@openwrt.org>
Mon, 5 Dec 2011 21:10:58 +0000 (21:10 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 5 Dec 2011 21:10:58 +0000 (21:10 +0000)
SVN-Revision: 29458

target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-mr3x20.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd-v4.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c

index 2869e3933cf0332a1be0b32cbeffef901fc6c812..a6aa2af14c48740a99c8131381b270d1679f118e 100644 (file)
@@ -93,8 +93,8 @@ static void __init tl_mr3x20_setup(void)
                                         ARRAY_SIZE(tl_mr3x20_gpio_keys),
                                         tl_mr3x20_gpio_keys);
 
-       ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
-       ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1);
+       ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 1);
+       ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, -1);
 
        ar71xx_add_device_mdio(0, 0x0);
 
index 1ef7ade8a5f392b2fd077f4a9f5b1ddf01d47cf5..47fbf85e75ceb0738c7bde68a924bcb4e684887c 100644 (file)
@@ -101,8 +101,8 @@ static void __init tl_wr741ndv4_setup(void)
                                         tl_wr741ndv4_gpio_keys);
 
        ar71xx_add_device_m25p80(&tl_wr741ndv4_flash_data);
-       ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
-       ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1);
+       ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 1);
+       ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, -1);
 
        ar71xx_add_device_mdio(0, 0x0);
        ar71xx_add_device_eth(1);
index 07b791ada87db5397f92bbdd50f96a55c6103db6..b29c7aa9d4cde37c6c1c508ec1664f5428c6decf 100644 (file)
@@ -79,8 +79,8 @@ static void __init tl_wr741nd_setup(void)
                                         ARRAY_SIZE(tl_wr741nd_gpio_keys),
                                         tl_wr741nd_gpio_keys);
 
-       ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
-       ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1);
+       ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 1);
+       ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, -1);
 
        ar71xx_add_device_mdio(0, 0x0);