Commit Graph

5931 Commits (5cfee6588183431f21e1ef75de0afca92277ca45)

Author SHA1 Message Date
Martin Kojtal 1afece7f1b
Merge pull request #11488 from kivaisan/fix_cellular_get_interface_name
Cellular: Fix get_interface_name to not include leading zero
2019-09-19 12:43:45 +02:00
Martin Kojtal c1a1c22fe9
Merge pull request #11469 from AriParkkila/cell-clear-ndef
Cellular: Disable cellular.clear-on-connect by default
2019-09-19 10:37:10 +02:00
Martin Kojtal 185e380233
Merge pull request #11490 from AriParkkila/cell-bg96-ifc
Cellular: Add flow control (IFC) in BG96 AT driver
2019-09-19 10:25:47 +02:00
Martin Kojtal 15d200f3d3
Merge pull request #11499 from kivaisan/fix_quectel_m26_send
Cellular: Fix stop tag for Quectel M26 send command
2019-09-19 10:22:18 +02:00
Jaeden Amero eb00fbadb4 tls: Update to Mbed TLS 2.19.1
Update Mbed TLS to Mbed TLS 2.19.1.
2019-09-17 15:24:09 +01:00
Kimmo Vaisanen ba4308344b Cellular: Fix stop tag for Quectel M26 send command
Possible responses for send command are SEND OK<cr><ln>, SEND FAIL<cr><ln> or ERROR<cr><ln>
so normal OK<cr><ln> response check does not work properly.
2019-09-17 15:52:14 +03:00
Jaeden Amero 60f383e01f tls: Update export keys callback to use const
Mbed TLS's export keys callback requires the hello.random (for both
server and client) to be const. Make the callbacks in Mbed OS that use
the key export feature use const to match.
2019-09-17 12:57:05 +01:00
Ari Parkkila 823993e7b1 Cellular: Add flow control (IFC) in BG96 AT driver 2019-09-16 03:16:36 -07:00
Martin Kojtal 9673ac1283
Merge pull request #11474 from dgreen-arm/fix-mbed-crypto-importer
Remove Mbed Crypto source files before importing
2019-09-16 11:25:21 +02:00
Kimmo Vaisanen ab71b2dba8 Cellular: Fix get_interface_name to not include leading zero
Multihoming documentation about interface name:
"Two character name string is concatenated with 8 bit value containing index which is incremented on each netif addition"

Cellular uses context id as index and to follow LWIP (LWIP::Interface::get_interface_name), index does not include leading zeros.
2019-09-16 09:59:31 +03:00
Yogesh Pande 246f431ed4 Delaying message id random initialization to later stage.
Random initialization sequence is causing start up issues in multiple platform
when done at construction phase.
The right thing is to delay the random initialization to later stage when the
message id is actually required. This provides system to do all necessary allocation
upfront without causing any random race condition at startup phase.
2019-09-13 16:17:14 +03:00
Martin Kojtal bf1aa5c016
Merge pull request #11465 from kotkcy/pr/mxcrypto_alts
Updated mbedTLS CRYPTO target to be more flexibly configured for supported boards
2019-09-13 12:31:12 +02:00
Martin Kojtal 66c39e0bca
Merge pull request #11424 from mirelachirica/stack_type_ip_versions
Stack type ip versions
2019-09-13 11:46:06 +02:00
Darryl Green 4b0f0ed61c Remove Mbed Crypto source files before importing 2019-09-12 16:04:44 +01:00
Mirela Chirica 78f4e8b12f Cellular: Enable IPv6 stack property for BG96 2019-09-12 12:56:29 +03:00
Mirela Chirica 7aaaae121e Cellular: IP stack property redefined 2019-09-12 12:56:28 +03:00
Mirela Chirica b44ba531a1 Cellular: Check IP version of send to address 2019-09-12 12:56:28 +03:00
Mirela Chirica ea1b2b8045 Cellular: Stack type based on assigned IP addresses versions 2019-09-12 12:55:33 +03:00
Ari Parkkila 5fbcaeaca5 Cellular: Disable cellular.clear-on-connect by default 2019-09-12 00:02:14 -07:00
Kostiantyn Tkachov 9fc299a1cc Updated mbedTLS CRYPTO target to be more flexibly configured for supported boards 2019-09-12 01:30:54 +02:00
Martin Kojtal 3297bf4062
Merge pull request #11420 from tymoteuszblochmobica/cm3ds
Fixed smsc9220_emac link_out memory management.
2019-09-10 19:52:44 +02:00
Ari Parkkila 94dcab9d69 Cellular: Add API to clear CellularDevice
A new API `CellularDevice::clear()` to clean-up the modem to a default initial state.
Function is virtual so it can be overridden. The default implementation clears all PDP contexts,
but the the first one if that has APN defined as `nsapi.default-cellular-apn`.

