Commit Graph

261 Commits (417051244d5705821b91401c5bf2a101fcafec2a)

Author SHA1 Message Date
Kevin Bracey 69c6cc341b Networking: Fix some ARMC6 warnings
Some int-versus-long and signed-versus-unsigned format string
mismatches, and missing `class` keyword.
2019-04-17 16:03:44 +03:00
Martin Kojtal 801e555121
Merge pull request #9981 from janjongboom/patch-8
test_soap_connection_handler leaks memory when open_connection fails
2019-04-08 10:39:56 +02:00
Cruz Monrreal 9c381f27ec
Merge pull request #10243 from michalpasztamobica/nanostack_bringdown_blocking
Nanostack::EthernetInterface::bringdown() can handle blocking mode
2019-03-29 10:20:47 -05:00
Cruz Monrreal cd8d362899
Merge pull request #10231 from artokin/nanostack_armc6_update
Nanostack ARMC6 update
2019-03-28 17:07:32 -05:00
Cruz Monrreal 48c78ae79a
Merge pull request #9971 from KariHaapalehto/status_callback
Correct thread status callback functionality
2019-03-28 17:05:34 -05:00
Michal Paszta ccc83f7e3b Nanostack::EthernetInterface::bringdown() can handle blocking mode
This let the tests-network-interface test pass for nanostack.
2019-03-27 16:34:46 +02:00
Arto Kinnunen adedd05139 Fix compiler warnings in Nanostack HAL
Fix compiler warnings:
 -"warning: 'size' argument to memset is '0'"
 -"warning: implicit declaration of function"
