diff --git a/subsys/bluetooth/host/mesh/cfg_srv.c b/subsys/bluetooth/host/mesh/cfg_srv.c index 8bb33a67733..0512a48844a 100644 --- a/subsys/bluetooth/host/mesh/cfg_srv.c +++ b/subsys/bluetooth/host/mesh/cfg_srv.c @@ -1936,6 +1936,9 @@ static void net_key_add(struct bt_mesh_model *model, sub->net_idx = idx; + /* Make sure we have valid beacon data to be sent */ + bt_mesh_net_beacon_update(sub); + if (IS_ENABLED(CONFIG_BT_MESH_GATT_PROXY)) { sub->node_id = BT_MESH_NODE_IDENTITY_STOPPED; bt_mesh_proxy_beacon_send(sub); diff --git a/subsys/bluetooth/host/mesh/net.c b/subsys/bluetooth/host/mesh/net.c index 46aa6823d3d..e5c03a40427 100644 --- a/subsys/bluetooth/host/mesh/net.c +++ b/subsys/bluetooth/host/mesh/net.c @@ -477,6 +477,9 @@ int bt_mesh_net_create(u16_t idx, u8_t flags, const u8_t key[16], /* Set initial IV Update procedure state time-stamp */ bt_mesh.last_update = k_uptime_get(); + /* Make sure we have valid beacon data to be sent */ + bt_mesh_net_beacon_update(sub); + return 0; }