summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-10-03 13:55:07 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-10-03 14:16:41 +0300
commit5d0fadf061dc0bb3249b53771c3ea4847dc4ee1a (patch)
treed80b05213a4721b29e86ee8688ac43a148c258bf
parent47410af520bca46fb8bcb9bcba7b9b1d8e6318c1 (diff)
downloadbluez-5d0fadf061dc0bb3249b53771c3ea4847dc4ee1a.tar.gz
gatt: Fix not sending indications properly
When using AcquireNotify with notifications the code would assume that notification would always be used instead of checking if indications are supported.
-rw-r--r--src/gatt-database.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gatt-database.c b/src/gatt-database.c
index e84c19198..0c84b2569 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -1830,7 +1830,8 @@ static bool pipe_io_read(struct io *io, void *user_data)
gatt_db_attribute_get_handle(chrc->attrib),
buf, bytes_read,
gatt_db_attribute_get_handle(chrc->ccc),
- false, NULL);
+ chrc->props & BT_GATT_CHRC_PROP_INDICATE,
+ NULL);
return true;
}