All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/6] shared/csip: Fix returning invalid data to attribute Size reads
@ 2023-10-02 23:13 Luiz Augusto von Dentz
  2023-10-02 23:13 ` [PATCH BlueZ 2/6] shared/csip: Fix not requiring encryption Luiz Augusto von Dentz
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Luiz Augusto von Dentz @ 2023-10-02 23:13 UTC (permalink / raw)
  To: linux-bluetooth

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

The attribute Size value is stored in the size_val not on size member
which represents the attribute object.
---
 src/shared/csip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/shared/csip.c b/src/shared/csip.c
index 04a8d542b390..24d5d6a323bd 100644
--- a/src/shared/csip.c
+++ b/src/shared/csip.c
@@ -291,8 +291,8 @@ static void csis_size_read(struct gatt_db_attribute *attrib,
 	struct bt_csis *csis = user_data;
 	struct iovec iov;
 
-	iov.iov_base = &csis->size;
-	iov.iov_len = sizeof(csis->size);
+	iov.iov_base = &csis->size_val;
+	iov.iov_len = sizeof(csis->size_val);
 
 	gatt_db_attribute_read_result(attrib, id, 0, iov.iov_base,
 							iov.iov_len);
-- 
2.41.0


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

end of thread, other threads:[~2023-10-03 23:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-02 23:13 [PATCH BlueZ 1/6] shared/csip: Fix returning invalid data to attribute Size reads Luiz Augusto von Dentz
2023-10-02 23:13 ` [PATCH BlueZ 2/6] shared/csip: Fix not requiring encryption Luiz Augusto von Dentz
2023-10-02 23:13 ` [PATCH BlueZ 3/6] shared/csip: Fix not always reading SIRK value Luiz Augusto von Dentz
2023-10-02 23:13 ` [PATCH BlueZ 4/6] device: Add btd_device_get_ltk Luiz Augusto von Dentz
2023-10-02 23:13 ` [PATCH BlueZ 5/6] csip: Add support for SIRK encryption Luiz Augusto von Dentz
2023-10-02 23:13 ` [PATCH BlueZ 6/6] main.conf: Fix default of CSIS.encrypt Luiz Augusto von Dentz
2023-10-03  1:50 ` [BlueZ,1/6] shared/csip: Fix returning invalid data to attribute Size reads bluez.test.bot
2023-10-03 23:20 ` [PATCH BlueZ 1/6] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.