From e2abf6c3625fa94169d4d0fc868da79e1eb987bd Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 6 Apr 2020 14:19:03 -0700 Subject: [PATCH] gatt: Fix not sending any data when server supports AcquireWrite msg.msg_iovlen should be set to 1 to forward the data received over the file descriptor. Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- src/gatt-database.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gatt-database.c b/src/gatt-database.c index 298a62f..52ee000 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -2880,6 +2880,7 @@ static int sock_io_send(struct io *io, const void *data, size_t len) memset(&msg, 0, sizeof(msg)); msg.msg_iov = &iov; + msg.msg_iovlen = 1; #ifdef TIZEN_FEATURE_BLUEZ_MODIFY DBG("io sending data "); -- 2.7.4