mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 22:03:18 +02:00
12 lines
466 B
Diff
12 lines
466 B
Diff
|
--- 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_bounda
|
||
|
vpdTableI[i][sizeCurrVpdTable - 2]);
|
||
|
vpdStep = (int16_t)((vpdStep < 1) ? 1 : vpdStep);
|
||
|
|
||
|
- if (tgtIndex > maxIndex) {
|
||
|
+ if (tgtIndex >= maxIndex) {
|
||
|
while ((ss <= tgtIndex) &&
|
||
|
(k < (AR5416_NUM_PDADC_VALUES - 1))) {
|
||
|
tmpVal = (int16_t)((vpdTableI[i][sizeCurrVpdTable - 1] +
|