Skip to content

Commit 3bf3308

Browse files
cvinayakkartben
authored andcommitted
Bluetooth: Controller: Fix Connected ISO to use accumulated latency
Fix Connected ISO to use accumulated latency to update the payload count. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 1c86636 commit 3bf3308

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_central_iso.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static int prepare_cb(struct lll_prepare_param *p)
171171
se_curr = 1U;
172172

173173
/* Adjust the SN and NESN for skipped CIG events */
174-
payload_count_lazy_update(cis_lll, lazy);
174+
payload_count_lazy_update(cis_lll, cig_lll->latency_event);
175175

176176
/* Start setting up of Radio h/w */
177177
radio_reset();
@@ -358,7 +358,7 @@ static int prepare_cb(struct lll_prepare_param *p)
358358
cis_lll = ull_conn_iso_lll_stream_get_by_group(cig_lll, &cis_handle);
359359
if (cis_lll && cis_lll->active) {
360360
/* Adjust sn and nesn for skipped CIG events */
361-
payload_count_lazy_update(cis_lll, lazy);
361+
payload_count_lazy_update(cis_lll, cig_lll->latency_event);
362362

363363
/* Adjust sn and nesn for canceled events */
364364
if (err) {

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_peripheral_iso.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ static int prepare_cb(struct lll_prepare_param *p)
204204
se_curr = 1U;
205205

206206
/* Adjust sn and nesn for skipped CIG events */
207-
payload_count_lazy(cis_lll, cig_lll->lazy_prepare);
207+
payload_count_lazy(cis_lll, cig_lll->latency_event);
208208

209209
/* Start setting up of Radio h/w */
210210
radio_reset();
@@ -375,7 +375,7 @@ static int prepare_cb(struct lll_prepare_param *p)
375375
}
376376

377377
/* Adjust sn and nesn for skipped CIG events */
378-
payload_count_lazy(cis_lll, cig_lll->lazy_prepare);
378+
payload_count_lazy(cis_lll, cig_lll->latency_event);
379379

380380
/* Adjust sn and nesn for canceled events */
381381
if (err) {

0 commit comments

Comments
 (0)