From 83f0647762b828fa208c25a0edb3b159038f8a54 Mon Sep 17 00:00:00 2001 From: Erik Brockhoff Date: Mon, 8 Apr 2024 08:08:39 +0200 Subject: [PATCH] bluetooth: controller: use correct CONFIG for central CIS create proc. data Use CONFIG_BT_CTLR_CENTRAL_ISO instead of CONFIG_BT_CENTRAL in declaring central CIS CREATE procedure context data. In some configs the size of this data structure is bound by central CIS CREATE, so doing it correctly will save memory in the procedure context allocation. Signed-off-by: Erik Brockhoff --- subsys/bluetooth/controller/ll_sw/ull_llcp_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/controller/ll_sw/ull_llcp_internal.h b/subsys/bluetooth/controller/ll_sw/ull_llcp_internal.h index 0e1afb9ff1d..d5229715b0c 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_llcp_internal.h +++ b/subsys/bluetooth/controller/ll_sw/ull_llcp_internal.h @@ -276,7 +276,7 @@ struct proc_ctx { #if defined(CONFIG_BT_PERIPHERAL) uint32_t host_request_to; #endif /* defined(CONFIG_BT_PERIPHERAL) */ -#if defined(CONFIG_BT_CENTRAL) +#if defined(CONFIG_BT_CTLR_CENTRAL_ISO) uint32_t cig_sync_delay; uint32_t cis_sync_delay; uint8_t c_phy; @@ -295,7 +295,7 @@ struct proc_ctx { uint8_t c_ft; uint8_t p_ft; uint8_t aa[4]; -#endif /* defined(CONFIG_BT_CENTRAL) */ +#endif /* defined(CONFIG_BT_CTLR_CENTRAL_ISO) */ } cis_create; struct {