aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-01-10 09:07:11 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-01-10 09:07:11 +0000
commitf94b395b533141d4fdff3faedfaaaa7fa996b4a7 (patch)
tree26d9e70178d85e3e1908333df75e7e9d6b4bce69 /target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c
parentb9e6e5b3ff47c8ef9b67924626aaa70225218abc (diff)
downloadmaster-187ad058-f94b395b533141d4fdff3faedfaaaa7fa996b4a7.tar.gz
master-187ad058-f94b395b533141d4fdff3faedfaaaa7fa996b4a7.tar.bz2
master-187ad058-f94b395b533141d4fdff3faedfaaaa7fa996b4a7.zip
ar71xx: Fix WD My Net N750 weak signal issue
The LNAs need to be enabled by setting their respective GPIO to high even though the original firmware's setting sets them to low on initialization. Obviously the LNAs are then later initialized by the driver on the OEM firmware. Without this fix the device is mostly "deaf". Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> Patchwork: http://patchwork.openwrt.org/patch/4688/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39213 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c
index a44a7e0197..737bec2b0d 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c
@@ -179,10 +179,10 @@ static void __init mynet_n750_setup(void)
* board/ar7240/db12x/alpha_gpio.c
*/
gpio_request_one(MYNET_N750_GPIO_EXTERNAL_LNA0,
- GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED,
+ GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
"External LNA0");
gpio_request_one(MYNET_N750_GPIO_EXTERNAL_LNA1,
- GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED,
+ GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
"External LNA1");
mynet_n750_get_mac("wlan24mac=", tmpmac);