Changeset 39392


Ignore:
Timestamp:
2014-01-24T18:40:17+01:00 (3 years ago)
Author:
juhosg
Message:

ar71xx: fix bad RX sensitivity on newer TL-WDR4300 boards

On recent TL-WDR4300 boards the external LNAs of the 2.4GHz
interface are connected to GPIO lines. Because these GPIO
lines are disabled by default, the RX sensitivity of the
device is quite bad.

Setup the GPIOs of the external LNAs to fix the issue.

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c

    r39345 r39392  
    3838#define WDR4300_GPIO_BTN_RFKILL         17 
    3939 
     40#define WDR4300_GPIO_EXTERNAL_LNA0      18 
     41#define WDR4300_GPIO_EXTERNAL_LNA1      19 
     42 
    4043#define WDR4300_GPIO_USB1_POWER         22 
    4144#define WDR4300_GPIO_USB2_POWER         21 
     
    163166                                        wdr4300_gpio_keys); 
    164167 
     168        ath79_wmac_set_ext_lna_gpio(0, WDR4300_GPIO_EXTERNAL_LNA0); 
     169        ath79_wmac_set_ext_lna_gpio(1, WDR4300_GPIO_EXTERNAL_LNA1); 
     170 
    165171        ath79_init_mac(tmpmac, mac, -1); 
    166172        ath79_register_wmac(art + WDR4300_WMAC_CALDATA_OFFSET, tmpmac); 
Note: See TracChangeset for help on using the changeset viewer.