diff options
author | Paulo Alcantara <paulo.alcantara@openbossa.org> | 2012-05-22 16:45:27 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-05-23 17:05:44 +0300 |
commit | f40e859fbb5308917f0aa73c9afde279eb60a3ce (patch) | |
tree | cbc75c34ae162a44e48d0dff7846b0cefe4da6f7 /src/device.c | |
parent | bebd71a39051c0046a6f19a57ed13f3a320ca0c9 (diff) | |
download | bluez-f40e859fbb5308917f0aa73c9afde279eb60a3ce.tar.gz |
core: Fix removing device services from "primary" file
The BLE address type needs to be passed as parameter in
delete_device_service() function in order to remove a device from
"primary" file. This is why the entries in "primary" file will be using
the new storage format.
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index fd13bc3e3..7cdd025f9 100644 --- a/src/device.c +++ b/src/device.c @@ -1169,7 +1169,7 @@ static void device_remove_stored(struct btd_device *device) delete_entry(&src, "profiles", addr); delete_entry(&src, "trusts", addr); delete_all_records(&src, &device->bdaddr); - delete_device_service(&src, &device->bdaddr); + delete_device_service(&src, &device->bdaddr, device->bdaddr_type); if (device->blocked) device_unblock(conn, device, TRUE, FALSE); |