30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
--- ipxe/src/drivers/net/ath/ath9k/ath9k_eeprom.c 2011-12-11 03:28:04.000000000 +0100
|
|
+++ ipxe/src/drivers/net/ath/ath9k/ath9k_eeprom.c 2016-10-13 12:53:49.000372288 +0200
|
|
@@ -371,7 +371,7 @@
|
|
/* FIXME: array overrun? */
|
|
for (i = 0; i < numXpdGains; i++) {
|
|
minPwrT4[i] = data_9287[idxL].pwrPdg[i][0];
|
|
- maxPwrT4[i] = data_9287[idxL].pwrPdg[i][4];
|
|
+ maxPwrT4[i] = data_9287[idxL].pwrPdg[i][0];
|
|
ath9k_hw_fill_vpd_table(minPwrT4[i], maxPwrT4[i],
|
|
data_9287[idxL].pwrPdg[i],
|
|
data_9287[idxL].vpdPdg[i],
|
|
@@ -381,7 +381,7 @@
|
|
} else if (eeprom_4k) {
|
|
for (i = 0; i < numXpdGains; i++) {
|
|
minPwrT4[i] = data_4k[idxL].pwrPdg[i][0];
|
|
- maxPwrT4[i] = data_4k[idxL].pwrPdg[i][4];
|
|
+ maxPwrT4[i] = data_4k[idxL].pwrPdg[i][0];
|
|
ath9k_hw_fill_vpd_table(minPwrT4[i], maxPwrT4[i],
|
|
data_4k[idxL].pwrPdg[i],
|
|
data_4k[idxL].vpdPdg[i],
|
|
@@ -391,7 +391,7 @@
|
|
} else {
|
|
for (i = 0; i < numXpdGains; i++) {
|
|
minPwrT4[i] = data_def[idxL].pwrPdg[i][0];
|
|
- maxPwrT4[i] = data_def[idxL].pwrPdg[i][4];
|
|
+ maxPwrT4[i] = data_def[idxL].pwrPdg[i][0];
|
|
ath9k_hw_fill_vpd_table(minPwrT4[i], maxPwrT4[i],
|
|
data_def[idxL].pwrPdg[i],
|
|
data_def[idxL].vpdPdg[i],
|
|
|