mesh: Add reset link functionality to provisioning bearers
Reset provisioning bearers when bt_mesh_reset() is called. Accept another provisioning attempt after link close. Signed-off-by: Michał Narajowski <michal.narajowski@codecoup.pl>
This commit is contained in:
parent
5e543a2366
commit
9a0602417a
4 changed files with 37 additions and 5 deletions
|
@ -1247,6 +1247,16 @@ void bt_mesh_prov_complete(uint16_t net_idx, uint16_t addr)
|
|||
|
||||
void bt_mesh_prov_reset(void)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_PB_ADV)) {
|
||||
pb_adv_reset();
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_PB_GATT)) {
|
||||
pb_gatt_reset();
|
||||
}
|
||||
|
||||
reset_state();
|
||||
|
||||
if (prov->reset) {
|
||||
prov->reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue