diff options
author | Inga Stotland <inga.stotland@intel.com> | 2020-01-09 17:41:44 -0800 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-01-14 06:32:23 -0800 |
commit | 6baade2306503ffcabb8388faa7b9ef5bd2250d3 (patch) | |
tree | f06c50f5618e51bb8396c576df1448971ccb485e /mesh/node.h | |
parent | 8ce47e71757fc90d13ff9e1e7b189ff751b3ac20 (diff) | |
download | bluez-6baade2306503ffcabb8388faa7b9ef5bd2250d3.tar.gz |
mesh: Fix logic in AppKey deletion
When deleting an AppKey from a node, call mesh_config_app_key_del()
only from appkey level (i.e., keep it contained in appkey.c and
remove the duplicate call in node.c)
Also, simplify the node_app_key_delete() argument list.
Diffstat (limited to 'mesh/node.h')
-rw-r--r-- | mesh/node.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh/node.h b/mesh/node.h index c718c038d..a6bc4a2a6 100644 --- a/mesh/node.h +++ b/mesh/node.h @@ -40,8 +40,8 @@ struct mesh_node *node_find_by_uuid(uint8_t uuid[16]); struct mesh_node *node_find_by_token(uint64_t token); bool node_is_provisioner(struct mesh_node *node); bool node_is_provisioned(struct mesh_node *node); -bool node_app_key_delete(struct mesh_net *net, uint16_t addr, - uint16_t net_idx, uint16_t idx); +void node_app_key_delete(struct mesh_node *node, uint16_t net_idx, + uint16_t app_idx); uint16_t node_get_primary(struct mesh_node *node); uint16_t node_get_primary_net_idx(struct mesh_node *node); void node_set_token(struct mesh_node *node, uint8_t token[8]); |