diff options
author | 2019-05-14 21:41:10 +0000 | |
---|---|---|
committer | 2019-05-14 21:41:10 +0000 | |
commit | 4042d3b50eb6e31fd0bfe6adddca73977d952954 (patch) | |
tree | 13a0c36beca2d7768ae13d9e46c3302d1814d4bc | |
parent | test different buffer sizes (diff) | |
download | wireguard-openbsd-4042d3b50eb6e31fd0bfe6adddca73977d952954.tar.xz wireguard-openbsd-4042d3b50eb6e31fd0bfe6adddca73977d952954.zip |
Fix athn(4) 9280 1T2R devices; broken since my noisefloor calib commit
Problem reported and fix tested by Stephane Guedon
ok jca@ mpi@
-rw-r--r-- | sys/dev/ic/athn.c | 4 |
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 |