Skip to content

Commit 4e43295

Browse files
ppryga-nordicnashif
authored andcommitted
tests: Bluetooth: df: fix compilation error in per adv chain tests
There was a change in parameters list of function ull_adv_sync_pdu_- alloc. There was a call in commmon.c file in connectionless_cte_chains unit tests with use of former parameters list. That caused a compilation error. The commit fixes the compilation issue. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 42fccba commit 4e43295

File tree

1 file changed

+2
-2
lines changed
  • tests/bluetooth/df/connectionless_cte_chains/src

1 file changed

+2
-2
lines changed

tests/bluetooth/df/connectionless_cte_chains/src/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ void common_create_per_adv_chain(struct ll_adv_set *adv_set, uint8_t pdu_count)
141141
pdu = lll_adv_sync_data_peek(lll_sync, NULL);
142142
ull_adv_sync_pdu_init(pdu, 0);
143143

144-
err = ull_adv_sync_pdu_alloc(adv_set, 0, 0, NULL, &pdu_prev, &pdu, &extra_data_prev,
145-
&extra_data, &pdu_idx);
144+
err = ull_adv_sync_pdu_alloc(adv_set, ULL_ADV_PDU_EXTRA_DATA_ALLOC_IF_EXIST, &pdu_prev,
145+
&pdu, &extra_data_prev, &extra_data, &pdu_idx);
146146
zassert_equal(err, 0, "Unexpected error while PDU allocation, err: %d", err);
147147

148148
if (extra_data) {

0 commit comments

Comments
 (0)