Skip to content

Commit dc63385

Browse files
cvinayakcfriedt
authored andcommitted
Bluetooth: Controller: Fix uninit update flag given to PDU _latest_get
Fix uninitialized update flag given to PDU _latest_get() functions. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 9d62f8d commit dc63385

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ static int prepare_cb(struct lll_prepare_param *p)
202202
lll = p->param;
203203

204204
/* FIXME: get latest only when primary PDU without Aux PDUs */
205+
upd = 0U;
205206
sec_pdu = lll_adv_aux_data_latest_get(lll, &upd);
206207
LL_ASSERT(sec_pdu);
207208

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ static int prepare_cb(struct lll_prepare_param *p)
158158
((uint32_t)lll->crc_init[0])));
159159
lll_chan_set(data_chan_use);
160160

161+
upd = 0U;
161162
pdu = lll_adv_sync_data_latest_get(lll, NULL, &upd);
162163
LL_ASSERT(pdu);
163164

0 commit comments

Comments
 (0)