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

andk 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 aeee5e6a6 nimble/ll: Fix padv interval check for scheduling
aeee5e6a6 is described below

commit aeee5e6a6723e284bdac5b5fb02a01f0401df1f7
Author: Andrzej Kaczmarek <[email protected]>
AuthorDate: Thu Feb 20 19:55:57 2025 +0100

    nimble/ll: Fix padv interval check for scheduling
    
    We should use padv interval value in ticks for calculations, not in
    HCI units...
---
 nimble/controller/src/ble_ll_adv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/controller/src/ble_ll_adv.c 
b/nimble/controller/src/ble_ll_adv.c
index 646e8b12a..401fe2747 100644
--- a/nimble/controller/src/ble_ll_adv.c
+++ b/nimble/controller/src/ble_ll_adv.c
@@ -2585,7 +2585,7 @@ ble_ll_adv_periodic_schedule_next(struct ble_ll_adv_sm 
*advsm)
      */
     if (sync->auxptr_zero ||
         (LL_TMR_GT(sch->end_time, advsm->padv_event_start +
-                                  advsm->periodic_adv_itvl))) {
+                   ble_ll_tmr_u2t(advsm->padv_itvl_us)))) {
         STATS_INC(ble_ll_stats, periodic_chain_drop_event);
         ble_ll_sched_rmv_elem(&sync->sch);
     }

Reply via email to