Skip to contentSkip to conversation

tools/mesh-cfgclient: Increase app's CRPL size

PATCH Applied Inga Stotland 2 participants 2 messages Mar 18, 2020 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/mesh-cfgclient: Increase app's CRPL size

This increases the value of the CRPL supplied by the applicaiton to 0x7fff: since the tool is intended to be a provisioner and config client, it may have to keep track of communications with a significant number of unique mesh nodes, each with its corresponding CRPL entry in config client node storage. Therefore, a large CRPL size is necessary.

---
 tools/mesh-cfgclient.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/mesh-cfgclient.c +2 -1
index e4523e5fc..ae13c4409 100644
@@ -57,6 +57,7 @@
 #define DEFAULT_START_ADDRESS	0x00aa
 #define DEFAULT_MAX_ADDRESS	(VIRTUAL_ADDRESS_LOW - 1)
 #define DEFAULT_NET_INDEX	0x0000
+#define MAX_CRPL_SIZE		0x7fff
 
 #define DEFAULT_CFG_FILE	"config_db.json"
 
@@ -122,7 +123,7 @@ static struct meshcfg_app app = {
 	.cid = 0x05f1,
 	.pid = 0x0002,
 	.vid = 0x0001,
-	.crpl = 10,
+	.crpl = MAX_CRPL_SIZE,
 	.ele = {
 		.path = "/mesh/cfgclient/ele0",
 		.index = 0,
Signature · 1 line
2.21.1
Applied
#1 lore raw

Applied

Quoted 30 lines · Inga Stotland

This increases the value of the CRPL supplied by the applicaiton to 0x7fff: since the tool is intended to be a provisioner and config client, it may have to keep track of communications with a significant number of unique mesh nodes, each with its corresponding CRPL entry in config client node storage. Therefore, a large CRPL size is necessary.

---
 tools/mesh-cfgclient.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/mesh-cfgclient.c +2 -1
index e4523e5fc..ae13c4409 100644
@@ -57,6 +57,7 @@
 #define DEFAULT_START_ADDRESS	0x00aa
 #define DEFAULT_MAX_ADDRESS	(VIRTUAL_ADDRESS_LOW - 1)
 #define DEFAULT_NET_INDEX	0x0000
+#define MAX_CRPL_SIZE		0x7fff
 
 #define DEFAULT_CFG_FILE	"config_db.json"
 
@@ -122,7 +123,7 @@ static struct meshcfg_app app = {
 	.cid = 0x05f1,
 	.pid = 0x0002,
 	.vid = 0x0001,
-	.crpl = 10,
+	.crpl = MAX_CRPL_SIZE,
 	.ele = {
 		.path = "/mesh/cfgclient/ele0",
 		.index = 0,