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:
Pavel Vasilyev 2023-03-30 17:01:36 +02:00 committed by Carles Cufí
commit 8dd24bf9c3

View file

@ -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