summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 19:36:56 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 19:37:41 +0200
commit58c15493922277539cca11e8b55776c5d0fbccba (patch)
tree0bd713ca9693096cb8e257dcc58d0b523067fd0e /src/device.c
parent7b5212174affc3834d32b68b07370810f9592cb1 (diff)
Don't remove linkkeys upon adapter removal
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index b920d5a2..02077f94 100644
--- a/src/device.c
+++ b/src/device.c
@@ -694,7 +694,8 @@ static void device_remove_bonding(struct btd_device *device, DBusConnection *con
"Paired", DBUS_TYPE_BOOLEAN, &paired);
}
-void device_remove(struct btd_device *device, DBusConnection *conn)
+void device_remove(struct btd_device *device, DBusConnection *conn,
+ gboolean remove_bonding)
{
GSList *list;
struct btd_device_driver *driver;
@@ -705,7 +706,7 @@ void device_remove(struct btd_device *device, DBusConnection *conn)
if (device->bonding)
device_cancel_bonding(device, HCI_OE_USER_ENDED_CONNECTION);
- if (!device->temporary)
+ if (!device->temporary && remove_bonding)
device_remove_bonding(device, conn);
for (list = device->drivers; list; list = list->next) {