diff --git a/subsys/bluetooth/controller/Kconfig.ll_sw_split b/subsys/bluetooth/controller/Kconfig.ll_sw_split index 689cef90df2..b85d71f5ba3 100644 --- a/subsys/bluetooth/controller/Kconfig.ll_sw_split +++ b/subsys/bluetooth/controller/Kconfig.ll_sw_split @@ -193,13 +193,13 @@ config BT_CTLR_SCAN_SYNC_SET help Maximum supported periodic sync sets. -config BT_CTLR_SCAN_SYNC_ISO_MAX - int "Maximum Broadcast Isochronous Groups syncs" +config BT_CTLR_SCAN_SYNC_ISO_SET + int "LE ISO Broadcast Isochronous Groups Sync Sets" depends on BT_CTLR_SYNC_ISO range 1 64 default 1 help - Maximum supported broadcast isochronous groups (BIGs) syncs. + Maximum supported broadcast isochronous groups (BIGs) sync sets. config BT_CTLR_ZLI bool "Use Zero Latency IRQs" diff --git a/subsys/bluetooth/controller/ll_sw/lll.h b/subsys/bluetooth/controller/ll_sw/lll.h index 3acdc671428..822e3ecb534 100644 --- a/subsys/bluetooth/controller/ll_sw/lll.h +++ b/subsys/bluetooth/controller/ll_sw/lll.h @@ -82,7 +82,7 @@ enum { #if defined(CONFIG_BT_CTLR_SYNC_ISO) TICKER_ID_SCAN_SYNC_ISO_BASE, TICKER_ID_SCAN_SYNC_ISO_LAST = ((TICKER_ID_SCAN_SYNC_ISO_BASE) + - (CONFIG_BT_CTLR_SCAN_SYNC_ISO_MAX) - 1), + (CONFIG_BT_CTLR_SCAN_SYNC_ISO_SET) - 1), #endif /* CONFIG_BT_CTLR_SYNC_ISO */ #endif /* CONFIG_BT_CTLR_ADV_PERIODIC */ #endif /* CONFIG_BT_CTLR_ADV_EXT */ diff --git a/subsys/bluetooth/controller/ll_sw/ull_sync_iso.c b/subsys/bluetooth/controller/ll_sw/ull_sync_iso.c index fb7b8965dbd..a1b05c101ef 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_sync_iso.c +++ b/subsys/bluetooth/controller/ll_sw/ull_sync_iso.c @@ -42,15 +42,15 @@ #include "ull_sync_internal.h" #include "ull_sync_iso_internal.h" -static struct ll_sync_iso ll_sync_iso_pool[CONFIG_BT_CTLR_SCAN_SYNC_ISO_MAX]; -static void *sync_iso_free; - static int init_reset(void); static inline struct ll_sync_iso *sync_iso_acquire(void); static void ticker_cb(uint32_t ticks_at_expire, uint32_t remainder, uint16_t lazy, void *param); static void ticker_op_cb(uint32_t status, void *param); +static struct ll_sync_iso ll_sync_iso_pool[CONFIG_BT_CTLR_SCAN_SYNC_ISO_SET]; +static void *sync_iso_free; + uint8_t ll_big_sync_create(uint8_t big_handle, uint16_t sync_handle, uint8_t encryption, uint8_t *bcode, uint8_t mse, uint16_t sync_timeout, uint8_t num_bis, @@ -153,7 +153,7 @@ int ull_sync_iso_reset(void) struct ll_sync_iso *ull_sync_iso_get(uint8_t handle) { - if (handle >= CONFIG_BT_CTLR_SCAN_SYNC_ISO_MAX) { + if (handle >= CONFIG_BT_CTLR_SCAN_SYNC_ISO_SET) { return NULL; }