Skip to content

Commit

Permalink
Bluetooth: controller: legacy: Fix compiler warnings
Browse files Browse the repository at this point in the history
Fix compiler warnings when central only support is used.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
  • Loading branch information
cvinayak authored and carlescufi committed Dec 17, 2019
1 parent e23c7fb commit 9128200
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subsys/bluetooth/controller/ll_sw/ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ static inline u8_t phy_upd_ind_recv(struct radio_pdu_node_rx *node_rx,
#if defined(CONFIG_BT_CTLR_LE_ENC)
static void enc_req_reused_send(struct connection *conn,
struct radio_pdu_node_tx *node_tx);
#if defined(CONFIG_BT_PERIPHERAL)
static u8_t enc_rsp_send(struct connection *conn);
#endif /* CONFIG_BT_PERIPHERAL */
static u8_t start_enc_rsp_send(struct connection *conn,
struct pdu_data *pdu_ctrl_tx);
static u8_t pause_enc_rsp_send(struct connection *conn, u8_t req);
Expand Down Expand Up @@ -10671,6 +10673,7 @@ static void enc_req_reused_send(struct connection *conn,
sizeof(pdu_ctrl_tx->llctrl.enc_req.ivm), 0);
}

#if defined(CONFIG_BT_PERIPHERAL)
static u8_t enc_rsp_send(struct connection *conn)
{
struct radio_pdu_node_tx *node_tx;
Expand Down Expand Up @@ -10713,6 +10716,7 @@ static u8_t enc_rsp_send(struct connection *conn)

return 0;
}
#endif /* CONFIG_BT_PERIPHERAL */

static u8_t start_enc_rsp_send(struct connection *conn,
struct pdu_data *pdu_ctrl_tx)
Expand Down

0 comments on commit 9128200

Please sign in to comment.