Skip to content

Commit

Permalink
Bluetooth: CSIP: Fix typo from cm_csip to cmd_csip
Browse files Browse the repository at this point in the history
The CSIP commands had a typo in the prefix of the shell
functions.

Signed-off-by: Emil Gydesen <[email protected]>
  • Loading branch information
Thalley committed Feb 5, 2024
1 parent 4586244 commit 6df4c94
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions subsys/bluetooth/audio/shell/csip_set_member.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static struct bt_csip_set_member_cb csip_set_member_cbs = {
.sirk_read_req = sirk_read_req_cb,
};

static int cm_csip_set_member_register(const struct shell *sh, size_t argc, char **argv)
static int cmd_csip_set_member_register(const struct shell *sh, size_t argc, char **argv)
{
int err;
struct bt_csip_set_member_register_param param = {
Expand Down Expand Up @@ -210,7 +210,7 @@ static int cmd_csip_set_member_get_sirk(const struct shell *sh, size_t argc, cha
return 0;
}

static int cm_csip_set_member_lock(const struct shell *sh, size_t argc, char *argv[])
static int cmd_csip_set_member_lock(const struct shell *sh, size_t argc, char *argv[])
{
int err;

Expand All @@ -225,7 +225,7 @@ static int cm_csip_set_member_lock(const struct shell *sh, size_t argc, char *ar
return 0;
}

static int cm_csip_set_member_release(const struct shell *sh, size_t argc,
static int cmd_csip_set_member_release(const struct shell *sh, size_t argc,
char *argv[])
{
bool force = false;
Expand All @@ -252,7 +252,7 @@ static int cm_csip_set_member_release(const struct shell *sh, size_t argc,
return 0;
}

static int cm_csip_set_member_set_sirk_rsp(const struct shell *sh, size_t argc,
static int cmd_csip_set_member_set_sirk_rsp(const struct shell *sh, size_t argc,
char *argv[])
{
if (strcmp(argv[1], "accept") == 0) {
Expand All @@ -271,7 +271,7 @@ static int cm_csip_set_member_set_sirk_rsp(const struct shell *sh, size_t argc,
return 0;
}

static int cm_csip_set_member(const struct shell *sh, size_t argc, char **argv)
static int cmd_csip_set_member(const struct shell *sh, size_t argc, char **argv)
{
shell_error(sh, "%s unknown parameter: %s", argv[0], argv[1]);

Expand All @@ -283,23 +283,23 @@ SHELL_STATIC_SUBCMD_SET_CREATE(
SHELL_CMD_ARG(register, NULL,
"Initialize the service and register callbacks "
"[size <int>] [rank <int>] [not-lockable] [sirk <data>]",
cm_csip_set_member_register, 1, 4),
SHELL_CMD_ARG(lock, NULL, "Lock the set", cm_csip_set_member_lock, 1, 0),
SHELL_CMD_ARG(release, NULL, "Release the set [force]", cm_csip_set_member_release, 1, 1),
cmd_csip_set_member_register, 1, 4),
SHELL_CMD_ARG(lock, NULL, "Lock the set", cmd_csip_set_member_lock, 1, 0),
SHELL_CMD_ARG(release, NULL, "Release the set [force]", cmd_csip_set_member_release, 1, 1),
SHELL_CMD_ARG(set_sirk, NULL, "Set the currently used SIRK <sirk>",
cmd_csip_set_member_set_sirk, 2, 0),
SHELL_CMD_ARG(get_sirk, NULL, "Get the currently used SIRK", cmd_csip_set_member_get_sirk,
1, 0),
SHELL_CMD_ARG(set_sirk_rsp, NULL,
"Set the response used in SIRK requests "
"<accept, accept_enc, reject, oob>",
cm_csip_set_member_set_sirk_rsp, 2, 0),
cmd_csip_set_member_set_sirk_rsp, 2, 0),
SHELL_SUBCMD_SET_END
);

SHELL_CMD_ARG_REGISTER(csip_set_member, &csip_set_member_cmds,
"Bluetooth CSIP set member shell commands",
cm_csip_set_member, 1, 1);
cmd_csip_set_member, 1, 1);

ssize_t csis_ad_data_add(struct bt_data *data_array, const size_t data_array_size,
const bool discoverable)
Expand Down

0 comments on commit 6df4c94

Please sign in to comment.