Skip to content

Commit

Permalink
Bluetooth: controller: Fix number of handles in le_big_sync_established
Browse files Browse the repository at this point in the history
Use lll->stream_count instead of lll->num_bis for returning the correct
number of handles.

Signed-off-by: Morten Priess <mtpr@oticon.com>
  • Loading branch information
mtpr-ot authored and carlescufi committed Aug 5, 2024
1 parent 3b14cd4 commit 0e6bb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/controller/hci/hci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e6bb8a

Please sign in to comment.