summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2019-05-14 21:41:11 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2019-05-14 21:41:11 +0000
commit38f09fdd5eb8706715549291980c3b0f7b3dece7 (patch)
tree9d7fec0162130bdf463296b1edc7aebf0f909306 /sys/dev/ic
parent492af8837ee391b4335c4e94f68f241128e427f2 (diff)
Fix athn(4) 9280 1T2R devices; broken since my noisefloor calib commit
Problem reported and fix tested by Stephane Guedon ok jca@ mpi@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/athn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/athn.c b/sys/dev/ic/athn.c
index b7a5e3f2081..6c4fa75522b 100644
--- a/sys/dev/ic/athn.c
+++ b/sys/dev/ic/athn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: athn.c,v 1.102 2019/03/01 07:39:56 stsp Exp $ */
+/* $OpenBSD: athn.c,v 1.103 2019/05/14 21:41:10 stsp Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -1303,7 +1303,7 @@ athn_filter_noisefloor(struct athn_softc *sc)
int nf_ext_vals[ATHN_NF_CAL_HIST_MAX];
int i, cur, n;
- for (i = 0; i < sc->ntxchains; i++) {
+ for (i = 0; i < sc->nrxchains; i++) {
if (sc->nf_hist_cur > 0)
cur = sc->nf_hist_cur - 1;
else