Skip to content

Commit 2897870

Browse files
ppryga-nordicnashif
authored andcommitted
Bluetooth: controller: Fix aux ptr offset calculation for S2 Coded PHY
In the calculation of auxiliary PDU offset for periodic advertising AUX_CHAIN_IND PDUs there were used old macro that was removed. The code didn't compile. Also there were no support for S2 Coded PHY in the offset calculation. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 4bd326d commit 2897870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ static void isr_tx(void *param)
352352
static void pdu_b2b_update(struct lll_adv_sync *lll, struct pdu_adv *pdu, uint32_t cte_len_us)
353353
{
354354
while (pdu) {
355-
pdu_b2b_aux_ptr_update(pdu, lll->adv->phy_s, 0, 0, ADV_SYNC_PDU_B2B_AFS,
356-
cte_len_us);
355+
pdu_b2b_aux_ptr_update(pdu, lll->adv->phy_s, lll->adv->phy_flags, 0,
356+
ADV_SYNC_PDU_B2B_AFS, cte_len_us);
357357
pdu = lll_adv_pdu_linked_next_get(pdu);
358358
}
359359
}
@@ -386,7 +386,7 @@ static void pdu_b2b_aux_ptr_update(struct pdu_adv *pdu, uint8_t phy, uint8_t fla
386386

387387
/* Update AuxPtr */
388388
aux = (void *)dptr;
389-
offset_us += PKT_AC_US(pdu->len, phy);
389+
offset_us += PDU_AC_US(pdu->len, phy, flags);
390390
/* Add CTE length to PDUs that have CTE attached.
391391
* Periodic advertising chain may include PDUs without CTE.
392392
*/

0 commit comments

Comments
 (0)