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 <adam.cavender@nordicsemi.no>
This commit is contained in:
Adam Cavender 2023-11-27 12:39:15 +00:00 committed by Carles Cufí
commit ac4f9a6962

View file

@ -4286,7 +4286,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(bt_cmds,
SHELL_CMD_ARG(phy-update, NULL, "<tx_phy> [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, "<channel-map: XXXXXXXXXX> (36-0)",
cmd_chan_map, 2, 1),
#endif /* CONFIG_BT_CENTRAL */