Author: nbd
Date: 2016-01-03 15:48:28 +0100 (Sun, 03 Jan 2016)
New Revision: 48091

Modified:
   
branches/chaos_calmer/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
Log:
ar71xx: on wnr2200, revert the mac0/mac1, the ethernet interfaces are swapped. 
use MAC1 for wlan

Signed-off-by: Felix Fietkau <[email protected]>

Backport of r47873

Modified: 
branches/chaos_calmer/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
===================================================================
--- 
branches/chaos_calmer/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c  
    2016-01-03 14:48:20 UTC (rev 48090)
+++ 
branches/chaos_calmer/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c  
    2016-01-03 14:48:28 UTC (rev 48091)
@@ -42,8 +42,8 @@
 #define WNR2200_KEYS_POLL_INTERVAL     20 /* msecs */
 #define WNR2200_KEYS_DEBOUNCE_INTERVAL (3 * WNR2200_KEYS_POLL_INTERVAL)
 
-#define WNR2200_MAC0_OFFSET            6
-#define WNR2200_MAC1_OFFSET            0
+#define WNR2200_MAC0_OFFSET            0
+#define WNR2200_MAC1_OFFSET            6
 #define WNR2200_PCIE_CALDATA_OFFSET    0x1000
 
 static struct gpio_led wnr2200_leds_gpio[] __initdata = {
@@ -122,7 +122,7 @@
 
        ath79_register_m25p80(NULL);
        ap91_pci_init(art + WNR2200_PCIE_CALDATA_OFFSET,
-                     art + WNR2200_MAC0_OFFSET);
+                     art + WNR2200_MAC1_OFFSET);
 
        ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2200_leds_gpio),
                                        wnr2200_leds_gpio);
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to