diff options
| author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-06-26 14:44:01 +0000 | 
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-06-26 14:44:01 +0000 | 
| commit | 36dedff329b5ced8979a2161075e6a9d38c58785 (patch) | |
| tree | 67d1b87e88144974eede84c57f72a66882ac9e3c /hcid/dbus-hci.c | |
| parent | 1e8fbfbfa6fbcf88a668f77e5601bbc505eb483f (diff) | |
Fix probing and removing drivers when discovering services.
Diffstat (limited to 'hcid/dbus-hci.c')
| -rw-r--r-- | hcid/dbus-hci.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| 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); | 
