From 0051c0ee74bed47f0fd21475da14631bda5d665b Mon Sep 17 00:00:00 2001 From: Arto Kinnunen Date: Wed, 18 Mar 2020 18:07:43 +0200 Subject: [PATCH] Nanostack: Add config for Wi-SUN device type Add configuration option for Wi-SUN device types. --- .../mbed-mesh-api/mbed-mesh-api/mesh_interface_types.h | 4 +++- features/nanostack/mbed-mesh-api/mbed_lib.json | 4 ++++ features/nanostack/mbed-mesh-api/source/wisun_tasklet.c | 7 ++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/features/nanostack/mbed-mesh-api/mbed-mesh-api/mesh_interface_types.h b/features/nanostack/mbed-mesh-api/mbed-mesh-api/mesh_interface_types.h index 7a6846955d5..e6a5a7334a6 100644 --- a/features/nanostack/mbed-mesh-api/mbed-mesh-api/mesh_interface_types.h +++ b/features/nanostack/mbed-mesh-api/mbed-mesh-api/mesh_interface_types.h @@ -59,7 +59,9 @@ typedef enum { typedef enum { MESH_DEVICE_TYPE_THREAD_ROUTER = 0, /*operating_mode = NET_6LOWPAN_ROUTER; + if (MBED_CONF_MBED_MESH_API_WISUN_DEVICE_TYPE == MESH_DEVICE_TYPE_WISUN_BORDER_ROUTER) { + wisun_tasklet_data_ptr->operating_mode = NET_6LOWPAN_BORDER_ROUTER; + } else { + wisun_tasklet_data_ptr->operating_mode = NET_6LOWPAN_ROUTER; + } + wisun_tasklet_data_ptr->operating_mode_extension = NET_6LOWPAN_WS; arm_nwk_interface_configure_6lowpan_bootstrap_set(