Skip to contentSkip to conversation

gatt: Fix not sending any data when server supports AcquireWrite

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Apr 6, 2020 – Apr 7, 2020 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 gatt: Fix not sending any data when server supports AcquireWrite

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

msg.msg_iovlen should be set to 1 to forward the data received over the file descriptor.

---
 src/gatt-database.c | 1 +
 1 file changed, 1 insertion(+)
src/gatt-database.c +1 -0
index 483c84341..db67dd3f8 100644
@@ -2396,6 +2396,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;
 
 	return sendmsg(io_get_fd(io), &msg, MSG_NOSIGNAL);
 }
Signature · 1 line
2.21.1
Applied
#1 lore raw

Hi Luiz,

Quoted 20 lines · On Monday, 6 April 2020 23:19:03 CEST Luiz Augusto von Dentz wrote:

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

msg.msg_iovlen should be set to 1 to forward the data received over the file descriptor.

---
 src/gatt-database.c | 1 +
 1 file changed, 1 insertion(+)
src/gatt-database.c +1 -0
index 483c84341..db67dd3f8 100644
@@ -2396,6 +2396,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;
 
 	return sendmsg(io_get_fd(io), &msg, MSG_NOSIGNAL);
Quoted 1 line

}

Applied, thanks.

Signature · 2 lines
pozdrawiam
Szymon Janc