Where is the bear handler started?

Hi support team,

Now i am trying to understand the LPN machenism based on the LPN example.  I cannot make sure where the bear handler is started. 

There is a function bearer_handler_start() which is called in nrf_mesh_enable(), but it can be called only m_mesh_state is MESH_STATE_DISABLED or MESH_STATE_DISABLING. I cannot find the clue where m_mesh_state is set to one of the two macroes before the function nrf_mesh_enable() is called after the device reset. Could you give some tips for this? 

Thanks in advance!

Related