diff --git a/subsys/bluetooth/mesh/main.c b/subsys/bluetooth/mesh/main.c index 1b80233cec17..77ca15b2d614 100644 --- a/subsys/bluetooth/mesh/main.c +++ b/subsys/bluetooth/mesh/main.c @@ -401,6 +401,10 @@ void bt_mesh_reset(void) bt_mesh_comp_unprovision(); + if (IS_ENABLED(CONFIG_BT_MESH_PROXY_SOLICITATION)) { + bt_mesh_sol_reset(); + } + if (IS_ENABLED(CONFIG_BT_SETTINGS)) { bt_mesh_settings_store_pending(); } @@ -408,10 +412,6 @@ void bt_mesh_reset(void) if (IS_ENABLED(CONFIG_BT_MESH_PROV)) { bt_mesh_prov_reset(); } - - if (IS_ENABLED(CONFIG_BT_MESH_PROXY_SOLICITATION)) { - bt_mesh_sol_reset(); - } } bool bt_mesh_is_provisioned(void)