summaryrefslogtreecommitdiff
path: root/mesh/mesh-defs.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2019-12-06 12:57:49 -0800
committerBrian Gix <brian.gix@intel.com>2019-12-10 09:57:11 -0800
commitce2f88bd2cf813321a46f3190c37658dde98ff05 (patch)
tree91f9148eca743e42bc9ba9d97f2ad69e016a32a4 /mesh/mesh-defs.h
parente289b30b58e0366beb33bd9a2972fa7a28318634 (diff)
downloadbluez-ce2f88bd2cf813321a46f3190c37658dde98ff05.tar.gz
mesh: Initialize net modes based on node configuration
This correctly initializes net settings related to node features based on node configuration: either defaults in the case of a newly node created/provisioned/imported node or the configured values read from stored existing node.
Diffstat (limited to 'mesh/mesh-defs.h')
-rw-r--r--mesh/mesh-defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesh/mesh-defs.h b/mesh/mesh-defs.h
index 8f28fc89b..9353d7351 100644
--- a/mesh/mesh-defs.h
+++ b/mesh/mesh-defs.h
@@ -109,6 +109,8 @@
#define APP_IDX_DEV_REMOTE 0x6fff
#define APP_IDX_DEV_LOCAL 0x7fff
+#define DEFAULT_SEQUENCE_NUMBER 0x000000
+
#define IS_UNASSIGNED(x) ((x) == UNASSIGNED_ADDRESS)
#define IS_UNICAST(x) (((x) > UNASSIGNED_ADDRESS) && \
((x) < VIRTUAL_ADDRESS_LOW))