From c7fa62d157e30f2e3a4c8bc7767fd87495a2e5de Mon Sep 17 00:00:00 2001 From: Reto Schneider Date: Sat, 19 Oct 2024 18:03:53 +0200 Subject: [PATCH 1/2] bluetooth: shell: Fix includes This allows to build the shell with BT_CTLR_DTM and/or BT_CTLR_ADV_EXT enabled. The issues has been introduced by commit bf897cf941a514e7ea7a5f837d2287e360281f24 (Bluetooth: Shell: Restructure shell files). Signed-off-by: Reto Schneider --- subsys/bluetooth/controller/ll_sw/shell/ll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ll_sw/shell/ll.c b/subsys/bluetooth/controller/ll_sw/shell/ll.c index 6af986effc210..40bed78f559e4 100644 --- a/subsys/bluetooth/controller/ll_sw/shell/ll.c +++ b/subsys/bluetooth/controller/ll_sw/shell/ll.c @@ -53,7 +53,7 @@ int cmd_ll_addr_read(const struct shell *sh, size_t argc, char *argv[]) } #if defined(CONFIG_BT_CTLR_DTM) -#include "../controller/ll_sw/ll_test.h" +#include "controller/ll_sw/ll_test.h" int cmd_test_tx(const struct shell *sh, size_t argc, char *argv[]) { From cf974e265a1e94c720c14586beed55f60a4a4e99 Mon Sep 17 00:00:00 2001 From: Reto Schneider Date: Fri, 25 Oct 2024 16:05:07 +0200 Subject: [PATCH 2/2] bluetooth: shell: Test BT_CTLR_DTM This ensures that enabling BT_CTLR_DTM does not break the compilation of the Bluetooth shell. Signed-off-by: Reto Schneider --- tests/bluetooth/shell/testcase.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/bluetooth/shell/testcase.yaml b/tests/bluetooth/shell/testcase.yaml index f8c3b7abb299d..6db24ccc0e51f 100644 --- a/tests/bluetooth/shell/testcase.yaml +++ b/tests/bluetooth/shell/testcase.yaml @@ -73,6 +73,13 @@ tests: build_only: true extra_args: CONF_FILE="log.conf" tags: bluetooth + bluetooth.shell.bt_ctrl_dtm: + build_only: true + extra_args: + - CONFIG_BT_CTLR_DTM_HCI=y + tags: bluetooth + platform_allow: + - nrf52840dk/nrf52840 # Bluetooth Audio Compile validation tests bluetooth.shell.audio: