diff mbox series

[2/2] device: Add notifications when the bdaddr_type changes

Message ID 20231211162729.1183207-2-xiaokeqinhealth@126.com
State New
Headers show
Series [1/2] adapter: Fix addr_type for smp_irk/ltk_info/link_key | expand

Commit Message

Felix Qin Dec. 11, 2023, 4:27 p.m. UTC
From: Xiao Yao <xiaoyao@rock-chips.com>

Signed-off-by: Xiao Yao <xiaoyao@rock-chips.com>
---
 src/device.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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);
 }