Bound the packet count CLI option. We're using the L2CAP header CID for
a paket ID, so the max packet count value has to fit into this 16-bit
field.
Add support for controllers that are LE only by checking the
le_acl_packet_queue.max_size.
Tested with 65535 max packet count. Took 138 seconds at 481 kB/s with a
USB BT dongle.
Add a command line utility to open a transport to a BT controller, put
the controller into local loopback mode, and send and receive ACL data
packets. Record the time it takes to send and receive all packets and
calculate a throughput measurement in kB/s.
This utility is usefull for characterizing the speed of a transport to a
BT controller (such as a TCP socket or serial port) without having to
deal with a connected peer or the variability of over the air
transmissions.
The transport CLI argument is required. The packet size and packet
count arguments are optional. They default to the same values as the
bumble-bench app.