Skip to content

Commit 7712caa

Browse files
cvinayaknashif
authored andcommitted
Bluetooth: controller: Fix peripheral conditional compilation
Fix regression in peripheral only build conditional compilation introduced in commit 8a9bda307cc1 ("Bluetooth: controller: Fix CPR conditional compilation"). Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 7295204 commit 7712caa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

subsys/bluetooth/controller/ll_sw/ull_conn.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,7 +2510,10 @@ static inline int event_conn_upd_prep(struct ll_conn *conn, uint16_t lazy,
25102510
(conn_interval_us >> 1) - EVENT_IFS_US;
25112511
lll->slave.window_size_prepare_us =
25122512
conn->llcp_cu.win_size * CONN_INT_UNIT_US;
2513+
2514+
#if defined(CONFIG_BT_CTLR_CONN_PARAM_REQ)
25132515
conn->slave.ticks_to_offset = 0U;
2516+
#endif /* CONFIG_BT_CTLR_CONN_PARAM_REQ */
25142517

25152518
lll->slave.window_widening_prepare_us +=
25162519
lll->slave.window_widening_periodic_us *
@@ -4325,6 +4328,7 @@ static int feature_rsp_send(struct ll_conn *conn, struct node_rx_pdu *rx,
43254328
return 0;
43264329
}
43274330

4331+
#if defined(CONFIG_BT_CENTRAL) || defined(CONFIG_BT_CTLR_SLAVE_FEAT_REQ)
43284332
static void feature_rsp_recv(struct ll_conn *conn, struct pdu_data *pdu_rx)
43294333
{
43304334
struct pdu_data_llctrl_feature_rsp *rsp;
@@ -4348,6 +4352,7 @@ static void feature_rsp_recv(struct ll_conn *conn, struct pdu_data *pdu_rx)
43484352
conn->llcp_feature.ack = conn->llcp_feature.req;
43494353
conn->procedure_expire = 0U;
43504354
}
4355+
#endif /* CONFIG_BT_CENTRAL || CONFIG_BT_CTLR_SLAVE_FEAT_REQ */
43514356

43524357
#if defined(CONFIG_BT_CTLR_LE_ENC)
43534358
static int pause_enc_rsp_send(struct ll_conn *conn, struct node_rx_pdu *rx,

0 commit comments

Comments
 (0)