summaryrefslogtreecommitdiffstats
path: root/hcid/manager.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-14 20:50:22 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-14 20:50:22 +0000
commit4bab9b442ec3e2e06157014c5d27641c79434e2a (patch)
treef644792a0071d0fe0ce7595196abdf4f6eea3435 /hcid/manager.c
parent9fa7cb38ac2f85ea1240b9b896de8145e59dd7d1 (diff)
added new adapter/device D-Bus path
Diffstat (limited to 'hcid/manager.c')
-rw-r--r--hcid/manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hcid/manager.c b/hcid/manager.c
index cb6e80f5..3e36d184 100644
--- a/hcid/manager.c
+++ b/hcid/manager.c
@@ -385,7 +385,7 @@ static DBusHandlerResult default_adapter(DBusConnection *conn,
if (!reply)
return DBUS_HANDLER_RESULT_NEED_MEMORY;
- snprintf(path, sizeof(path), "%s/hci%d", BASE_PATH, default_adapter_id);
+ snprintf(path, sizeof(path), "/hci%d", default_adapter_id);
dbus_message_append_args(reply, DBUS_TYPE_OBJECT_PATH, &path_ptr,
DBUS_TYPE_INVALID);
@@ -427,7 +427,7 @@ static DBusHandlerResult find_adapter(DBusConnection *conn,
if (!reply)
return DBUS_HANDLER_RESULT_NEED_MEMORY;
- snprintf(path, sizeof(path), "%s/hci%d", BASE_PATH, dev_id);
+ snprintf(path, sizeof(path), "/hci%d", dev_id);
dbus_message_append_args(reply, DBUS_TYPE_OBJECT_PATH, &path_ptr,
DBUS_TYPE_INVALID);
@@ -488,7 +488,7 @@ static DBusHandlerResult list_adapters(DBusConnection *conn,
if (hci_test_bit(HCI_RAW, &di.flags))
continue;
- snprintf(path, sizeof(path), "%s/%s", BASE_PATH, di.name);
+ snprintf(path, sizeof(path), "/hci%d", di.dev_id);
dbus_message_iter_append_basic(&array_iter,
DBUS_TYPE_OBJECT_PATH, &path_ptr);