Bluetooth: Mesh: Restore PRB state after reboot
Add missing code for restoring Private Beacon state after reboot. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
parent
95d6e66ec3
commit
8dd24bf9c3
1 changed files with 4 additions and 0 deletions
|
@ -439,6 +439,10 @@ static int cfg_set(const char *name, size_t len_rd,
|
||||||
bt_mesh_gatt_proxy_set(cfg.gatt_proxy);
|
bt_mesh_gatt_proxy_set(cfg.gatt_proxy);
|
||||||
bt_mesh_friend_set(cfg.frnd);
|
bt_mesh_friend_set(cfg.frnd);
|
||||||
bt_mesh_default_ttl_set(cfg.default_ttl);
|
bt_mesh_default_ttl_set(cfg.default_ttl);
|
||||||
|
#if defined(CONFIG_BT_MESH_PRIV_BEACONS)
|
||||||
|
bt_mesh_priv_beacon_set(cfg.priv_beacon);
|
||||||
|
bt_mesh_priv_beacon_update_interval_set(cfg.priv_beacon_int);
|
||||||
|
#endif
|
||||||
#if defined(CONFIG_BT_MESH_OD_PRIV_PROXY_SRV)
|
#if defined(CONFIG_BT_MESH_OD_PRIV_PROXY_SRV)
|
||||||
bt_mesh_od_priv_proxy_set(cfg.on_demand_state);
|
bt_mesh_od_priv_proxy_set(cfg.on_demand_state);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue