Skip to content

Commit c884246

Browse files
gmarullsjanc
authored andcommitted
porting: add missing call to ble_ll_init
`nimble_port_init()` needs to call ble_ll_init() when controller is enabled. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 1f65494 commit c884246

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

porting/nimble/src/nimble_port.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ static struct ble_npl_eventq g_eventq_dflt;
3131

3232
extern void os_msys_init(void);
3333
extern void os_mempool_module_init(void);
34+
#if NIMBLE_CFG_CONTROLLER
35+
extern void ble_ll_init(void);
36+
#endif
3437

3538
void
3639
nimble_port_init(void)
@@ -40,6 +43,11 @@ nimble_port_init(void)
4043
/* Initialize the global memory pool */
4144
os_mempool_module_init();
4245
os_msys_init();
46+
47+
#if NIMBLE_CFG_CONTROLLER
48+
ble_ll_init();
49+
#endif
50+
4351
/* Initialize transport */
4452
ble_transport_init();
4553
/* Initialize the host */

0 commit comments

Comments
 (0)