From 80a45cb6a2402c820359dba593d9f5c68c30fb6e Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 25 Feb 2023 21:42:50 +0000 Subject: bthost: Allow sending ISO packets with sequence number and timestamp Change bthost_send_iso to take packet sequence number and timestamp, and allow it to send timestamped HCI ISO data packets. Currently, btdev passes through ISO packets, so this can also be used to test RX timestamping. --- tools/iso-tester.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/iso-tester.c b/tools/iso-tester.c index d790b1556..dcfd6a045 100644 --- a/tools/iso-tester.c +++ b/tools/iso-tester.c @@ -1146,6 +1146,7 @@ static void iso_recv(struct test_data *data, GIOChannel *io) { const struct iso_client_data *isodata = data->test_data; struct bthost *host; + static uint16_t sn; tester_print("Receive %zu bytes of data", isodata->recv->iov_len); @@ -1156,7 +1157,7 @@ static void iso_recv(struct test_data *data, GIOChannel *io) } host = hciemu_client_get_host(data->hciemu); - bthost_send_iso(host, data->handle, isodata->recv, 1); + bthost_send_iso(host, data->handle, false, sn++, 0, isodata->recv, 1); data->io_id[0] = g_io_add_watch(io, G_IO_IN, iso_recv_data, data); } -- cgit v1.2.1