2019-03-26 13:19:33 +02:00
Arto Kinnunen f348325dbd Squashed 'features/nanostack/coap-service/' changes from 227cc3d..086e7ba
086e7ba Adjust variable scope (#121)

git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 086e7ba8a1afdcfe3df16ae92ef28cae1af5a4a6
2019-03-26 13:19:18 +02:00
Cruz Monrreal b433b16a11
Merge pull request #10014 from artokin/nanostack_interface_error_mapping
Update nanostack-interface error mapping
2019-03-16 22:58:24 -05:00
Cruz Monrreal dbb33ef423
Merge pull request #9801 from vmedcy/fix-eventqueue-h
Correctly include EventQueue.h
2019-03-16 22:52:40 -05:00
Martin Kojtal 4cf7864bb5 Merge branch 'wisun_network_default_name' of https://github.com/artokin/mbed-os into rollup 2019-03-15 08:45:57 +00:00
Kari Haapalehto d9448364da Correct thread status callback functionality.
At the start-up, there was 2 NSAPI_STATUS_CONNECTING callbacks,
so extra one removed from ThreadInterface.cpp.
At the network lost case, there was NSAPI_STATUS_DISCONNECTED and
NSAPI_STATUS_LOCAL_UP callbacks. NSAPI_STATUS_DISCONNECTED has been removed,
since the NSAPI_STATUS_LOCAL_UP is enought.
2019-03-12 13:13:55 +02:00
Arto Kinnunen f0d7e205ff Update nanostack-interface error mapping
Use status NSAPI_ERROR_PARAMETER instead of NSAPI_ERROR_UNSUPPORTED
when error is caused by parameter.
2019-03-08 16:28:20 +02:00
Jan Jongboom 3e4010748c
test_soap_connection_handler leaks memory when open_connection fails
sckt_data is not free'd when `coap_connection_handler_open_connection` fails.
2019-03-07 16:27:59 +01:00
Arto Kinnunen e92e7b9a88 Merge commit 'fbef0d8e70234611e131a94c4f4e97bd99634548'
* commit 'fbef0d8e70234611e131a94c4f4e97bd99634548':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 76da6a5..84a07ce
2019-03-07 17:26:32 +02:00
Arto Kinnunen 7ec9be6a6d Update Wi-SUN network default name 2019-03-04 10:07:31 +02:00
Arto Kinnunen 5486a38527 Merge commit 'b182455f1947ff8fa48f37ad5fde17d89d67efa5'
* commit 'b182455f1947ff8fa48f37ad5fde17d89d67efa5':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 2cd155b..76da6a5
2019-02-27 11:02:44 +02:00
Arto Kinnunen 650f9d9887 Merge commit '514ed9930160b041a598b922a3b69789e2fb6fcf'
* commit '514ed9930160b041a598b922a3b69789e2fb6fcf':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from c5ee9e4..2cd155b
2019-02-26 11:04:54 +02:00
Arto Kinnunen 9784e93ae0 Merge commit '7a7888227901179597fffc163a23dd15c8d055a9'
* commit '7a7888227901179597fffc163a23dd15c8d055a9':
  Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from b8b664b..7745556
2019-02-25 15:53:04 +02:00
Arto Kinnunen b68e5edbc7 Merge commit '780e9afb8f3b8f09e66573e7d4ba096dd9a87dd7'
Nanostack v10.1.0 for Mbed OS 5.12

* commit '780e9afb8f3b8f09e66573e7d4ba096dd9a87dd7':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 513a38e..c5ee9e4
2019-02-25 14:24:47 +02:00
Arto Kinnunen 433ab3e843 Merge commit 'e046a96f8bd369720d4bf65dd4441ad19ebe22e7'
* commit 'e046a96f8bd369720d4bf65dd4441ad19ebe22e7':
  Squashed 'features/nanostack/coap-service/' changes from c45afcd..227cc3d
2019-02-25 13:40:37 +02:00
Arto Kinnunen 220470c577 Merge commit '99c2f61463ded19baa49346f6210f9eb3e62161f'
* commit '99c2f61463ded19baa49346f6210f9eb3e62161f':
  Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from 778c4db..b8b664b
2019-02-25 12:56:24 +02:00
Volodymyr Medvid b0a33273ff Correctly include EventQueue.h
There are two EventQueue.h in mbed-os codebase:
events/EventQueue.h
features/FEATURE_BLE/ble/pal/EventQueue.h

By accident, `mbed compile` generates includes.txt with the correct
order of include search paths. This is not the case for the CMake
exporter: targets with FEATURE_BLE enables fail to compile with errors:

mbed-os/features/cellular/framework/AT/ATHandler.h:99:60: error:
'events' has not been declared

Update all places to always include either "events/EventQueue.h"
or "ble/pal/EventQueue.h": to always find the correct header.
2019-02-21 17:59:05 +02:00
Cruz Monrreal feae56eea1
Merge pull request #9493 from RonEld/add_platform_initialization_in_trng_test
Initialize platform in trng test
2019-02-19 15:27:40 -06:00
Arto Kinnunen 932b3a2938 Update Nanostack_HAL licenses and copyright year
-Add Apache License to files that were missing a licence
-Update copyright year
2019-02-19 12:53:38 +02:00
Ron Eldor c94b5861e4 Add mbedtls platform setup and teardown to modules
Add calls to `mbedtls_platform_setup()`
and `mbedtls_platform_teardown()` to all modules and tests using Mbed TLS.
2019-02-18 11:43:32 +02:00
Cruz Monrreal 39441655bf
Merge pull request #9684 from KariHaapalehto/ethernet_tasklet_correction
enet_tasklet_disconnect() should generate event to tasklet.
2019-02-14 09:13:15 -06:00
Cruz Monrreal b66678d6d7
Merge pull request #9696 from naveenkaje/thread_extn_warning_fix
features: nanostack: fix warning in thread_extension.h
2019-02-13 18:29:53 -06:00
Cruz Monrreal 9be82d96d8
Merge pull request #9694 from naveenkaje/fix_icmpv6_warning
nanostack: icmpv6: fix build warning
2019-02-13 18:29:33 -06:00
Cruz Monrreal b820ec8922
Merge pull request #9561 from theotherjimmy/test-resources
Tools changes for bare metal
2019-02-13 12:31:54 -06:00
Naveen Kaje 1f015aa0b7 features: nanostack: fix warning in thread_extension.h
Fix the following build warning seen with GCC

Compile [ 51.2%]: thread_bootstrap.c
[Warning] thread_extension.h@88,44: statement with no effect [-Wunused-value]
2019-02-13 10:48:33 -06:00
Naveen Kaje 8d0c94e8dc nanostack: icmpv6: fix build warning
Fix the following build warning seen when building with GCC

Compile [ 54.2%]: icmpv6.c
[Warning] icmpv6.c@1091,16: this statement may fall through [-Wimplicit-fallthrough=]
2019-02-13 10:34:51 -06:00
Kari Haapalehto 31c40130d6 enet_tasklet_disconnect() should generate event to tasklet.
enet_tasklet_disconnect() is now generating event to ethernet_tasklet,
which will then handle it.
2019-02-13 13:57:03 +02:00
Jimmy Brisson 724487d545 Require dependencies from nanostack mbed_lib.json 2019-02-07 09:39:10 -06:00
Oren Cohen 32463d64dc Add missing mbed_lib.json for frameworks and nanostack
* mbed-client-randlib
* nanostack-libservice
* coap-service
* nanostack-interface
2019-02-07 09:25:14 -06:00
Oren Cohen 94c17549dc Fix nanostack libs 2019-02-07 09:23:52 -06:00
Jarkko Paso 17e4e287de FHSS timer: Use singleton pointer with timer objects
This is to save statically allocated memory. Without SingletonPtr the timer objects would always be included in build.
2019-02-04 12:13:29 +02:00
Martin Kojtal 272bc14cde
Merge pull request #9546 from jarlamsa/mesh_api_fixes
Mesh api fixes
2019-01-31 11:19:55 +01:00
Michal Paszta 53a82faa5a Prevent double attempt to connect mesh api
Socket network interface tests were failing due to DICONNECTED event
being advertised, where GLOBAL_UP was expected. It turned out that
nanostack receives two events: APPL_EVENT_CONNECT and
APPL_BACKHAUL_INTERFACE_PHY_UP. The second attempt to connect obviously
returns errors, but it also causes events to be sent out to the
application. The second attempt should not take place in case the
bootstrap is already started.

I also fixed two reports being sent with DISCONNECT status, while they
are actually something else.
2019-01-30 15:08:11 +02:00
Jarno Lamsa 740488d061 Set tasklet parameters before connecting
Set tasklet parameters before connecting to prevent the parameters to be set to 0.
The tasklet parameters are reset to 0 when wisun_tasklet_connect gets called,
thus those need to be set in the wisun_tasklet_configure_and_connect_to_network
before they are used. This is also done this way in other tasklets.
2019-01-30 13:06:17 +02:00
Jarno Lamsa d7af9418da Remove yotta-specific lines from .gitignore 2019-01-30 13:04:08 +02:00
Jimmy Brisson 06ea053419 Minor fixes 2019-01-25 09:42:47 -06:00
Brian Daniels ee5281abef Remove unused yotta module metadata 2019-01-24 15:30:20 -06:00
Cruz Monrreal 74f572356d
Merge pull request #9335 from naveenkaje/fix_thred_mle_warning
thread_mle_message_handler: fix build warning
2019-01-17 21:51:37 -06:00
Jimmy Brisson e201fdb6e9 Add placeholder libraries for things we probably refer to as libraries 2019-01-16 14:58:58 -06:00
Naveen Kaje ef8589888b thread_mle_message_handler: fix build warning
Fix the following build warning found when building with

ARMC6 toolchain for NRF52_DK with mbed cli version 1.8.3

[Warning] thread_mle_message_handler.c@762,0:  #188-D: enumerated type mixed with another type
[Warning] thread_mle_message_handler.c@834,0:  #188-D: enumerated type mixed with another type
2019-01-10 07:47:31 -06:00
Mahesh Mahadevan 585a4b6ddd Add nanostack support for KW41Z
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-09 07:43:41 -06:00
Kari Haapalehto 7068e456dd Correcting the error-case trace from mesh-api interfaces 2019-01-07 10:48:46 +02:00
Antti Kauppila bc76c2a2f5 36510 test build fixed 2019-01-03 19:53:17 +02:00
Antti Kauppila 02b0f79e15 mbed.h includes removed 2018-12-28 14:36:10 +02:00