Fix wrong for loop limit
This commit is contained in:
parent
fda716a94d
commit
84e3fc8358
|
@ -239,7 +239,7 @@ v4kEepromReadCTLInfo(struct ath_hal *ah, HAL_EEPROM_v4k *ee)
|
|||
HALASSERT(AR5416_4K_NUM_CTLS <= sizeof(ee->ee_rdEdgesPower)/NUM_EDGES);
|
||||
|
||||
for (i = 0; i < AR5416_4K_NUM_CTLS && ee->ee_base.ctlIndex[i] != 0; i++) {
|
||||
for (j = 0; j < NUM_EDGES; j ++) {
|
||||
for (j = 0; j < AR5416_4K_NUM_BAND_EDGES; j ++) {
|
||||
/* XXX Confirm this is the right thing to do when an invalid channel is stored */
|
||||
if (ee->ee_base.ctlData[i].ctlEdges[CTL_CHAIN][j].bChannel == AR5416_BCHAN_UNUSED) {
|
||||
rep[j].rdEdge = 0;
|
||||
|
|
Loading…
Reference in New Issue