Bluetooth: ISO: Add broadcast support
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 9 Mar 2022 21:14:41 +0000 (13:14 -0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 23 Jul 2022 00:14:13 +0000 (17:14 -0700)
commitf764a6c2c1e446f560faa3232271a0637369170b
tree56c488d81ad85ea2b5c507730594014bfda95fcd
parenteca0ae4aea66914515e5e3098ea051b518ee5316
Bluetooth: ISO: Add broadcast support

This adds broadcast support for BTPROTO_ISO by extending the
sockaddr_iso with a new struct sockaddr_iso_bc where the socket user
can set the broadcast address when receiving, the SID and the BIS
indexes it wants to synchronize.

When using BTPROTO_ISO for broadcast the roles are:

Broadcaster -> uses connect with address set to BDADDR_ANY:
> tools/isotest -s 00:00:00:00:00:00

Broadcast Receiver -> uses listen with address set to broadcaster:
> tools/isotest -d 00:AA:01:00:00:00

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/bluetooth.h
include/net/bluetooth/iso.h
net/bluetooth/iso.c