Source-Changes-HG archive

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

[src/trunk]: src/sys/netbt slight reordering, plus only deal with ACL links



details:   https://anonhg.NetBSD.org/src/rev/824c104718b4
branches:  trunk
changeset: 747374:824c104718b4
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sat Sep 12 18:31:46 2009 +0000

description:
slight reordering, plus only deal with ACL links

diffstat:

 sys/netbt/hci_event.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 135b673fb9dd -r 824c104718b4 sys/netbt/hci_event.c
--- a/sys/netbt/hci_event.c     Sat Sep 12 18:17:55 2009 +0000
+++ b/sys/netbt/hci_event.c     Sat Sep 12 18:31:46 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hci_event.c,v 1.20 2009/08/24 20:37:36 plunky Exp $    */
+/*     $NetBSD: hci_event.c,v 1.21 2009/09/12 18:31:46 plunky Exp $    */
 
 /*-
  * Copyright (c) 2005 Iain Hibbert.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hci_event.c,v 1.20 2009/08/24 20:37:36 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hci_event.c,v 1.21 2009/09/12 18:31:46 plunky Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -845,11 +845,11 @@
 
        ep.con_handle = HCI_CON_HANDLE(le16toh(ep.con_handle));
        link = hci_link_lookup_handle(unit, ep.con_handle);
-
-       if (ep.status != 0 || link == NULL)
+       if (link == NULL || link->hl_type != HCI_LINK_ACL)
                return;
 
-       link->hl_clock = ep.clock_offset;
+       if (ep.status == 0)
+               link->hl_clock = ep.clock_offset;
 }
 
 /*



Home | Main Index | Thread Index | Old Index