diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-12-11 19:21:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-12-11 19:21:59 +0000 |
commit | 6e12ef74305cfa532616d793d04596f9e2bb70ca (patch) | |
tree | 25e81cc75c16cfb27288a9d398d3722bc29820aa /target/linux/ar71xx | |
parent | 84a56a7849e807bf90ebed56e8617fbd82ef043d (diff) | |
download | upstream-6e12ef74305cfa532616d793d04596f9e2bb70ca.tar.gz upstream-6e12ef74305cfa532616d793d04596f9e2bb70ca.tar.bz2 upstream-6e12ef74305cfa532616d793d04596f9e2bb70ca.zip |
ar71xx: fix MAC address swapping on WNR2200 and fix the WLAN MAC address
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 47871
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c index a1de26a4b4..9f37f25e15 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c @@ -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 0 -#define WNR2200_MAC1_OFFSET 6 +#define WNR2200_MAC0_OFFSET 6 +#define WNR2200_MAC1_OFFSET 0 #define WNR2200_PCIE_CALDATA_OFFSET 0x1000 static struct gpio_led wnr2200_leds_gpio[] __initdata = { @@ -121,7 +121,8 @@ static void __init wnr2200_setup(void) ath79_register_eth(1); ath79_register_m25p80(NULL); - ap91_pci_init(art + WNR2200_PCIE_CALDATA_OFFSET, NULL); + ap91_pci_init(art + WNR2200_PCIE_CALDATA_OFFSET, + art + WNR2200_MAC0_OFFSET); ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2200_leds_gpio), wnr2200_leds_gpio); |