Skip to content

Commit 140e8fa

Browse files
committed
Bluetooth: Controller: Minor rearrange rx packet set after radio config
Minor rearrange of rx packet set statements after radio configuration function calls. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 52b2d39 commit 140e8fa

File tree

1 file changed

+5
-6
lines changed
  • subsys/bluetooth/controller/ll_sw/nordic/lll

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,6 @@ static int prepare_cb(struct lll_prepare_param *p)
155155

156156
radio_phy_set(lll->phy, 1);
157157
radio_pkt_configure(8, PDU_AC_PAYLOAD_SIZE_MAX, (lll->phy << 1));
158-
159-
node_rx = ull_pdu_rx_alloc_peek(1);
160-
LL_ASSERT(node_rx);
161-
162-
radio_pkt_rx_set(node_rx->pdu);
163-
164158
radio_aa_set(lll->access_addr);
165159
radio_crc_configure(((0x5bUL) | ((0x06UL) << 8) | ((0x00UL) << 16)),
166160
(((uint32_t)lll->crc_init[2] << 16) |
@@ -169,6 +163,11 @@ static int prepare_cb(struct lll_prepare_param *p)
169163

170164
lll_chan_set(data_chan_use);
171165

166+
node_rx = ull_pdu_rx_alloc_peek(1);
167+
LL_ASSERT(node_rx);
168+
169+
radio_pkt_rx_set(node_rx->pdu);
170+
172171
#if defined(CONFIG_BT_CTLR_DF_SCAN_CTE_RX)
173172
struct lll_df_sync_cfg *cfg;
174173

0 commit comments

Comments
 (0)