summaryrefslogtreecommitdiffstats
path: root/hcid/adapter.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r--hcid/adapter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index 71b79d83..1ffce314 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -2302,6 +2302,7 @@ struct device *adapter_get_device(DBusConnection *conn,
if (!device)
return NULL;
+ device->temporary = TRUE;
snprintf(path, MAX_PATH_LENGTH, "/hci%d", adapter->dev_id);
adapter->devices = g_slist_append(adapter->devices, device);
@@ -3746,6 +3747,7 @@ static void discover_services_cb(gpointer user_data, sdp_list_t *recs, int err)
if (!device)
goto failed;
+ device->temporary = FALSE;
/* Reply create device request */
reply = dbus_message_new_method_return(adapter->create->msg);
if (!reply)