File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
subsys/bluetooth/controller/ll_sw Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ static int init_reset(void);
6565/* Allocate data path pools for RX/TX directions for each stream */
6666#define BT_CTLR_ISO_STREAMS ((2 * (BT_CTLR_CONN_ISO_STREAMS)) + \
6767 BT_CTLR_SYNC_ISO_STREAMS)
68+ #if BT_CTLR_ISO_STREAMS
6869static struct ll_iso_datapath datapath_pool [BT_CTLR_ISO_STREAMS ];
70+ #endif /* BT_CTLR_ISO_STREAMS */
6971
7072static void * datapath_free ;
7173
@@ -838,9 +840,11 @@ static int init_reset(void)
838840 CONFIG_BT_CTLR_ISO_TX_BUFFERS , & mem_link_tx .free );
839841#endif /* CONFIG_BT_CTLR_ADV_ISO || CONFIG_BT_CTLR_CONN_ISO */
840842
843+ #if BT_CTLR_ISO_STREAMS
841844 /* Initialize ISO Datapath pool */
842845 mem_init (datapath_pool , sizeof (struct ll_iso_datapath ),
843846 sizeof (datapath_pool ) / sizeof (struct ll_iso_datapath ), & datapath_free );
847+ #endif /* BT_CTLR_ISO_STREAMS */
844848
845849 return 0 ;
846850}
You can’t perform that action at this time.
0 commit comments