From 985c4cd5dedc21dd588bbd3e2b7a38ad50887514 Mon Sep 17 00:00:00 2001 From: Adam Cavender Date: Mon, 27 Nov 2023 12:39:15 +0000 Subject: [PATCH] [nrf fromtree] Bluetooth: Shell: Fix cmd_chan_map Allow the channel map to be set when periodic advertising or acting as an ISO source. Signed-off-by: Adam Cavender (cherry picked from commit ac4f9a6962e17cf1e34b7238aec44b6f7b0f1417) --- subsys/bluetooth/shell/bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/shell/bt.c b/subsys/bluetooth/shell/bt.c index 4e0111fa757..ac1d78c44df 100644 --- a/subsys/bluetooth/shell/bt.c +++ b/subsys/bluetooth/shell/bt.c @@ -4286,7 +4286,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(bt_cmds, SHELL_CMD_ARG(phy-update, NULL, " [rx_phy] [s2] [s8]", cmd_conn_phy_update, 2, 3), #endif -#if defined(CONFIG_BT_CENTRAL) +#if defined(CONFIG_BT_CENTRAL) || defined(CONFIG_BT_BROADCASTER) SHELL_CMD_ARG(channel-map, NULL, " (36-0)", cmd_chan_map, 2, 1), #endif /* CONFIG_BT_CENTRAL */