Diff between 96ab7296cb92705de8aabcdc14d81386b564d452 and 581aae6a2722e69479f4846e7b00c43fdf112b4c
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +4 | -1 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index cb16d37..2b8e06c 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4158,7 +4158,10 @@ 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);
+ if (device->temporary)
+ btd_device_set_temporary(device, false);
+ else
+ store_device_info(device);
g_dbus_emit_property_changed(dbus_conn, device->path,
DEVICE_INTERFACE, "Address");