Skip to content

Commit 612d8ec

Browse files
AyturkDuzenmbolivar-nordic
authored andcommitted
Bluetooth: Controller: Define mem size for periodic adv list
Allocate memory for periodic adv list Signed-off-by: Aytürk Düzen <[email protected]>
1 parent 484b224 commit 612d8ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

subsys/bluetooth/controller/hci_driver.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,12 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_PERIPHERAL) ||
114114
#define SDC_PERIODIC_SYNC_MEM_SIZE \
115115
(SDC_PERIODIC_ADV_SYNC_COUNT * \
116116
SDC_MEM_PER_PERIODIC_SYNC(CONFIG_BT_CTLR_SDC_PERIODIC_SYNC_BUFFER_COUNT))
117+
#define SDC_PERIODIC_ADV_LIST_MEM_SIZE \
118+
SDC_MEM_PERIODIC_ADV_LIST(CONFIG_BT_CTLR_SYNC_PERIODIC_ADV_LIST_SIZE)
117119
#else
118120
#define SDC_PERIODIC_ADV_SYNC_COUNT 0
119121
#define SDC_PERIODIC_SYNC_MEM_SIZE 0
122+
#define SDC_PERIODIC_ADV_LIST_MEM_SIZE 0
120123
#endif
121124

122125
#if defined(CONFIG_BT_OBSERVER)
@@ -160,6 +163,7 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_PERIPHERAL) ||
160163
SDC_ADV_SET_MEM_SIZE + \
161164
SDC_PERIODIC_ADV_MEM_SIZE + \
162165
SDC_PERIODIC_SYNC_MEM_SIZE + \
166+
SDC_PERIODIC_ADV_LIST_MEM_SIZE + \
163167
(SDC_SCAN_BUF_SIZE))
164168

165169
static uint8_t sdc_mempool[MEMPOOL_SIZE];

0 commit comments

Comments
 (0)