]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ath9k: Configure AR_PHY_SWITCH_COM with apropriate antenna control
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Fri, 14 Nov 2008 19:19:49 +0000 (00:49 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 25 Nov 2008 21:41:40 +0000 (16:41 -0500)
This fixes the poor wireless connection which happens even
if we are very well in the range.

Signed-off-by: Don.breslin@atheros.com
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/eeprom.c

index 180e541146593356ecd3f1e4306aa18f4284e0a7..466dbce2c5f7a2282b1dbcb607289094750f7498 100644 (file)
@@ -1244,7 +1244,7 @@ bool ath9k_hw_eeprom_set_board_values(struct ath_hal *ah,
 
        txRxAttenLocal = IS_CHAN_2GHZ(chan) ? 23 : 44;
 
-       ath9k_hw_get_eeprom_antenna_cfg(ah, chan, 1, &ant_config);
+       ath9k_hw_get_eeprom_antenna_cfg(ah, chan, 0, &ant_config);
        REG_WRITE(ah, AR_PHY_SWITCH_COM, ant_config);
 
        for (i = 0; i < AR5416_MAX_CHAINS; i++) {