[PATCH BlueZ 14/18] core: gatt: Fix PropertiesChanged for "Flags"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes a bug in the GATT client API code that sent the "Flags"
property update on the wrong D-Bus object path and interface after
reading characteristic extended properties.
---
 src/gatt-client.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gatt-client.c b/src/gatt-client.c
index 0364e23..7aab747 100644
--- a/src/gatt-client.c
+++ b/src/gatt-client.c
@@ -1573,8 +1573,9 @@ static void read_ext_props_cb(bool success, uint8_t att_ecode,
 	chrc->ext_props = get_le16(value);
 	if (chrc->ext_props)
 		g_dbus_emit_property_changed(btd_get_dbus_connection(),
-						service->path,
-						GATT_SERVICE_IFACE, "Flags");
+						chrc->path,
+						GATT_CHARACTERISTIC_IFACE,
+						"Flags");
 
 	queue_remove(service->pending_ext_props, chrc);
 
-- 
2.2.0.rc0.207.ga3a616c

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux