diff options
author | 2013-11-15 01:45:44 +0000 | |
---|---|---|
committer | 2013-11-15 01:45:44 +0000 | |
commit | baaf627a62bca5d0bcba14de8d4aca8956cc6636 (patch) | |
tree | 6f0ae93222355a9a5f3204d1919e9492814ab459 | |
parent | Clean up tabs and a backslash which seemed to have sneeked in in r1.29. (diff) | |
download | wireguard-openbsd-baaf627a62bca5d0bcba14de8d4aca8956cc6636.tar.xz wireguard-openbsd-baaf627a62bca5d0bcba14de8d4aca8956cc6636.zip |
Add missing parenthesis to make tick calculation work as intended. Should
fix excessive timeouts and 'Michael mic' errors.
Problem pointed out by vigdis via bugs@
ok dlg@
-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 8f397534bbb..ffa6cb65a09 100644 --- a/sys/dev/ic/athn.c +++ b/sys/dev/ic/athn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: athn.c,v 1.77 2013/11/11 03:08:20 dlg Exp $ */ +/* $OpenBSD: athn.c,v 1.78 2013/11/15 01:45:44 krw Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -1239,7 +1239,7 @@ athn_calib_to(void *arg) /* Do periodic (every 4 minutes) PA calibration. */ if (AR_SREV_9285_11_OR_LATER(sc) && !AR_SREV_9380_10_OR_LATER(sc) && - (ticks - sc->pa_calib_ticks + 240 * hz) >= 0) { + (ticks - (sc->pa_calib_ticks + 240 * hz)) >= 0) { sc->pa_calib_ticks = ticks; if (AR_SREV_9271(sc)) ar9271_pa_calib(sc); |