Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/bluetooth Apply the sequence number mask to txack.



details:   https://anonhg.NetBSD.org/src/rev/93e15907ab26
branches:  trunk
changeset: 826085:93e15907ab26
user:      nat <nat%NetBSD.org@localhost>
date:      Mon Aug 14 12:51:11 2017 +0000

description:
Apply the sequence number mask to txack.

diffstat:

 sys/dev/bluetooth/bth5.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d8e9c39af985 -r 93e15907ab26 sys/dev/bluetooth/bth5.c
--- a/sys/dev/bluetooth/bth5.c  Mon Aug 14 11:49:30 2017 +0000
+++ b/sys/dev/bluetooth/bth5.c  Mon Aug 14 12:51:11 2017 +0000
@@ -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 <nathanialsloss%yahoo.com.au@localhost>
  * 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 @@
        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;
 



Home | Main Index | Thread Index | Old Index