From 0e6bb8aa960fa422ea534f5ef0296ce02cf5d4bc Mon Sep 17 00:00:00 2001 From: Morten Priess Date: Mon, 22 Apr 2024 13:08:55 +0200 Subject: [PATCH] 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 --- subsys/bluetooth/controller/hci/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/hci/hci.c b/subsys/bluetooth/controller/hci/hci.c index 54ca8ae83ef..69c8d446c4c 100644 --- a/subsys/bluetooth/controller/hci/hci.c +++ b/subsys/bluetooth/controller/hci/hci.c @@ -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;