diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_def.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c index 60480a1122b2..02e6c2a55fe4 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_def.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c | |||
@@ -730,7 +730,7 @@ static void ath9k_hw_get_def_gain_boundaries_pdadcs(struct ath_hw *ah, | |||
730 | vpdTableI[i][sizeCurrVpdTable - 2]); | 730 | vpdTableI[i][sizeCurrVpdTable - 2]); |
731 | vpdStep = (int16_t)((vpdStep < 1) ? 1 : vpdStep); | 731 | vpdStep = (int16_t)((vpdStep < 1) ? 1 : vpdStep); |
732 | 732 | ||
733 | if (tgtIndex > maxIndex) { | 733 | if (tgtIndex >= maxIndex) { |
734 | while ((ss <= tgtIndex) && | 734 | while ((ss <= tgtIndex) && |
735 | (k < (AR5416_NUM_PDADC_VALUES - 1))) { | 735 | (k < (AR5416_NUM_PDADC_VALUES - 1))) { |
736 | tmpVal = (int16_t)((vpdTableI[i][sizeCurrVpdTable - 1] + | 736 | tmpVal = (int16_t)((vpdTableI[i][sizeCurrVpdTable - 1] + |