mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-04 05:57:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user