aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/init.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vasanth@atheros.com>2010-09-02 04:34:43 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-09-07 13:54:33 -0400
commit102885a5d114abad8f9d4101f94ce5b28c232231 (patch)
tree6399041d50d2e8b2681ed79f8d27205f160caa16 /drivers/net/wireless/ath/ath9k/init.c
parent21cc630f47d8589a42d563e89be4c631edbe8716 (diff)
ath9k: Implement an algorithm for Antenna diversity and combining
This algorithm chooses the best main and alt lna out of LNA1, LNA2, LNA1+LNA2 and LNA1-LNA2 to improve rx for single chain chips(AR9285). This would greatly improve rx when there is only one antenna is connected with AR9285. Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index 3dbff8d07766..e7c07b3370cc 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -531,6 +531,9 @@ static void ath9k_init_misc(struct ath_softc *sc)
531 sc->beacon.bslot[i] = NULL; 531 sc->beacon.bslot[i] = NULL;
532 sc->beacon.bslot_aphy[i] = NULL; 532 sc->beacon.bslot_aphy[i] = NULL;
533 } 533 }
534
535 if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_ANT_DIV_COMB)
536 sc->ant_comb.count = ATH_ANT_DIV_COMB_INIT_COUNT;
534} 537}
535 538
536static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid, 539static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,