From 9f2d3644144761bbcfe410fe6f3ec98b985a4a11 Mon Sep 17 00:00:00 2001 From: Tobias Svehagen Date: Mon, 19 Aug 2019 16:03:31 +0200 Subject: [PATCH] Bluetooth: Mesh: Remove dependency on BT_MESH_IV_UPDATE_TEST in shell Only enable the IV update commands when CONFIG_BT_MESH_IV_UPDATE_TEST is defined. Signed-off-by: Tobias Svehagen --- subsys/bluetooth/mesh/shell.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subsys/bluetooth/mesh/shell.c b/subsys/bluetooth/mesh/shell.c index 4b84d9a98282..7fea6422e82d 100644 --- a/subsys/bluetooth/mesh/shell.c +++ b/subsys/bluetooth/mesh/shell.c @@ -710,6 +710,7 @@ static int cmd_net_send(const struct shell *shell, size_t argc, char *argv[]) return 0; } +#if defined(CONFIG_BT_MESH_IV_UPDATE_TEST) static int cmd_iv_update(const struct shell *shell, size_t argc, char *argv[]) { if (bt_mesh_iv_update()) { @@ -744,6 +745,7 @@ static int cmd_iv_update_test(const struct shell *shell, size_t argc, return 0; } +#endif /* CONFIG_BT_MESH_IV_UPDATE_TEST */ static int cmd_rpl_clear(const struct shell *shell, size_t argc, char *argv[]) { @@ -1936,9 +1938,11 @@ SHELL_STATIC_SUBCMD_SET_CREATE(mesh_cmds, /* Commands which access internal APIs, for testing only */ SHELL_CMD_ARG(net-send, NULL, "", cmd_net_send, 2, 0), +#if defined(CONFIG_BT_MESH_IV_UPDATE_TEST) SHELL_CMD_ARG(iv-update, NULL, NULL, cmd_iv_update, 1, 0), SHELL_CMD_ARG(iv-update-test, NULL, "", cmd_iv_update_test, 2, 0), +#endif SHELL_CMD_ARG(rpl-clear, NULL, NULL, cmd_rpl_clear, 1, 0), /* Configuration Client Model operations */