Bluetooth: Controller: Implement ISO Broadcaster connection handle

Implement ISO Broadcaster connection handle representing the
streams in the created BIG. Add implementation to return
these handles on BIG complete event, and to release these on
BIG terminate.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-11-23 21:34:04 +05:30 committed by Anas Nashif
commit 66dc992fc2
7 changed files with 146 additions and 31 deletions

View file

@ -6516,8 +6516,14 @@ static void le_big_complete(struct pdu_data *pdu_data,
sep->max_pdu = sys_cpu_to_le16(lll->max_pdu);
sep->num_bis = lll->num_bis;
/* FIXME: Connection handle list of all BISes in the BIG */
sep->handle[0] = sys_cpu_to_le16(0);
/* Connection handle list of all BISes in the BIG */
for (uint8_t i = 0U; i < lll->num_bis; i++) {
uint16_t handle;
handle = BT_CTLR_ADV_ISO_STREAM_HANDLE_BASE +
lll->stream_handle[i];
sep->handle[i] = sys_cpu_to_le16(handle);
}
}
static void le_big_terminate(struct pdu_data *pdu,