From 5a2e87630d5589bd86e7bbfadc6a62e2645fe9ca Mon Sep 17 00:00:00 2001 From: damien Date: Thu, 15 Jul 2010 19:33:34 +0000 Subject: [PATCH] fix PDADC value for target index (AR5008 family only.) --- sys/dev/ic/ar5008.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/ar5008.c b/sys/dev/ic/ar5008.c index dad7e2abcdf..eff481c68bd 100644 --- a/sys/dev/ic/ar5008.c +++ b/sys/dev/ic/ar5008.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5008.c,v 1.9 2010/06/21 19:46:50 damien Exp $ */ +/* $OpenBSD: ar5008.c,v 1.10 2010/07/15 19:33:34 damien Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini @@ -2401,7 +2401,7 @@ ar5008_get_pdadcs(struct athn_softc *sc, uint8_t fbin, while (ss < maxidx && npdadcs < AR_NUM_PDADC_VALUES - 1) pdadcs[npdadcs++] = vpd[ss++]; - if (tgtidx <= maxidx) + if (tgtidx < maxidx) continue; /* Extrapolate data for maxidx <= ss <= tgtidx. */ -- 2.20.1