Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/isc/atheros_hal/dist Fix wrong for loop limit
details: https://anonhg.NetBSD.org/src/rev/11f438434cc3
branches: trunk
changeset: 789878:11f438434cc3
user: martin <martin%NetBSD.org@localhost>
date: Thu Sep 12 11:38:23 2013 +0000
description:
Fix wrong for loop limit
diffstat:
sys/external/isc/atheros_hal/dist/ah_eeprom_v4k.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e81aae6f6057 -r 11f438434cc3 sys/external/isc/atheros_hal/dist/ah_eeprom_v4k.c
--- a/sys/external/isc/atheros_hal/dist/ah_eeprom_v4k.c Thu Sep 12 11:26:53 2013 +0000
+++ b/sys/external/isc/atheros_hal/dist/ah_eeprom_v4k.c Thu Sep 12 11:38:23 2013 +0000
@@ -239,7 +239,7 @@
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;
Home |
Main Index |
Thread Index |
Old Index