diff options
author | Inga Stotland <inga.stotland@intel.com> | 2019-06-29 23:43:54 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-07-01 09:17:43 -0700 |
commit | bb5d00cdc7bd8a272c8889793d21ce6c37e39714 (patch) | |
tree | 4f3a50a0e214b6bea7b8fcff04dfe9e394e12b27 /mesh/model.h | |
parent | 3ce332e40567952e5810c459bb6f6c9442a8ab08 (diff) | |
download | bluez-bb5d00cdc7bd8a272c8889793d21ce6c37e39714.tar.gz |
mesh: Fix virtual address processing
This tightens up the accounting for locally stored virtual addresses.
Alos, use meaningful variable names to identify components of a
mesh virtual address.
Diffstat (limited to 'mesh/model.h')
-rw-r--r-- | mesh/model.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mesh/model.h b/mesh/model.h index 6094eaf59..f0f97ee0b 100644 --- a/mesh/model.h +++ b/mesh/model.h @@ -24,7 +24,7 @@ struct mesh_model; #define MAX_BINDINGS 10 #define MAX_GRP_PER_MOD 10 -#define VIRTUAL_BASE 0x10000 +#define VIRTUAL_BASE 0x10000 #define MESH_MAX_ACCESS_PAYLOAD 380 @@ -124,14 +124,10 @@ bool mesh_model_rx(struct mesh_node *node, bool szmict, uint32_t seq0, uint32_t seq, uint32_t iv_index, uint8_t ttl, uint16_t src, uint16_t dst, uint8_t key_id, const uint8_t *data, uint16_t size); - void mesh_model_app_key_generate_new(struct mesh_node *node, uint16_t net_idx); void mesh_model_app_key_delete(struct mesh_node *node, struct l_queue *models, uint16_t idx); struct l_queue *mesh_model_get_appkeys(struct mesh_node *node); -void mesh_model_add_virtual(struct mesh_node *node, const uint8_t *v); -void mesh_model_del_virtual(struct mesh_node *node, uint32_t va24); -void mesh_model_list_virtual(struct mesh_node *node); uint16_t mesh_model_opcode_set(uint32_t opcode, uint8_t *buf); bool mesh_model_opcode_get(const uint8_t *buf, uint16_t size, uint32_t *opcode, uint16_t *n); |