This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new c8842468c porting: add missing call to ble_ll_init
c8842468c is described below

commit c8842468c661af71d334dc194d3d7a30e48bb9e2
Author: Gerard Marull-Paretas <[email protected]>
AuthorDate: Thu Mar 6 18:05:59 2025 +0100

    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]>
---
 porting/nimble/src/nimble_port.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/porting/nimble/src/nimble_port.c b/porting/nimble/src/nimble_port.c
index bb26f22a3..c071da732 100644
--- a/porting/nimble/src/nimble_port.c
+++ b/porting/nimble/src/nimble_port.c
@@ -31,6 +31,9 @@ static struct ble_npl_eventq g_eventq_dflt;
 
 extern void os_msys_init(void);
 extern void os_mempool_module_init(void);
+#if NIMBLE_CFG_CONTROLLER
+extern void ble_ll_init(void);
+#endif
 
 void
 nimble_port_init(void)
@@ -40,6 +43,11 @@ nimble_port_init(void)
     /* Initialize the global memory pool */
     os_mempool_module_init();
     os_msys_init();
+
+#if NIMBLE_CFG_CONTROLLER
+    ble_ll_init();
+#endif
+
     /* Initialize transport */
     ble_transport_init();
     /* Initialize the host */

Reply via email to