From bb93cc594a1741efb0dad33f59b0c92167dfc3e3 Mon Sep 17 00:00:00 2001 From: Mariusz Skamra Date: Mon, 22 Jan 2024 18:14:00 +0100 Subject: [PATCH] nimble/iso: Fix missing events in LE event mask This fixes missing events: * LE Create BIG Complete event * LE Terminate BIG Complete event in LE event mask. --- nimble/host/src/ble_hs_startup.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nimble/host/src/ble_hs_startup.c b/nimble/host/src/ble_hs_startup.c index 71d46bdbb7..d9907f376f 100644 --- a/nimble/host/src/ble_hs_startup.c +++ b/nimble/host/src/ble_hs_startup.c @@ -292,6 +292,17 @@ ble_hs_startup_le_set_evmask_tx(void) } #endif +#if MYNEWT_VAL(BLE_ISO_BROADCAST_SOURCE) + if (version >= BLE_HCI_VER_BCS_5_2) { + /** + * Enable the following LE events: + * 0x0000000004000000 LE Create BIG Complete event + * 0x0000000008000000 LE Terminate BIG Complete event + */ + mask |= 0x000000000C000000; + } +#endif + cmd.event_mask = htole64(mask); rc = ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE,