From 36dedff329b5ced8979a2161075e6a9d38c58785 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 26 Jun 2008 14:44:01 +0000 Subject: Fix probing and removing drivers when discovering services. --- hcid/dbus-hci.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'hcid/dbus-hci.c') diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c index cf4bd192..f9d87973 100644 --- a/hcid/dbus-hci.c +++ b/hcid/dbus-hci.c @@ -587,11 +587,12 @@ static void create_stored_device_from_profiles(char *key, char *value, GSList *uuids = bt_string2list(value); struct device *device; - device = device_create(connection, adapter, key, uuids); + device = device_create(connection, adapter, key); if (device) { device->temporary = FALSE; adapter->devices = g_slist_append(adapter->devices, device); - device_probe_drivers(device); + device_probe_drivers(device, uuids); + g_slist_free(uuids); } } @@ -605,7 +606,7 @@ static void create_stored_device_from_linkkeys(char *key, char *value, key, (GCompareFunc) device_address_cmp)) return; - device = device_create(connection, adapter, key, NULL); + device = device_create(connection, adapter, key); if (device) { device->temporary = FALSE; adapter->devices = g_slist_append(adapter->devices, device); -- cgit