ble_mesh: stack: Fix Provisioner failed to publish

This commit is contained in:
lly 2020-08-17 15:45:39 +08:00 committed by maojianxin
parent 1e90e1482d
commit 2777d636d4

View File

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