aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-27 13:21:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-27 13:21:53 +0000
commitedba77a97dc6bf1bef531057bd0a8f7c59a206b6 (patch)
treee2ca8e84842743218ac6661437d2a9ba46745980 /target
parent732fb298d40ddb10840d07a13d7b61010e1141cb (diff)
downloadupstream-edba77a97dc6bf1bef531057bd0a8f7c59a206b6.tar.gz
upstream-edba77a97dc6bf1bef531057bd0a8f7c59a206b6.tar.bz2
upstream-edba77a97dc6bf1bef531057bd0a8f7c59a206b6.zip
ath9k: make endian check optional
Turns out it triggers on some AR71xx devices where no swapping should be done. Enable endian check for the lantiq target. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31084 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/files/include/linux/ath9k_platform.h1
-rw-r--r--target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/dev-wifi-athxk.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/linux/ath9k_platform.h b/target/linux/generic/files/include/linux/ath9k_platform.h
index b37d23d834..15b913730f 100644
--- a/target/linux/generic/files/include/linux/ath9k_platform.h
+++ b/target/linux/generic/files/include/linux/ath9k_platform.h
@@ -29,6 +29,7 @@ struct ath9k_platform_data {
u32 gpio_mask;
u32 gpio_val;
+ bool endian_check;
bool is_clk_25mhz;
int (*get_mac_revision)(void);
int (*external_reset)(void);
diff --git a/target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/dev-wifi-athxk.c b/target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/dev-wifi-athxk.c
index 882cd8cf70..a75abe3e00 100644
--- a/target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/dev-wifi-athxk.c
+++ b/target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/dev-wifi-athxk.c
@@ -19,6 +19,7 @@ extern int (*ltqpci_plat_dev_init)(struct pci_dev *dev);
struct ath5k_platform_data ath5k_pdata;
struct ath9k_platform_data ath9k_pdata = {
.led_pin = -1,
+ .endian_check = true,
};
static int