Module Name: src
Committed By: plunky
Date: Sat Sep 12 18:31:46 UTC 2009
Modified Files:
src/sys/netbt: hci_event.c
Log Message:
slight reordering, plus only deal with ACL links
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/netbt/hci_event.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/netbt/hci_event.c
diff -u src/sys/netbt/hci_event.c:1.20 src/sys/netbt/hci_event.c:1.21
--- src/sys/netbt/hci_event.c:1.20 Mon Aug 24 20:37:36 2009
+++ src/sys/netbt/hci_event.c Sat Sep 12 18:31:46 2009
@@ -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;
}
/*