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 <erbr@oticon.com>
This commit is contained in:
Erik Brockhoff 2024-04-08 08:08:39 +02:00 committed by Carles Cufí
commit 83f0647762

View file

@ -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 {