Module Name: src
Committed By: nat
Date: Mon Aug 14 12:51:11 UTC 2017
Modified Files:
src/sys/dev/bluetooth: bth5.c
Log Message:
Apply the sequence number mask to txack.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/bluetooth/bth5.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/bluetooth/bth5.c
diff -u src/sys/dev/bluetooth/bth5.c:1.3 src/sys/dev/bluetooth/bth5.c:1.4
--- src/sys/dev/bluetooth/bth5.c:1.3 Mon Aug 14 05:33:30 2017
+++ src/sys/dev/bluetooth/bth5.c Mon Aug 14 12:51:11 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: bth5.c,v 1.3 2017/08/14 05:33:30 nat Exp $ */
+/* $NetBSD: bth5.c,v 1.4 2017/08/14 12:51:11 nat Exp $ */
/*
* Copyright (c) 2017 Nathanial Sloss <[email protected]>
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bth5.c,v 1.3 2017/08/14 05:33:30 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bth5.c,v 1.4 2017/08/14 12:51:11 nat Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1149,7 +1149,7 @@ bth5_sequencing_receive(struct bth5_soft
if (sc->sc_seq_expected_rxseq / sc->sc_seq_winsize ==
sc->sc_seq_winsize) {
bth5_send_ack_command(sc);
- sc->sc_seq_txack = sc->sc_seq_expected_rxseq;
+ sc->sc_seq_txack = sc->sc_seq_expected_rxseq & BTH5_FLAGS_SEQ_MASK;
} else
sc->sc_seq_txack = rxseq;