From deeecaaa8f021e3766fb5bb54c86101bf0419fdf Mon Sep 17 00:00:00 2001 From: Piotr Pryga Date: Fri, 19 Feb 2021 10:27:24 +0100 Subject: [PATCH] Bluetooth: host: direction: Remove compilation warning Remove compilation warning caused by currently not used hci_df_set_conn_cte_tx_param function. Code is sorrounded by #ifdef CONFIG_BT_CTLR_DF_CONN_CTE_RSP. The CONFIG_BT_CTLR_DF_CONN_CTE_RSP is changed to be disabled by default (until complete implementation of the feature is provided). Signed-off-by: Piotr Pryga --- subsys/bluetooth/controller/Kconfig.df | 1 - subsys/bluetooth/host/direction.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/Kconfig.df b/subsys/bluetooth/controller/Kconfig.df index fca0a1586fe..01cae803548 100644 --- a/subsys/bluetooth/controller/Kconfig.df +++ b/subsys/bluetooth/controller/Kconfig.df @@ -92,7 +92,6 @@ config BT_CTLR_DF_CTE_RX config BT_CTLR_DF_CONN_CTE_RSP bool "Enable Connection CTE Response feature" depends on BT_CTLR_DF_CTE_TX && BT_CONN - default y help Enable support for Bluetooth v5.1 Connection CTE Response feature in controller. diff --git a/subsys/bluetooth/host/direction.c b/subsys/bluetooth/host/direction.c index 418811661e4..db4ae1bfd84 100644 --- a/subsys/bluetooth/host/direction.c +++ b/subsys/bluetooth/host/direction.c @@ -190,6 +190,7 @@ static int hci_df_set_adv_cte_tx_enable(struct bt_le_ext_adv *adv, buf, NULL); } +#if defined(CONFIG_BT_CTLR_DF_CONN_CTE_RSP) /* @brief Function sets CTE parameters for connection object * * @param[in] cte_types Allowed response CTE types @@ -258,6 +259,7 @@ static int hci_df_set_conn_cte_tx_param(struct bt_conn *conn, uint8_t cte_types, return err; } +#endif /* CONFIG_BT_CTLR_DF_CONN_CTE_RSP */ /* @brief Function initializes Direction Finding in Host *