* [PATCH BlueZ v1] shared/tmap: Fix TMAP/SR/SGGIT/CHA/BV-01-C on big endian
@ 2026-01-26 14:57 Luiz Augusto von Dentz
2026-01-26 16:03 ` [BlueZ,v1] " bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2026-01-26 14:57 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This fix the following error cause by not converting the role value to
little endian:
TMAP/SR/SGGIT/CHA/BV-01-C [Characteristic GGIT - TMAP Role] - run
**
ERROR:src/shared/tester.c:992:test_io_recv: assertion failed: (memcmp(buf, iov->iov_base, len) == 0)
Bail out! ERROR:src/shared/tester.c:992:test_io_recv: assertion failed: (memcmp(buf, iov->iov_base, len) == 0)
---
src/shared/tmap.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/shared/tmap.c b/src/shared/tmap.c
index 27e08d74a0d4..685c15fba2df 100644
--- a/src/shared/tmap.c
+++ b/src/shared/tmap.c
@@ -239,13 +239,12 @@ static void tmas_role_read(struct gatt_db_attribute *attrib,
void *user_data)
{
struct bt_tmas_db *db = user_data;
- struct iovec iov = {
- .iov_base = &db->role_value,
- .iov_len = sizeof(db->role_value)
- };
+ uint16_t role;
- gatt_db_attribute_read_result(attrib, id, 0, iov.iov_base,
- iov.iov_len);
+ role = cpu_to_le16(db->role_value);
+
+ gatt_db_attribute_read_result(attrib, id, 0, (void *)&role,
+ sizeof(role));
}
static bool match_db(const void *data, const void *match_data)
--
2.52.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-26 16:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-26 14:57 [PATCH BlueZ v1] shared/tmap: Fix TMAP/SR/SGGIT/CHA/BV-01-C on big endian Luiz Augusto von Dentz
2026-01-26 16:03 ` [BlueZ,v1] " bluez.test.bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox