Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic in ar5008_set_viterbi_mask() be sure to initialis...
details: https://anonhg.NetBSD.org/src/rev/0e48b89fa12f
branches: trunk
changeset: 1013906:0e48b89fa12f
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Sep 07 10:45:23 2020 +0000
description:
in ar5008_set_viterbi_mask() be sure to initialise m[0].
diffstat:
sys/dev/ic/arn5008.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a08caa7dfb23 -r 0e48b89fa12f sys/dev/ic/arn5008.c
--- a/sys/dev/ic/arn5008.c Mon Sep 07 10:44:52 2020 +0000
+++ b/sys/dev/ic/arn5008.c Mon Sep 07 10:45:23 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arn5008.c,v 1.17 2020/01/29 14:09:58 thorpej Exp $ */
+/* $NetBSD: arn5008.c,v 1.18 2020/09/07 10:45:23 mrg Exp $ */
/* $OpenBSD: ar5008.c,v 1.21 2012/08/25 12:14:31 kettenis Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.17 2020/01/29 14:09:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.18 2020/09/07 10:45:23 mrg Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -2287,7 +2287,7 @@
/* Compute viterbi mask. */
for (cur = 6100; cur >= 0; cur -= 100)
p[+cur / 100] = abs(cur - bin) < 75;
- for (cur = -100; cur >= -6100; cur -= 100)
+ for (cur = 0; cur >= -6100; cur -= 100)
m[-cur / 100] = abs(cur - bin) < 75;
/* Write viterbi mask (XXX needs to be reworked). */
Home |
Main Index |
Thread Index |
Old Index