Skip to contentSkip to conversation

gatt: Fix not replying to Write request

PATCH Applied Luiz Augusto von Dentz 1 participant 2 messages Oct 2, 2017 – Oct 3, 2017 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 gatt: Fix not replying to Write request

From: Luiz Augusto von Dentz <[email protected]>

When using AcquireWrite the first write would not call gatt_db_attribute_write_result so no reply would be generated.

---
 src/gatt-database.c | 2 ++
 1 file changed, 2 insertions(+)
src/gatt-database.c +2 -0
index 4932568dd..e84c19198 100644
@@ -1892,6 +1892,8 @@ static void acquire_write_reply(DBusMessage *message, void *user_data)
 				op->data.iov_len) < 0)
 		goto retry;
 
+	gatt_db_attribute_write_result(op->attrib, op->id, 0);
+
 	return;
 
 retry:
Signature · 1 line
2.13.5
author maintainer Applied
#1 lore raw

Hi,

Quoted 22 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

When using AcquireWrite the first write would not call gatt_db_attribute_write_result so no reply would be generated.

---
 src/gatt-database.c | 2 ++
 1 file changed, 2 insertions(+)
src/gatt-database.c +2 -1
index 4932568dd..e84c19198 100644
@@ -1892,6 +1892,8 @@ static void acquire_write_reply(DBusMessage *message, void *user_data)
                                op->data.iov_len) < 0)
                goto retry;
 
+       gatt_db_attribute_write_result(op->attrib, op->id, 0);
+
        return;
 
 retry:
--
Quoted 2 lines

2.13.5

Applied.

Signature · 1 line
Luiz Augusto von Dentz