diff options
author | Pauli Virtanen <pav@iki.fi> | 2023-02-25 21:42:50 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-02-27 11:24:57 -0800 |
commit | 80a45cb6a2402c820359dba593d9f5c68c30fb6e (patch) | |
tree | 6b31154af6d699e70a08e803ab84cad1e362d4e1 /tools | |
parent | fcdd38acf6b2cf6b81be1dd7ec3a240757f90728 (diff) | |
download | bluez-80a45cb6a2402c820359dba593d9f5c68c30fb6e.tar.gz |
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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/iso-tester.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |