diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-27 13:21:53 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-27 13:21:53 +0000 |
commit | 5f799a0e97f517c052c1dab918917a6ab673f908 (patch) | |
tree | 73762d28b17a5bd1ae7e0eee8977e2674cb5bafe /target | |
parent | 2143633bd2c44eadfe271f0e6c7355e6e10bafed (diff) | |
download | upstream-5f799a0e97f517c052c1dab918917a6ab673f908.tar.gz upstream-5f799a0e97f517c052c1dab918917a6ab673f908.tar.bz2 upstream-5f799a0e97f517c052c1dab918917a6ab673f908.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.
SVN-Revision: 31084
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic/files/include/linux/ath9k_platform.h | 1 | ||||
-rw-r--r-- | target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/dev-wifi-athxk.c | 1 |
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 |