X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a569d19be442c8437a51cc63a94bc1f7dbeee29c..347c600521d2864d728e192cff1c1124d54b23ea:/target/linux/atheros/patches-2.6.33/100-board.patch diff --git a/target/linux/atheros/patches-2.6.33/100-board.patch b/target/linux/atheros/patches-2.6.33/100-board.patch index 014ea44f2..6cf6ddbfb 100644 --- a/target/linux/atheros/patches-2.6.33/100-board.patch +++ b/target/linux/atheros/patches-2.6.33/100-board.patch @@ -30,7 +30,7 @@ source "arch/mips/jazz/Kconfig" --- a/arch/mips/Makefile +++ b/arch/mips/Makefile -@@ -308,6 +308,13 @@ cflags-$(CONFIG_SOC_AU1X00) += -I$(srctr +@@ -310,6 +310,13 @@ cflags-$(CONFIG_SOC_AU1X00) += -I$(srctr # @@ -94,7 +94,7 @@ + * Copyright (C) 2006-2009 Felix Fietkau + */ + -+#include ++#include +#include +#include +#include @@ -354,7 +354,7 @@ + */ + +#include -+#include ++#include +#include +#include +#include @@ -1557,7 +1557,7 @@ + --- /dev/null +++ b/arch/mips/ar231x/ar5312.c -@@ -0,0 +1,547 @@ +@@ -0,0 +1,549 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -1573,7 +1573,7 @@ + * Platform devices for Atheros SoCs + */ + -+#include ++#include +#include +#include +#include @@ -1940,7 +1940,8 @@ + if (!ar231x_board.radio) + return 0; + -+ if (*((u32 *) radio) & AR531X_RADIO0_MASK) ++ if ((*((u32 *) radio) & AR531X_RADIO0_MASK) && ++ (config->flags & BD_WLAN0)) + ar231x_add_wmac(0, AR531X_WLAN0, + AR5312_IRQ_WLAN0_INTRS); + @@ -1964,7 +1965,8 @@ + break; + } + -+ if (*((u32 *) radio) & AR531X_RADIO1_MASK) ++ if ((*((u32 *) radio) & AR531X_RADIO1_MASK) && ++ (config->flags & BD_WLAN1)) + ar231x_add_wmac(1, AR531X_WLAN1, + AR5312_IRQ_WLAN1_INTRS); + @@ -2123,7 +2125,7 @@ + * Platform devices for Atheros SoCs + */ + -+#include ++#include +#include +#include +#include