File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
features/nanostack/mbed-mesh-api Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 6
6
"help" : " Nanostack's heap size [bytes: 0-4294967295]" ,
7
7
"value" : 32500
8
8
},
9
+ "mac-neigh-table-size" : {
10
+ "help" : " Number of devices stored to the SW MAC neighbour table" ,
11
+ "value_min" : 5 ,
12
+ "value_max" : 255 ,
13
+ "value" : 32
14
+ },
9
15
"use-malloc-for-heap" : {
10
16
"help" : " Use `malloc()` for reserving the Nanostack's internal heap." ,
11
17
"value" : false
Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ int8_t nd_tasklet_network_init(int8_t device_id)
425
425
{
426
426
// TODO, read interface name from configuration
427
427
mac_description_storage_size_t storage_sizes ;
428
- storage_sizes .device_decription_table_size = 32 ;
428
+ storage_sizes .device_decription_table_size = MBED_CONF_MBED_MESH_API_MAC_NEIGH_TABLE_SIZE ;
429
429
storage_sizes .key_description_table_size = 3 ;
430
430
storage_sizes .key_lookup_size = 1 ;
431
431
storage_sizes .key_usage_size = 3 ;
Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ int8_t thread_tasklet_network_init(int8_t device_id)
461
461
{
462
462
// TODO, read interface name from configuration
463
463
mac_description_storage_size_t storage_sizes ;
464
- storage_sizes .device_decription_table_size = 32 ;
464
+ storage_sizes .device_decription_table_size = MBED_CONF_MBED_MESH_API_MAC_NEIGH_TABLE_SIZE ;
465
465
storage_sizes .key_description_table_size = 6 ;
466
466
storage_sizes .key_lookup_size = 1 ;
467
467
storage_sizes .key_usage_size = 3 ;
Original file line number Diff line number Diff line change 38
38
#include MBED_CONF_MBED_MESH_API_CERTIFICATE_HEADER
39
39
#endif
40
40
41
+
41
42
// For tracing we need to define flag, have include and define group
42
43
//#define HAVE_DEBUG
43
44
#define TRACE_GROUP "WSND"
@@ -575,7 +576,7 @@ int8_t wisun_tasklet_network_init(int8_t device_id)
575
576
{
576
577
// TODO, read interface name from configuration
577
578
mac_description_storage_size_t storage_sizes ;
578
- storage_sizes .device_decription_table_size = 32 ;
579
+ storage_sizes .device_decription_table_size = MBED_CONF_MBED_MESH_API_MAC_NEIGH_TABLE_SIZE ;
579
580
storage_sizes .key_description_table_size = 4 ;
580
581
storage_sizes .key_lookup_size = 1 ;
581
582
storage_sizes .key_usage_size = 3 ;
You can’t perform that action at this time.
0 commit comments