ath9k_hw: Fix typos in tx rate power level parsing for AR9003
authorFelix Fietkau <nbd@openwrt.org>
Mon, 26 Apr 2010 19:04:38 +0000 (15:04 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Apr 2010 20:09:18 +0000 (16:09 -0400)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c

index 79b0e28747314a0facb6f973e52bf8aa0678efc3..25dd44d54b729a8b7556bfe55164b7fd93683218 100644 (file)
@@ -1200,7 +1200,7 @@ static u8 ar9003_hw_eeprom_get_tgt_pwr(struct ath_hw *ah,
        u8 *pFreqBin;
 
        if (is2GHz) {
-               numPiers = AR9300_NUM_5G_20_TARGET_POWERS;
+               numPiers = AR9300_NUM_2G_20_TARGET_POWERS;
                pEepromTargetPwr = eep->calTargetPower2G;
                pFreqBin = eep->calTarget_freqbin_2G;
        } else {
@@ -1236,7 +1236,7 @@ static u8 ar9003_hw_eeprom_get_ht20_tgt_pwr(struct ath_hw *ah,
        u8 *pFreqBin;
 
        if (is2GHz) {
-               numPiers = AR9300_NUM_5G_20_TARGET_POWERS;
+               numPiers = AR9300_NUM_2G_20_TARGET_POWERS;
                pEepromTargetPwr = eep->calTargetPower2GHT20;
                pFreqBin = eep->calTarget_freqbin_2GHT20;
        } else {