2023-12-11 16:42:55

by Yao Xiao

[permalink] [raw]
Subject: [PATCH 2/2] device: Add notifications when the bdaddr_type changes

From: Xiao Yao <[email protected]>

Signed-off-by: Xiao Yao <[email protected]>
---
src/device.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/src/device.c b/src/device.c
index a734fff0d..17bcfbc49 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4472,6 +4472,9 @@ void device_set_le_support(struct btd_device *device, uint8_t bdaddr_type)
device->le = true;
device->bdaddr_type = bdaddr_type;

+ g_dbus_emit_property_changed(dbus_conn, device->path,
+ DEVICE_INTERFACE, "AddressType");
+
store_device_info(device);
}

--
2.34.1