summaryrefslogtreecommitdiff
path: root/mesh/model.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2019-06-29 23:43:55 -0700
committerBrian Gix <brian.gix@intel.com>2019-07-01 09:17:43 -0700
commit5a37a85fbc4c2801811dd9c2760e38cb5a01d687 (patch)
treefc3666bde80505638c95f07e9c2919728d19e073 /mesh/model.h
parentbb5d00cdc7bd8a272c8889793d21ce6c37e39714 (diff)
downloadbluez-5a37a85fbc4c2801811dd9c2760e38cb5a01d687.tar.gz
mesh: Fix and clean up model publication code
This adds proper checks for model publication removal: the publication is not virtual and the publication address is set to zero, i.e., UNASSIGNED_ADDRESS. Also removes double memory allocation for model publication and miscellaneous redundancies.
Diffstat (limited to 'mesh/model.h')
-rw-r--r--mesh/model.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh/model.h b/mesh/model.h
index f0f97ee0b..a6951293f 100644
--- a/mesh/model.h
+++ b/mesh/model.h
@@ -95,7 +95,7 @@ struct mesh_model *mesh_model_setup(struct mesh_node *node, uint8_t ele_idx,
struct mesh_model_pub *mesh_model_pub_get(struct mesh_node *node,
uint16_t addr, uint32_t mod_id, int *status);
int mesh_model_pub_set(struct mesh_node *node, uint16_t addr, uint32_t id,
- const uint8_t *mod_addr, uint16_t idx, bool cred_flag,
+ const uint8_t *pub_addr, uint16_t idx, bool cred_flag,
uint8_t ttl, uint8_t period, uint8_t retransmit,
bool b_virt, uint16_t *dst);