Bluetooth: controller: Fix number of handles in le_big_sync_established

Use lll->stream_count instead of lll->num_bis for returning the correct
number of handles.

Signed-off-by: Morten Priess <mtpr@oticon.com>
This commit is contained in:
Morten Priess 2024-04-22 13:08:55 +02:00 committed by Carles Cufí
parent 3b14cd4891
commit 0e6bb8aa96

View File

@ -7864,7 +7864,7 @@ static void le_big_sync_established(struct pdu_data *pdu,
sync_iso = node_rx->rx_ftr.param;
lll = &sync_iso->lll;
evt_size = sizeof(*sep) + (lll->num_bis * sizeof(uint16_t));
evt_size = sizeof(*sep) + (lll->stream_count * sizeof(uint16_t));
sep = meta_evt(buf, BT_HCI_EVT_LE_BIG_SYNC_ESTABLISHED, evt_size);
sep->big_handle = (uint8_t)node_rx->hdr.handle;