diff --git a/subsys/bluetooth/host/mesh/access.c b/subsys/bluetooth/host/mesh/access.c index 082db51dc8a..1c13b8320eb 100644 --- a/subsys/bluetooth/host/mesh/access.c +++ b/subsys/bluetooth/host/mesh/access.c @@ -454,6 +454,11 @@ static int model_send(struct bt_mesh_model *model, ctx->app_idx, ctx->addr); BT_DBG("len %u: %s", msg->len, bt_hex(msg->data, msg->len)); + if (!bt_mesh_is_provisioned()) { + BT_ERR("Local node is not yet provisioned"); + return -EAGAIN; + } + if (net_buf_simple_tailroom(msg) < 4) { BT_ERR("Not enough tailroom for TransMIC"); return -EINVAL;