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.
This commit is contained in:
Andrzej Kaczmarek
2026-02-27 14:22:27 +01:00
parent 9e18cf9105
commit 6254b65e39
+3 -1
View File
@@ -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;