From dfa781684a75a2f1d2dac64dbb77458eaabf3d3e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 20 Feb 2014 17:48:34 +0200 Subject: [PATCH] core: Update storage upon device address change Typically a device address gets updated when we go from RPA to Identity Address. Since storing data is not permitted for RPA force the storing after the address has changed. --- src/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/device.c b/src/device.c index a92709a39..c49b2104a 100644 --- a/src/device.c +++ b/src/device.c @@ -2331,6 +2331,8 @@ void device_update_addr(struct btd_device *device, const bdaddr_t *bdaddr, bacpy(&device->bdaddr, bdaddr); device->bdaddr_type = bdaddr_type; + store_device_info(device); + g_dbus_emit_property_changed(dbus_conn, device->path, DEVICE_INTERFACE, "Address"); } -- 2.47.3