CellularStateMachine calls `clear()` to clean-up the modem on initial `connect()`,
if the flag `cellular.clear-on-connect: true` is defined.
2019-09-09 06:14:20 -07:00
Jaeden Amero ea834ebc2a crypto: Update to Mbed Crypto 2.0.0 2019-09-06 16:15:47 +01:00
Jaeden Amero 612255f8c3 tls: Update to Mbed TLS 2.19.0 2019-09-06 16:15:47 +01:00
Martin Kojtal 87cdef9258
Merge pull request #11408 from SeppoTakalo/mbed_trace_nanomesh
Remove mbed_trace dependency to Nanomesh headers
2019-09-06 14:36:14 +02:00
Seppo Takalo a7634a1e5a Include ns_types.h before mbed_trace.h in Nanomesh 2019-09-06 13:05:19 +03:00
Martin Kojtal c2df0013e9
Merge pull request #11423 from JarkkoPaso/nanostack_release_for_mbedos_5_14
Nanostack release for mbedos 5 14
2019-09-06 12:02:31 +02:00
Martin Kojtal 21ebb725c5
Merge pull request #10991 from RonEld/update_readme_for_optin_in_modules
Explaining how to opt in modules
2019-09-06 11:41:41 +02:00
Seppo Takalo 40841453a5 Remove mbed_trace dependency to Nanomesh headers
This library only uses standard types from C99, and
thus does not need compiler specific tweaks from ns_types.h
2019-09-06 10:40:14 +03:00
Jarkko Paso 4ebbbc592d Merge commit '396dae52ab4eef15910011432f2c7a4261fc22b7'
* commit '396dae52ab4eef15910011432f2c7a4261fc22b7':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 4a19dc4..c473148
2019-09-05 14:28:22 +03:00
Martin Kojtal 978296a26d
Merge pull request #11372 from AriParkkila/bg96-pwr
Cellular: Fix BG96 power on and connect
2019-09-05 13:10:26 +02:00
Martin Kojtal 0427bb7469
Merge pull request #11396 from gpsimenos/remove-sms-floats
Remove floating point from AT_CellularSMS
2019-09-05 11:12:17 +02:00
Martin Kojtal 567479792c
Merge pull request #11392 from hugueskamba/hk-remove-minor-warnings
Remove minor build warnings
2019-09-05 09:59:39 +02:00
Martin Kojtal d135e9bf32
Merge pull request #11394 from hugueskamba/hk-replace-deprecated-wait_us
Replace wait_ms calls with rtos::ThisThread::sleep_for
2019-09-05 09:56:57 +02:00
Martin Kojtal 34a3948d6e
Merge pull request #11395 from hugueskamba/hk-replace-non-trivial-struct-initialization
Avoid non-trivial copy when initializing lorastack struct
2019-09-05 09:55:49 +02:00
Martin Kojtal f0234268f5
Merge pull request #11046 from kotkcy/pr/cy_mbedtls_alt
Initial implementation of Cypress Crypto hardware acceleration for mbedTLS
2019-09-05 09:43:06 +02:00
Jarkko Paso da0fe81bfd Mesh API, Wi-SUN: Initialize Wi-SUN settings with values from json 2019-09-04 15:53:21 +03:00
Tymoteusz Bloch 2626d90266 Fixed msc9220_emac link_out memory management. 2019-09-04 13:59:36 +02:00
Ari Parkkila cb20277701 Cellular: Fix BG96 power on and connect 2019-09-04 03:24:11 -07:00
Martin Kojtal 208d703b7e
Merge pull request #11338 from cydriftcloud/pr/psoc6-softap-bringdown
Bring down interface when stopping softap
2019-09-04 11:54:23 +02:00
Martin Kojtal aba0760652
Merge pull request #10684 from jarvte/fix_athandler_destr
Cellular: fix ATHandler destructor possible crash on delete
2019-09-04 11:52:59 +02:00
Antti Yli-Tokola 1708ec2a3f nsapi_dns: cleanup dns queue when running out or memory 2019-09-03 13:56:21 +03:00
Hugues Kamba a306ad758d Avoid non-trivial copy when initializing lorastack struct
Using memset generates a warning about the non-trivial operation.
Use member-initializer-list instead to initialise the structs members.
2019-09-03 11:08:04 +01:00
Hugues Kamba 9715587042 Remove extraneous parentheses. 2019-09-03 09:58:08 +01:00
Hugues Kamba 8c22bbbbc8 Use PRIu32 to print uint32_t variable
As the variable underlying type size is different depending on the
toolchain used
2019-09-03 09:29:06 +01:00
Martin Kojtal e001216b55
Merge pull request #11315 from Patater/psa-crypto-api-1.0b3
Update Mbed OS for PSA Crypto API 1.0b3
2019-09-03 09:20:15 +02:00
Teppo Järvelin 753ba8ceb6 Cellular: fix ATHandler destructor possible crash on delete
In some multithread cases there is possibility that process_oob function
was called after ATHandler was deleted. Fix is to wait if oob processing
is ongoing.
2019-09-03 09:09:05 +03:00
Kostiantyn Tkachov 235949b1f4 Changed order of config file checking in include defines 2019-09-02 22:17:25 +03:00
Jaeden Amero 95d448b63d attestation: Erase storage before test
Be robust when keys can't be opened for deletion by erasing storage and
thereby all keys.
2019-09-02 17:10:59 +01:00
Jaeden Amero 3d1b8363db Use PSA Crypto API 1.0b3
The PSA Crypto API has moved on from 1.0b2 to 1.0b3, bringing along with
it some breaking changes. Update Mbed OS to use the 1.0b3 API.
2019-09-02 17:10:59 +01:00