From 6254b65e3998b35e1cf1f2300cfafe02c2c42b38 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Mon, 23 Feb 2026 17:08:28 +0100 Subject: [PATCH] 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;