Module Name:    src
Committed By:   martin
Date:           Thu Sep 12 11:38:23 UTC 2013

Modified Files:
        src/sys/external/isc/atheros_hal/dist: ah_eeprom_v4k.c

Log Message:
Fix wrong for loop limit


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    src/sys/external/isc/atheros_hal/dist/ah_eeprom_v4k.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/isc/atheros_hal/dist/ah_eeprom_v4k.c
diff -u src/sys/external/isc/atheros_hal/dist/ah_eeprom_v4k.c:1.4 src/sys/external/isc/atheros_hal/dist/ah_eeprom_v4k.c:1.5
--- src/sys/external/isc/atheros_hal/dist/ah_eeprom_v4k.c:1.4	Tue Dec 11 09:22:16 2012
+++ src/sys/external/isc/atheros_hal/dist/ah_eeprom_v4k.c	Thu Sep 12 11:38:23 2013
@@ -239,7 +239,7 @@ v4kEepromReadCTLInfo(struct ath_hal *ah,
 	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;

Reply via email to