Skip to content

Commit 3eee7c5

Browse files
cvinayakdanieldegrasse
authored andcommitted
Bluetooth: Controller: Fix peripheral role assertion on conn update
Fix peripheral role assertion during connection update and simultaneous flash operations. prepare_cb: Actual EVENT_OVERHEAD_START_US = 6149 This happens due to instant latency at connection update where the ticks_at_expire was in the past. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 6935a4b commit 3eee7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/controller/ll_sw/ull_conn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2363,7 +2363,7 @@ void ull_conn_update_parameters(struct ll_conn *conn, uint8_t is_cu_proc, uint8_
23632363
periodic_us = conn_interval_us;
23642364

23652365
conn_interval_old_us = conn_interval_old * conn_interval_unit_old;
2366-
latency_upd = conn_interval_old_us / conn_interval_us;
2366+
latency_upd = DIV_ROUND_UP(conn_interval_old_us, conn_interval_us);
23672367
conn_interval_new_us = latency_upd * conn_interval_us;
23682368
if (conn_interval_new_us > conn_interval_old_us) {
23692369
ticks_at_expire += HAL_TICKER_US_TO_TICKS(

0 commit comments

Comments
 (0)