Bluetooth: CSIP: remove print_sirk
The print_sirk function that simply logs the SIRK has been removed, as the SIRK is now directly accessible to the application via the get_sirk function. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
41a589c5fa
commit
25416b86e9
6 changed files with 0 additions and 35 deletions
|
@ -27,7 +27,6 @@ register callbacks.
|
|||
[rank <int>] [not-lockable] [sirk <data>]
|
||||
lock :Lock the set
|
||||
release :Release the set [force]
|
||||
print_sirk :Print the currently used SIRK
|
||||
set_sirk :Set the currently used SIRK <sirk>
|
||||
get_sirk :Get the currently used SIRK
|
||||
set_sirk_rsp :Set the response used in SIRK requests <accept, accept_enc,
|
||||
|
|
|
@ -148,7 +148,6 @@ Using the Set Member
|
|||
[rank <int>] [not-lockable] [sirk <data>]
|
||||
lock :Lock the set
|
||||
release :Release the set [force]
|
||||
print_sirk :Print the currently used SIRK
|
||||
set_sirk :Set the currently used SIRK <sirk>
|
||||
get_sirk :Get the currently used SIRK
|
||||
set_sirk_rsp :Set the response used in SIRK requests <accept, accept_enc,
|
||||
|
|
|
@ -215,13 +215,6 @@ int bt_csip_set_member_set_sirk(struct bt_csip_set_member_svc_inst *svc_inst,
|
|||
int bt_csip_set_member_get_sirk(struct bt_csip_set_member_svc_inst *svc_inst,
|
||||
uint8_t sirk[BT_CSIP_SET_SIRK_SIZE]);
|
||||
|
||||
/**
|
||||
* @brief Print the SIRK to the debug output
|
||||
*
|
||||
* @param svc_inst Pointer to the Coordinated Set Identification Service.
|
||||
*/
|
||||
void bt_csip_set_member_print_sirk(const struct bt_csip_set_member_svc_inst *svc_inst);
|
||||
|
||||
/**
|
||||
* @brief Generate the Resolvable Set Identifier (RSI) value.
|
||||
*
|
||||
|
|
|
@ -978,9 +978,3 @@ int bt_csip_set_member_lock(struct bt_csip_set_member_svc_inst *svc_inst,
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
void bt_csip_set_member_print_sirk(const struct bt_csip_set_member_svc_inst *svc_inst)
|
||||
{
|
||||
LOG_HEXDUMP_DBG(&svc_inst->set_sirk, sizeof(svc_inst->set_sirk),
|
||||
"Set SIRK");
|
||||
}
|
||||
|
|
|
@ -174,14 +174,6 @@ static int cmd_cap_acceptor_init(const struct shell *sh, size_t argc,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int cmd_cap_acceptor_print_sirk(const struct shell *sh, size_t argc,
|
||||
char *argv[])
|
||||
{
|
||||
bt_csip_set_member_print_sirk(cap_csip_svc_inst);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cmd_cap_acceptor_lock(const struct shell *sh, size_t argc,
|
||||
char *argv[])
|
||||
{
|
||||
|
@ -318,9 +310,6 @@ SHELL_STATIC_SUBCMD_SET_CREATE(cap_acceptor_cmds,
|
|||
SHELL_CMD_ARG(release, NULL,
|
||||
"Release the set [force]",
|
||||
cmd_cap_acceptor_release, 1, 1),
|
||||
SHELL_CMD_ARG(print_sirk, NULL,
|
||||
"Print the currently used SIRK",
|
||||
cmd_cap_acceptor_print_sirk, 1, 0),
|
||||
SHELL_CMD_ARG(set_sirk, NULL, "Set the currently used SIRK <sirk>",
|
||||
cmd_cap_acceptor_set_sirk, 2, 0),
|
||||
SHELL_CMD_ARG(get_sirk, NULL, "Get the currently used SIRK", cmd_cap_acceptor_get_sirk,
|
||||
|
|
|
@ -157,13 +157,6 @@ static int cm_csip_set_member_register(const struct shell *sh, size_t argc, char
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int cm_csip_set_member_print_sirk(const struct shell *sh, size_t argc,
|
||||
char *argv[])
|
||||
{
|
||||
bt_csip_set_member_print_sirk(svc_inst);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cmd_csip_set_member_set_sirk(const struct shell *sh, size_t argc, char *argv[])
|
||||
{
|
||||
uint8_t sirk[BT_CSIP_SET_SIRK_SIZE];
|
||||
|
@ -293,8 +286,6 @@ SHELL_STATIC_SUBCMD_SET_CREATE(
|
|||
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),
|
||||
SHELL_CMD_ARG(print_sirk, NULL, "Print the currently used SIRK",
|
||||
cm_csip_set_member_print_sirk, 1, 0),
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue