From 9128200e6cf35429f6ad50c6f10227a6c8cfc9c2 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Fri, 13 Dec 2019 17:14:59 +0530 Subject: [PATCH] Bluetooth: controller: legacy: Fix compiler warnings Fix compiler warnings when central only support is used. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/ll_sw/ctrl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subsys/bluetooth/controller/ll_sw/ctrl.c b/subsys/bluetooth/controller/ll_sw/ctrl.c index c75a6263ca..fac4087059 100644 --- a/subsys/bluetooth/controller/ll_sw/ctrl.c +++ b/subsys/bluetooth/controller/ll_sw/ctrl.c @@ -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); @@ -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; @@ -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)