diff options
author | Inga Stotland <inga.stotland@intel.com> | 2020-08-06 15:55:23 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-08-07 07:36:18 -0700 |
commit | ca5dfd4ea071c86ff291c688ec9ca3a9b02ae509 (patch) | |
tree | 543759150c82703d4f8f756e482e5bc49d4e5adb /mesh/model.c | |
parent | 347117afd8e0d467224395f1ab82c9d1879e69b7 (diff) | |
download | bluez-ca5dfd4ea071c86ff291c688ec9ca3a9b02ae509.tar.gz |
mesh: Use correct TTL value to send model publication
When sending model publishing data, use TTL value configured for
that publication instead of the default TTL value used for regular
messages.
Diffstat (limited to 'mesh/model.c')
-rw-r--r-- | mesh/model.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh/model.c b/mesh/model.c index ef7668147..043ad1d70 100644 --- a/mesh/model.c +++ b/mesh/model.c @@ -1022,7 +1022,7 @@ done: } int mesh_model_publish(struct mesh_node *node, uint32_t id, uint16_t src, - uint8_t ttl, const void *msg, uint16_t msg_len) + const void *msg, uint16_t msg_len) { struct mesh_net *net = node_get_net(node); struct mesh_model *mod; @@ -1063,7 +1063,7 @@ int mesh_model_publish(struct mesh_node *node, uint32_t id, uint16_t src, result = msg_send(node, mod->pub->credential != 0, src, mod->pub->addr, mod->pub->idx, net_idx, - label, ttl, false, msg, msg_len); + label, mod->pub->ttl, false, msg, msg_len); return result ? MESH_ERROR_NONE : MESH_ERROR_FAILED; } |