diff --git a/subsys/bluetooth/shell/bt.c b/subsys/bluetooth/shell/bt.c index 962bbff746b..cdb9519ff0a 100644 --- a/subsys/bluetooth/shell/bt.c +++ b/subsys/bluetooth/shell/bt.c @@ -1463,13 +1463,6 @@ static int cmd_adv_data(const struct shell *sh, size_t argc, char *argv[]) data[*data_len].data_len = sizeof(discov_data); data[*data_len].data = &discov_data; (*data_len)++; - } else if (!strcmp(arg, "name")) { - const char *name = bt_get_name(); - - data[*data_len].type = BT_DATA_NAME_COMPLETE; - data[*data_len].data_len = strlen(name); - data[*data_len].data = name; - (*data_len)++; } else if (!strcmp(arg, "scan-response")) { if (data == sd) { shell_print(sh, "Failed to set advertising data: " @@ -3366,7 +3359,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(bt_cmds, SHELL_CMD_ARG(adv-create, NULL, EXT_ADV_PARAM, cmd_adv_create, 2, 11), SHELL_CMD_ARG(adv-param, NULL, EXT_ADV_PARAM, cmd_adv_param, 2, 11), SHELL_CMD_ARG(adv-data, NULL, " [scan-response ] " - "", cmd_adv_data, + "", cmd_adv_data, 1, 16), SHELL_CMD_ARG(adv-start, NULL, "[timeout ] [num-events ]",