Bluetooth: controller: Add guards for feature_rsp_send

Add compilation guards for the feature_rsp_send function to avoid
compilation errors for some configurations.

Signed-off-by: Wolfgang Puffitsch <wopu@demant.com>
This commit is contained in:
Wolfgang Puffitsch 2021-02-16 14:46:07 +01:00 committed by Anas Nashif
commit 70f3e5a726

View file

@ -4277,6 +4277,8 @@ static inline uint64_t feat_land_octet0(uint64_t feat_to_keep, uint64_t feat_oct
return feat_result;
}
#if defined(CONFIG_BT_PERIPHERAL) || \
(defined(CONFIG_BT_CENTRAL) && defined(CONFIG_BT_CTLR_SLAVE_FEAT_REQ))
static int feature_rsp_send(struct ll_conn *conn, struct node_rx_pdu *rx,
struct pdu_data *pdu_rx)
{
@ -4327,6 +4329,7 @@ static int feature_rsp_send(struct ll_conn *conn, struct node_rx_pdu *rx,
return 0;
}
#endif /* PERIPHERAL || (CENTRAL && SLAVE_FEAT_REQ) */
#if defined(CONFIG_BT_CENTRAL) || defined(CONFIG_BT_CTLR_SLAVE_FEAT_REQ)
static void feature_rsp_recv(struct ll_conn *conn, struct pdu_data *pdu_rx)