summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-11 03:08:57 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-11 03:08:57 +0000
commitd4dc948acace9ab535c78b15d3fc04b11a0e3751 (patch)
tree3f15b0b6fc88c15d42836f1005eb0ca8413ebbfa
parent0b850e269ad6ca4a17e5177928a4e17c14b293ad (diff)
Allow auto-accept with no agent present
-rw-r--r--hcid/dbus-hci.c4
1 files changed, 4 insertions, 0 deletions
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;
}