Commit Graph

3076 Commits (mbed-os-5.9)

Author SHA1 Message Date
Ari Parkkila a4214b259a Cellular: Fixed AT+COPN 2018-09-07 17:28:57 +01:00
Aashish chaddha 7959873045 ifndef some macros to allow overriding during compilation or be able to get some warnings during redefinition 2018-09-07 17:28:57 +01:00
David Saada 5b47136125 When stack stats enabled, prevent exceptions if memory allocations fail 2018-09-07 17:28:57 +01:00
Arto Kinnunen 13ac199675 Squashed 'features/nanostack/sal-stack-nanostack/' changes from 82bbdcc..3abd82e
3abd82e Merge branch 'release_internal_v8.1.1' into release_external_v8.1.1
f2ca069 Update apache license to config-files (#1781)
b2179ee Rename cfg-files to h-files (#1780)

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 3abd82e07a733fbb84e786f138541b5a0ef50c26
2018-08-23 19:55:01 -05:00
Kimmo Vaisanen 6ce5e1a1b6 Lora: Fix join-response failure handling
Thix commit fixes a bug where stack was resending join-accept already
after RX1 if received join-response was invalid.

Stack should wait for RX2 before resending the join-accept.
2018-08-23 19:06:58 -05:00
Juha Ylinen 37404941a1 Nanostack: Fix return code for unsupported socket options 2018-08-23 19:06:14 -05:00
Steven 244c10d9b3 Fix stack size for LwIP on EFM32GG11
Typo in the config file made the LwIP stack way too small on EFM32GG11 STK3701 target. Additionally, the EMAC thread stack was slightly too small when debug printing is on.
2018-08-23 19:06:12 -05:00
Hasnain Virk d5abbcbd8c unused variable warning in LoRaMac.h for release build
In release builds where MBED_ASSERT macro is syphoned off, we were hitting
an unused variable warning. To mitigate that we could direct the variable
used in MBED_ASSERT to void.
2018-08-23 19:06:09 -05:00
Amanda Butler 7f63ec6d50 Copy edit CellularSMS.h
Copy edit file for parallelism, consistent capitalization and minor grammar nits.
2018-08-23 19:01:12 -05:00
Amanda Butler 08312f369e Copy edit CellularSIM.h
Copy edit for parallelism, and fix typo and capitalization from before these changes.
2018-08-23 19:01:11 -05:00
Amanda Butler a8116b1937 Copy edit CellularPower.h
Copy edit file for parallelism, and fix typo
2018-08-23 19:00:55 -05:00
Amanda Butler f021763217 Copy edit CellularNetwork.h
Copy edit file for parallelism and active voice.
2018-08-23 19:00:55 -05:00
Amanda Butler cc3eda9b9d Copy edit CellularInformation.h
Copy edit file for parallelism and active voice.
2018-08-23 19:00:55 -05:00
Teppo Järvelin 2b9f670488 Cellular: review fixes for doxygen changes of return values. 2018-08-23 19:00:34 -05:00
Teppo Järvelin 08d7bcf49e Cellular: Document all possible error codes for cellular API. 2018-08-23 19:00:34 -05:00
paul-szczepanek-arm 8c53238149 store secure connections ltk in both local and peer entry 2018-08-23 17:17:01 -05:00
David Saada b53cb325d7 Check max possible keys in NVStore tests. 2018-08-23 17:16:57 -05:00
Mirela Chirica df61693737 Cellular: Handle AT response stop in case IP address is missing from CGPADDR response 2018-08-23 16:58:13 -05:00
Kimmo Vaisanen 6dd97768a5 Lora: send and receive methods return LORAWAN_STATUS_NOT_INITIALIZED if not initialized
In order have a consistent return value for all methods in case of system is uninitialized
now also send and receive methods can return LORAWAN_STATUS_NOT_INITIALIZED.
2018-08-23 16:58:10 -05:00
Amanda Butler 872810eb68 Copy edit LoRaWANBase.h
Copy edit file for minor grammar nits.
2018-08-23 16:58:10 -05:00
Kimmo Vaisanen 62bf677af4 Lora: Reformate LoRaWANBase documentation
- Modified "user" to "you"
- Modified line length to ~100 characters.
2018-08-23 16:58:10 -05:00
Amanda Butler 7ff245019e Copy edit LoraWANBase.h
Copy edit file, mostly for consistent U.S. spelling and precise language.
2018-08-23 16:58:10 -05:00
Kimmo Vaisanen a152a8536c Lora: Document all possible error codes for LoRaWANBase methods
Also duplicate documentation is removed from LoRaWANInterface which
inherits LoRaWANBase class.
2018-08-23 16:58:10 -05:00
Kari Haapalehto 41574601c9 Update mesh_system_heap_error_handler to use new error codes and mbed_error call 2018-08-23 16:58:05 -05:00
Teppo Järvelin d7be0fa3ac Cellular: Fixed sms greentea by removing uncommon character set setting 2018-08-23 16:58:01 -05:00
Teppo Järvelin 1de940d1bc Cellular: Fixed sms greentea tests init
Fixed sms greentea tests by making sure that device is ready to accept
AT commands before sending them.
2018-08-23 16:58:01 -05:00
Senthil Ramakrishnan 4d5ee560f4 Update Lwip error calls to use new error codes and mbed_error call 2018-08-13 14:44:27 +01:00
paul-szczepanek-arm 37985e5912 factored out whole ediv rand check 2018-08-13 14:44:27 +01:00
paul-szczepanek-arm dbeded5fbb MACRO the size of rand 2018-08-13 14:44:27 +01:00
paul-szczepanek-arm 3bbdf3446d factor out invalid rand function 2018-08-13 14:44:27 +01:00
paul-szczepanek-arm 986c42233f replaced lesc field usage with ediv&rand check 2018-08-13 14:44:27 +01:00
paul-szczepanek-arm de9bb5dde5 call the correct ltk function when SC is used 2018-08-13 14:44:27 +01:00
Oren Cohen cea311d621 Fix owner restoration and discard across nvstore init 2018-08-13 14:44:27 +01:00
Teemu Kultala 3608cc78ce sms gt tests: rebase and astyle fix 2018-08-13 14:44:27 +01:00
Teemu Kultala 7d2d835687 sms gt tests: changes after review 2018-08-13 14:44:27 +01:00
Teemu Kultala e837425f88 sms gt tests 2018-08-13 14:44:27 +01:00
Juha Ylinen 42bee88cec Nanostack: fix error code
Return NSAPI_ERROR_NO_MEMORY if socket->open() fails
2018-08-13 14:44:27 +01:00
paul-szczepanek-arm 0dbcf97742 set correct default privacy configuration for centrals 2018-08-13 14:44:27 +01:00
deepikabhavnani 14e04bc9f4 Remove inclusion of mbed.h and mbed namespace from filesystem code 2018-08-13 14:44:27 +01:00
Teppo Järvelin 5d516f5a0d Cellular: fixed greentea tests C027 and BG96. 2018-08-13 14:44:27 +01:00
Edd Inglis 87d7b2b7fb An incomplete connect (either abandoned with a disconnect() or just failed of its own accord) would prevent futher connect()'s due to the CONN_IN_PROGRESS_FLAG remaining set. This change clears that flag in the two cases described. 2018-08-13 14:44:27 +01:00
Martin Kojtal 6d75e61e63 cellular: fix tests that astyle breaks
Ignore TEST_GROUP by AStyle. As this uses macro, is not visible to formatter.
By default, it assumes it is a function and treats methods as blocks inside a
function (inlined {}). We ignore it.

We might just not format UNITTESTS in the future if we face similar issues
in the future.
2018-08-13 14:44:27 +01:00
Martin Kojtal 522ef29722 cellular: astyle fix 2018-08-13 14:44:27 +01:00
David Saada a709e91920 Add init reference count to all block devices 2018-08-13 14:44:27 +01:00
David Saada 57bd7109f8 Skip a few tests if not enough memory can be allocated for them. 2018-08-13 14:44:27 +01:00
Kimmo Vaisanen 70435d28f4 Lora: Fix cancel_sending
This commit fixes some bugs from cancel_sending() method:
-  System crashed if method was called before initialization.
   Now LORAWAN_STATUS_NOT_INITIALIZED will be returned.
-  Method returned LORAWAN_STATUS_BUSY error when no send request was pending.
   LORAWAN_STATUS_OK should be returned in this case.
-  LORAWAN_STATUS_BUSY is now returned if backoff timer is just about to be
   dispatched (time_left returns 0).
2018-08-13 14:44:27 +01:00
cyliangtw a2b675197a Initialized return value of numaker_emac link-out 2018-08-13 14:44:27 +01:00
cyliangtw 7e3bd642ef Add error handling for getting null tx buffer 2018-08-13 14:44:27 +01:00
Antti Yli-Tokola b307836efe Update mbed-coap version to 4.5.1
Fixes error: IOTCLT-2883 - Blockwise observations not completing
2018-08-13 14:44:27 +01:00
Hasnain Virk fa06653912 Fixing incorrect NetID causing ABP Failures
The issue rose up when using ARMC6. A test case didn't initialize NetID
parameter for ABP while using connect(params) API. NetID is the first 7 bits
of the Device Address. It makes sense to actually remove the net-id parameter
from ABP settings as the stack can deduce it from device address. However, the ABP
structure is exposed in public APIs, so we can't really do that at the moment.
Simpler fix is to move the mask that helps us to extract first 7 bits of the device address
is exposed in lorawan_types.h and the user can use it to deduce correct net-id.
2018-08-13 14:44:27 +01:00