linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] gatt: Fix not sending any data when server supports AcquireWrite
@ 2020-04-06 21:19 Luiz Augusto von Dentz
  2020-04-07  7:14 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2020-04-06 21:19 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

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(+)

diff --git a/src/gatt-database.c b/src/gatt-database.c
index 483c84341..db67dd3f8 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -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);
 }
-- 
2.21.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-07  7:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06 21:19 [PATCH BlueZ] gatt: Fix not sending any data when server supports AcquireWrite Luiz Augusto von Dentz
2020-04-07  7:14 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).