From d4dc948acace9ab535c78b15d3fc04b11a0e3751 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 11 Jun 2008 03:08:57 +0000 Subject: Allow auto-accept with no agent present --- hcid/dbus-hci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c index 106660a2..2bd32c23 100644 --- a/hcid/dbus-hci.c +++ b/hcid/dbus-hci.c @@ -2469,6 +2469,10 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote, *auth |= 0x01; if (!agent) { + if (!(type & 0x01)) { + *cap = 0x01; + return 0; + } error("No agent available for IO capability"); return -1; } -- cgit