Skip to content

[feature-wisun] Add possibility to configure Mesh MAC neighbourtable size. #12931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions features/nanostack/mbed-mesh-api/mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"help": "Nanostack's heap size [bytes: 0-‭4294967295‬]",
"value": 32500
},
"mac-neigh-table-size": {
"help": "Number of devices stored to the SW MAC neighbour table",
"value_min": 5,
"value_max": 255,
"value": 32
},
"use-malloc-for-heap": {
"help": "Use `malloc()` for reserving the Nanostack's internal heap.",
"value": false
Expand Down
2 changes: 1 addition & 1 deletion features/nanostack/mbed-mesh-api/source/nd_tasklet.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ int8_t nd_tasklet_network_init(int8_t device_id)
{
// TODO, read interface name from configuration
mac_description_storage_size_t storage_sizes;
storage_sizes.device_decription_table_size = 32;
storage_sizes.device_decription_table_size = MBED_CONF_MBED_MESH_API_MAC_NEIGH_TABLE_SIZE;
storage_sizes.key_description_table_size = 3;
storage_sizes.key_lookup_size = 1;
storage_sizes.key_usage_size = 3;
Expand Down
2 changes: 1 addition & 1 deletion features/nanostack/mbed-mesh-api/source/thread_tasklet.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ int8_t thread_tasklet_network_init(int8_t device_id)
{
// TODO, read interface name from configuration
mac_description_storage_size_t storage_sizes;
storage_sizes.device_decription_table_size = 32;
storage_sizes.device_decription_table_size = MBED_CONF_MBED_MESH_API_MAC_NEIGH_TABLE_SIZE;
storage_sizes.key_description_table_size = 6;
storage_sizes.key_lookup_size = 1;
storage_sizes.key_usage_size = 3;
Expand Down
3 changes: 2 additions & 1 deletion features/nanostack/mbed-mesh-api/source/wisun_tasklet.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include MBED_CONF_MBED_MESH_API_CERTIFICATE_HEADER
#endif


// For tracing we need to define flag, have include and define group
//#define HAVE_DEBUG
#define TRACE_GROUP "WSND"
Expand Down Expand Up @@ -526,7 +527,7 @@ int8_t wisun_tasklet_network_init(int8_t device_id)
{
// TODO, read interface name from configuration
mac_description_storage_size_t storage_sizes;
storage_sizes.device_decription_table_size = 32;
storage_sizes.device_decription_table_size = MBED_CONF_MBED_MESH_API_MAC_NEIGH_TABLE_SIZE;
storage_sizes.key_description_table_size = 4;
storage_sizes.key_lookup_size = 1;
storage_sizes.key_usage_size = 3;
Expand Down