Bluetooth: Mesh: split gatt client and solicitation pdu sending
The ability to send the solicitation PDU doesn't depend on GATT Client role. Commit makes independent one functionality from another. Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
This commit is contained in:
parent
f1dc11174c
commit
50d17a0d52
4 changed files with 7 additions and 8 deletions
|
@ -1439,11 +1439,10 @@ config BT_MESH_SOLICITATION
|
|||
bool
|
||||
|
||||
config BT_MESH_PROXY_SOLICITATION
|
||||
bool "Proxy solicitation feature for Proxy Client support"
|
||||
depends on BT_MESH_PROXY_CLIENT
|
||||
bool "Proxy solicitation feature"
|
||||
select BT_MESH_SOLICITATION
|
||||
help
|
||||
This option enables support for sending Solicitation PDUs for Proxy Client.
|
||||
This option enables support for sending Solicitation PDUs.
|
||||
|
||||
config BT_MESH_SOL_ADV_XMIT
|
||||
int "Solicitation PDU retransmission count"
|
||||
|
|
|
@ -387,6 +387,7 @@ static int cmd_proxy_disconnect(const struct shell *sh, size_t argc,
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_BT_MESH_PROXY_CLIENT */
|
||||
|
||||
#if defined(CONFIG_BT_MESH_PROXY_SOLICITATION)
|
||||
static int cmd_proxy_solicit(const struct shell *sh, size_t argc,
|
||||
|
@ -410,7 +411,6 @@ static int cmd_proxy_solicit(const struct shell *sh, size_t argc,
|
|||
return err;
|
||||
}
|
||||
#endif /* CONFIG_BT_MESH_PROXY_SOLICITATION */
|
||||
#endif /* CONFIG_BT_MESH_PROXY_CLIENT */
|
||||
#endif /* CONFIG_BT_MESH_SHELL_GATT_PROXY */
|
||||
|
||||
#if defined(CONFIG_BT_MESH_SHELL_PROV)
|
||||
|
@ -1739,11 +1739,11 @@ SHELL_STATIC_SUBCMD_SET_CREATE(proxy_cmds,
|
|||
#if defined(CONFIG_BT_MESH_PROXY_CLIENT)
|
||||
SHELL_CMD_ARG(connect, NULL, "<NetKeyIdx>", cmd_proxy_connect, 2, 0),
|
||||
SHELL_CMD_ARG(disconnect, NULL, "<NetKeyIdx>", cmd_proxy_disconnect, 2, 0),
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BT_MESH_PROXY_SOLICITATION)
|
||||
SHELL_CMD_ARG(solicit, NULL, "<NetKeyIdx>",
|
||||
cmd_proxy_solicit, 2, 0),
|
||||
#endif
|
||||
#endif
|
||||
SHELL_SUBCMD_SET_END);
|
||||
#endif /* CONFIG_BT_MESH_SHELL_GATT_PROXY */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue