summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-adapter.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-03-09 22:21:27 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-03-09 22:21:27 +0000
commit96c80bcf3082bfe60dec6e1885511787c65cbcfd (patch)
tree4aefce94e2c867f7fc6b9d78ce3a869e5d90a145 /hcid/dbus-adapter.c
parent3c1d9df615705539a3d43d46e80f978cf08b9948 (diff)
avoid multiple inquiry request when there is pending inquiry procedure
Diffstat (limited to 'hcid/dbus-adapter.c')
-rw-r--r--hcid/dbus-adapter.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index d77b9be7..3c2a3300 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -1137,6 +1137,9 @@ static DBusMessage *handle_dev_discover_devices_req(DBusMessage *msg, void *data
uint32_t lap = 0x9e8b33;
int dd;
+ if (dbus_data->busy)
+ return error_discover_in_progress(msg);
+
dd = hci_open_dev(dbus_data->dev_id);
if (dd < 0)
return error_no_such_adapter(msg);
@@ -1283,7 +1286,7 @@ DBusHandlerResult msg_func_device(DBusConnection *conn, DBusMessage *msg, void *
signature = dbus_message_get_signature(msg);
iface = dbus_message_get_interface(msg);
- info("Adapter path:%s method:%s", dbus_message_get_path(msg), method);
+ info("Adapter path:%s iface:%s method:%s", dbus_message_get_path(msg), iface, method);
if (strcmp(ADAPTER_INTERFACE, iface))
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;