From e8e7ccb4483c5fc966dedfe6a610fe490b508c58 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Fri, 31 Jul 2020 15:31:16 +0530 Subject: [PATCH] Bluetooth: controller: Fix Adv Set Terminated event cond. compile Fix the conditional compilation of Advertising Set Terminated event implementation. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/hci/hci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/hci/hci.c b/subsys/bluetooth/controller/hci/hci.c index 2283263bcd7..902ee9f600a 100644 --- a/subsys/bluetooth/controller/hci/hci.c +++ b/subsys/bluetooth/controller/hci/hci.c @@ -4066,12 +4066,16 @@ static void encode_control(struct node_rx_pdu *node_rx, case NODE_RX_TYPE_EXT_CODED_REPORT: le_adv_ext_coded_report(pdu_data, node_rx, buf); break; +#endif /* CONFIG_BT_CTLR_ADV_EXT */ +#endif /* CONFIG_BT_OBSERVER */ +#if defined(CONFIG_BT_BROADCASTER) +#if defined(CONFIG_BT_CTLR_ADV_EXT) case NODE_RX_TYPE_EXT_ADV_TERMINATE: le_adv_ext_terminate(pdu_data, node_rx, buf); break; #endif /* CONFIG_BT_CTLR_ADV_EXT */ -#endif /* CONFIG_BT_OBSERVER */ +#endif /* CONFIG_BT_BROADCASTER */ #if defined(CONFIG_BT_CTLR_SCAN_REQ_NOTIFY) case NODE_RX_TYPE_SCAN_REQ: