From 2777d636d48fd175eaff12e54fc5e788d7ee9ee7 Mon Sep 17 00:00:00 2001 From: lly Date: Mon, 17 Aug 2020 15:45:39 +0800 Subject: [PATCH] ble_mesh: stack: Fix Provisioner failed to publish --- components/bt/esp_ble_mesh/mesh_core/access.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/bt/esp_ble_mesh/mesh_core/access.c b/components/bt/esp_ble_mesh/mesh_core/access.c index 1aa6a0cbd6..b1fc1d5372 100644 --- a/components/bt/esp_ble_mesh/mesh_core/access.c +++ b/components/bt/esp_ble_mesh/mesh_core/access.c @@ -1029,7 +1029,9 @@ int bt_mesh_model_publish(struct bt_mesh_model *model) struct bt_mesh_model_pub *pub = model->pub; struct bt_mesh_app_key *key = NULL; struct net_buf_simple *sdu = NULL; - struct bt_mesh_msg_ctx ctx = {0}; + struct bt_mesh_msg_ctx ctx = { + .model = model, + }; struct bt_mesh_net_tx tx = { .sub = NULL, .ctx = &ctx,