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 6254b65e3 nimble/ll: Aply min window offset when CSS is enabled
6254b65e3 is described below
commit 6254b65e3998b35e1cf1f2300cfafe02c2c42b38
Author: Andrzej Kaczmarek <[email protected]>
AuthorDate: Mon Feb 23 17:08:28 2026 +0100
nimble/ll: Aply min window offset when CSS is enabled
We can apply min window offset for the 1st connection if CSS is enabled
since that connection can be scheduled "anywhere", just like regular
connection.
---
nimble/controller/src/ble_ll_sched.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/nimble/controller/src/ble_ll_sched.c
b/nimble/controller/src/ble_ll_sched.c
index c2ec46a43..b642414ae 100644
--- a/nimble/controller/src/ble_ll_sched.c
+++ b/nimble/controller/src/ble_ll_sched.c
@@ -527,7 +527,9 @@ ble_ll_sched_conn_central_new(struct ble_ll_conn_sm *connsm,
OS_ENTER_CRITICAL(sr);
if (!g_ble_ll_conn_css_ref) {
- css->period_anchor_ticks = earliest_start;
+ css->period_anchor_ticks = earliest_start +
+
MYNEWT_VAL(BLE_LL_CONN_INIT_MIN_WIN_OFFSET) *
+ BLE_LL_SCHED_USECS_PER_SLOT;
css->period_anchor_rem_us = 0;
css->period_anchor_idx = 0;
css->period_anchor_slot_idx = connsm->css_slot_idx;