From e59ae2209b1a5160fe3a18cee1dec8a9f604ac18 Mon Sep 17 00:00:00 2001 From: Uwe Stuehler Date: Mon, 24 Nov 2008 08:49:23 +0000 Subject: Respond to incoming connections, not only after we initiated the first one. Someone must have fumbled with this line by accident while doing the original port of the driver. --- sys/dev/bluetooth/bthidev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/bluetooth/bthidev.c b/sys/dev/bluetooth/bthidev.c index 5fba488ab96..32d88a637e0 100644 --- a/sys/dev/bluetooth/bthidev.c +++ b/sys/dev/bluetooth/bthidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bthidev.c,v 1.4 2008/11/22 04:42:58 uwe Exp $ */ +/* $OpenBSD: bthidev.c,v 1.5 2008/11/24 08:49:22 uwe Exp $ */ /* $NetBSD: bthidev.c,v 1.16 2008/08/06 15:01:23 plunky Exp $ */ /*- @@ -639,6 +639,7 @@ bthidev_ctl_disconnected(void *arg, int err) if (sc->sc_int == NULL) { printf("%s: disconnected\n", sc->sc_btdev.sc_dev.dv_xname); + sc->sc_flags &= ~BTHID_CONNECTING; if (sc->sc_flags & BTHID_RECONNECT) timeout_add(&sc->sc_reconnect, -- cgit v1.2.3