From 6df4c948f1d3fc4d1f1cc0e271f9e24501092bc9 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Fri, 12 Jan 2024 14:16:29 +0100 Subject: [PATCH] Bluetooth: CSIP: Fix typo from cm_csip to cmd_csip The CSIP commands had a typo in the prefix of the shell functions. Signed-off-by: Emil Gydesen --- .../bluetooth/audio/shell/csip_set_member.c | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/subsys/bluetooth/audio/shell/csip_set_member.c b/subsys/bluetooth/audio/shell/csip_set_member.c index 3e1c10fecf6a..ed7364ffb241 100644 --- a/subsys/bluetooth/audio/shell/csip_set_member.c +++ b/subsys/bluetooth/audio/shell/csip_set_member.c @@ -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 = { @@ -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; @@ -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; @@ -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) { @@ -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]); @@ -283,9 +283,9 @@ SHELL_STATIC_SUBCMD_SET_CREATE( SHELL_CMD_ARG(register, NULL, "Initialize the service and register callbacks " "[size ] [rank ] [not-lockable] [sirk ]", - 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 ", 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, @@ -293,13 +293,13 @@ SHELL_STATIC_SUBCMD_SET_CREATE( SHELL_CMD_ARG(set_sirk_rsp, NULL, "Set the response used in SIRK requests " "", - 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)