cyliangtw
401f09c479
[M487/NUC472] Support DHCP & TCP sample, also remove legacy emac
2018-05-23 12:24:09 +03:00
cyliangtw
89209b6cd5
[M487/NUC472] Support new EMAC feature, built OK
2018-05-23 12:24:08 +03:00
Mahesh Mahadevan
82b2a27a1c
Kinetis EMAC: Renamed K64F files to Kinetis
...
This driver is used by more SoC's than K64F
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-23 12:24:07 +03:00
Mahesh Mahadevan
7bc4c0ec21
K64F, K66F: Update the SYSMPU implementation
...
Do not disable SYSMPU, instead add access for ENET bus master
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-23 12:24:07 +03:00
Mika Leppänen
de72090d26
Changed STM emac driver to loop RX frame reading
2018-05-23 12:24:06 +03:00
Kevin Bracey
953f1b615a
Add EMAC driver README.md with porting guide
2018-05-23 12:24:06 +03:00
Kevin Bracey
fbd920777b
Add extra labels for Freescale & STM EMAC drivers
...
Just checking "does the chip have an EMAC" doesn't work - there are
targets using those chips which do not have an Ethernet connector and
don't provide the necessary surrounding infrastructure (eg DISCO_F429ZI,
not providing the board emac config call, and HEXIWEAR not providing PHY
info).
Make the targets that actually do want EMAC define their own local
Freescale_EMAC and STM_EMAC labels, and move the drivers into
the corresponding TARGET_ directories, removing the #ifdefs.
2018-05-23 12:24:06 +03:00
Kevin Bracey
d83dec9ea4
Stop drivers checking DEVICE_EMAC
...
Checking DEVICE_EMAC is problematic - particularly for the Odin W2 where
apps have been shutting this off to disable the Wi-fi interface.
Make drivers check a locally-relevant flag instead, pending new
thoughts on how to achieve application/test-relevant flagging for
XXX:get_default_instance() being provided by a system.
However that is achieved, drivers do require a flag set purely by the
target - they mustn't be tripped up by an add-on module providing itself
as the system's default EMAC.
2018-05-23 12:24:05 +03:00
Mika Leppänen
01b4d97cb4
Corrected STM eth driver flagging, memory allocation and thread init
2018-05-23 12:24:05 +03:00
Kevin Bracey
3c83c62ff7
Nanostack EMAC implementation
...
Make Nanostack an OnboardNetworkInterface, implementing
add_ethernet_interface so it can use EMAC drivers.
Can now be used via EthernetInterface, and be the system's default
network stack.
Legacy support for NanostackEthernetInterface retained. Some
restructuring of mesh interface code to fit into the
OnboardNetworkStack:::Interface system.
2018-05-23 12:24:04 +03:00
Kevin Bracey
a0d374ef00
Extend EMAC multicast APIs
2018-05-23 12:24:02 +03:00
Kevin Bracey
5472a9703f
EMAC: check link status callback is set
...
Nanostack doesn't set the link status callback. Make sure the two
example drivers don't crash if it isn't set.
2018-05-23 12:24:02 +03:00
Kevin Bracey
7ce098acb4
K64F EMAC: Fix TX error path leaks
2018-05-23 12:24:02 +03:00
Mika Leppänen
5da3cd9cce
Added preferred alignment to emac and copy to/from to memory manager
2018-05-23 12:24:01 +03:00
Kevin Bracey
4950a993fd
Move STM EMAC driver out out lwIP
2018-05-23 12:24:01 +03:00
Mika Leppänen
4e10cc097e
Updated STM ethernet driver to use emac and memory manager
2018-05-23 12:24:01 +03:00
Mika Leppänen
668e0821a1
Updated K64F ethernet driver to use memory manager
2018-05-23 12:24:00 +03:00
Mika Leppänen
bc5d4d1c0d
Created memory manager class to netsocket and updated lwip to use it
...
instead of old memory interface.
2018-05-23 12:24:00 +03:00
Kevin Bracey
b222c25435
Work around Nuvoton #define EMAC
2018-05-23 12:23:58 +03:00
Kevin Bracey
958247265b
Tell mbed build to ignore old lwIP+EMAC drivers
2018-05-23 12:23:58 +03:00
Kevin Bracey
0ecf4e4695
Move Freescale EMAC driver out of lwIP
2018-05-23 12:23:58 +03:00
Kevin Bracey
74dfe3423a
Add downcast methods to NetworkInterface
...
As we've introduced virtual inheritance to support EMACInterface, we can
no longer use C-style casts or static_cast to downcast from
NetworkInterface to more specific types. RTTI is disabled in the
toolchains, so dynamic_cast is unavailables.
Add virtual downcast methods to permit conversions to the 6 derived
classes. Probably only needed for EMACInterface, WiFiInterface and
EthInterface, but handles the set.
2018-05-23 12:23:55 +03:00
Mirela Chirica
6e7d0a8847
Cellular: Added missing copyrights
2018-05-23 12:11:02 +03:00
Mirela Chirica
b59ef26930
Cellular: Unit tests fixes
2018-05-23 12:11:02 +03:00
paul-szczepanek-arm
80137be991
Merge https://github.com/ARMmbed/mbed-os into security-manager-dev
2018-05-23 09:47:06 +01:00
Yossi Levy
f33f4dab26
Increase tests timeout to 45 second
2018-05-23 11:29:46 +03:00
Ron Eldor
77e87d3174
Check the size_t isn't larger than 32 bit
...
Assure that `size_t` isn't larger than 32 bit, with preprocessor check.
Using `#if SIZE_MAX > UINT_MAX`.
2018-05-23 08:37:27 +03:00
Yossi Levy
7401aea36a
Remove reset tests. Small change to cmac claculation in get_derived_key
2018-05-22 21:35:33 +03:00
Oren Cohen
076cd42b7c
Update uvisor-tests.txt
2018-05-22 17:57:43 +01:00
Vincent Coubard
cfe325cf0e
BLE NRF51: Do not filter advertising packet in peripheral if the device as no bond.
2018-05-22 17:40:18 +01:00
Vincent Coubard
ba61c09ffc
BLE NRF51: Resolve private address on connection in peripheral role
...
Soft device inconsistency: The address is not resolved automatically if the device is a peripheral.
2018-05-22 17:39:03 +01:00
Vincent Coubard
755cf5fa5f
BLE NRF51: Defer connection to a common function.
...
The soft device is not consistent as it is required to force the connection to a resolved resolvable address so it should be known if the target is an identity address.
2018-05-22 17:37:57 +01:00
Vincent Coubard
d427fcfb59
Nordic BLE: Remove dependency to mbedtls for CryptoToolbox::ah.
2018-05-22 17:33:49 +01:00
Yogesh Pande
c520baeebf
Remove ns_event_loop_thread_start() from NDInterface and ThreadInterface connect().
...
ns_event_loop_thread_start() is incorrectly used at connect() phase, the initial
setup is already done at init() phase and the eventloop thread is correctly initialized.
Also, the usage of ns_event_loop_thread_start() API should be behind MBED_CONF_NANOSTACK_HAL_EVENT_LOOP_DISPATCH_FROM_APPLICATION
flag as application can decide to use main thread for event loop, which will result in linker error for this API call in
case of ARMCC compiler.
2018-05-22 16:44:40 +03:00
paul-szczepanek-arm
69a0c10f00
removing erroneous (and redundant) check
...
this is gating on the wrong flag and the call doesn't require a check in the first place
2018-05-22 14:37:02 +01:00
paul-szczepanek-arm
08cb7aefd2
fix not writing flags in the file
...
flags kept with the rest of data for each entry
2018-05-22 14:08:09 +01:00
Martin Kojtal
02af950f62
Merge pull request #6336 from geky/fat-errors
...
fatfs: Update error code mapping
2018-05-22 14:27:01 +02:00
Martin Kojtal
fc2f7fff95
Merge pull request #6757 from davidsaada/david_buffered_bd
...
Implement BufferedBlockDevice
2018-05-22 14:25:51 +02:00
paul-szczepanek-arm
84ff831141
measure file size with SEEK_END
...
I thought that's not portable but the rest of the codebase uses it so no reason not to
2018-05-22 12:25:11 +01:00
paul-szczepanek-arm
1cd0c20fd0
fix opening the file in the wrong mode
2018-05-22 12:11:07 +01:00
paul-szczepanek-arm
7d916a9997
fix not writing version number into the file
2018-05-22 11:45:38 +01:00
cyliangtw
665dc99096
Support default tz_module for event loop & lwip
2018-05-22 17:19:47 +08:00
Kevin Bracey
6dffe6e4e7
Remove CellularInterface
...
This has been superceded by CellularBase. Name change occurred late
in review of https://github.com/ARMmbed/mbed-os/pull/4119 and
original unused CellularInterface was left behind.
2018-05-22 11:44:46 +03:00
Kevin Bracey
1c5bbaf4d8
Insert EMACInterface class
...
Rather than let "EthernetInterface" be the base EMAC NetworkInterface,
insert an "EMACInterface" class.
EthernetInterface then derives from EMACInterface and EthInterface.
A Wi-Fi driver can derive from EMACInterface and WiFiInterface - this
will be more logical than deriving from EthernetInterface and
WiFiInterface.
This does mean adding a couple of virtual inheritances to avoid
duplicate NetworkInterfaces:
NetworkInterface
/ \
virtual / \ virtual
/ \
EMACInterface WiFiInterface
\ /
\ /
\ /
MyCustomWiFiInterface
2018-05-22 11:44:45 +03:00
Kevin Bracey
0386f73719
Networking update: general refactoring, unifying EMAC
...
Initial work by Bartek Szatkowski in https://github.com/ARMmbed/mbed-os/pull/4079 ,
reworked following review of https://github.com/ARMmbed/mbed-os/pull/5202 to
transform the entire system into C++, retaining the basic functionality.
Bartek's summary:
* Porting ethernet to EMAC
* Updating EMAC to enable multiple interfaces
* Untangling networking classes, making the abstractions a bit clearer to follow, etc
* General refactoring
* Removal of DEVICE_EMAC flag and introducing DEVICE_ETH and DEVICE_WIFI
Revisions since initial branch:
* Remove lwip depencies
* Correct doxygen warnings
* Remove emac_api.h, replace with C++ EMAC abstract class.
* Create OnboardNetworkInterface, and LWIP implementation.
* Mappings since #4079
lwip-interface/nsapi_stack_lwip.c -> LWIPStack.cpp
lwip-interface/ipstack_lwip.c -> LWIPInterface.cpp
netsocket/mbed_ipstack.h -> OnboardNetworkStack.h
hal/emac_api.h -> EMAC.h
* Reinstate use of EthInterface abstraction
* Correct and clarify HW address EMAC ops
* Restore MBED_MAC_ADDR implementation
* Integrate PPP support with LWIP::Interface.
* Convert K64F lwIP driver to K64F_EMAC.
To do:
* Convert emac_stack_mem.h to follow this pattern.
* Figure out DEVICE_ETH/EMAC
* Update all drivers to use EMAC
2018-05-22 11:44:45 +03:00
Ron Eldor
d2bcf3c356
Change target name
...
Apply the CC changes to TARGET_MCU_NRF52840 , and not to
the DK target alone
2018-05-22 09:24:37 +03:00
Andrew Leech
67140a2706
Redirect NRF asserts to mbed error() in TARGET_NRF5x and SDK 14.2
...
Add related details to TARGET_NRF5x Readme's
2018-05-22 11:36:31 +10:00
Andrew Leech
cfd248ee05
Enable ASSERTS's in nrf sdk to catch coding errors.
...
These will now flow through to mbed standard error handling.
2018-05-22 11:36:30 +10:00
Cruz Monrreal
db73ed0751
Merge pull request #6480 from davidsaada/david_nvstore_alloc_key
...
NVStore: add the allocate_key API (instead of set_alloc_key)
2018-05-21 17:32:00 -05:00
Cruz Monrreal
cd1ff94db2
Merge pull request #6866 from geky/fat-erase-disk
...
fatfs: Add erase disk to format
2018-05-21 17:14:14 -05:00
Yossi Levy
b95c5f79c0
Replace UINT16_MAX with (uint16_t)-1 because of build failure
2018-05-21 18:47:39 +03:00
Cruz Monrreal
ab5d7e1c2f
Merge pull request #6952 from jeromecoutant/PR_MSP
...
STM32 ETHERNET : Allow user defined Ethernet PHY init functions
2018-05-21 10:25:06 -05:00
Cruz Monrreal
a651cb220f
Merge pull request #6863 from k-stachowiak/update-mbedtls-2.9.0
...
Update Mbed TLS to version 2.9.0
2018-05-21 10:13:31 -05:00
Cruz Monrreal
16d30776aa
Merge pull request #6905 from kivaisan/remove_common_pal_flags
...
Lora: Remove obsolete FEATURE_COMMON_PAL flags
2018-05-21 10:11:20 -05:00
Vincent Coubard
fb9e0dcbe7
BLE: Fix resolvable private address identification.
2018-05-21 15:30:19 +01:00
Vincent Coubard
b973a8a490
BLE: Add default constructor to peer_address_type_t
2018-05-21 15:29:54 +01:00
Hasnain Virk
71348f7d65
Message flags correction
...
Uplink multicast is not allowed. Proprietary messages cannot be
of type unconfirmed and unconfirmed.
2018-05-21 16:16:58 +03:00
Vincent Coubard
bdad5d6496
BLE Generic: Handle peer address type backward compatibility.
2018-05-21 13:29:06 +01:00
Vincent Coubard
cc286fe84c
BLE: Cordio pal: Handle enhanced connection events.
2018-05-21 13:22:53 +01:00
Vincent Coubard
cbba6dd0d6
BLE PAL: Update connection event to support enhanced connection events.
2018-05-21 13:22:31 +01:00
Vincent Coubard
57ffa14b4b
Nordic BLE: Backport privacy backward compatibility to NRF51
2018-05-21 13:21:46 +01:00
paul-szczepanek-arm
62ba220100
doxygen fix
2018-05-21 11:42:32 +01:00
Ron Eldor
23ba8bc1f5
Change Cryptocell target to a feature
...
Change the Cryptocell310 target to `FEATURE_CRYPTOCELL310`
2018-05-21 13:40:43 +03:00
paul-szczepanek-arm
17e8ed9401
forward resolving list init
2018-05-21 11:34:40 +01:00
Vincent Coubard
14a1095c31
Nordic BLE: Disable secure connection support on NRF51.
2018-05-21 10:34:09 +01:00
Vincent Coubard
4c1a309117
Nordic BLE: Set own resolvable address to NULL.
...
This address is not accessible to the application.
2018-05-21 10:22:01 +01:00
Vincent Coubard
d962fc0174
BLE: factor code in GAP.
2018-05-21 10:20:43 +01:00
Vincent Coubard
28766bd873
BLE: Do not pass peer resolvable address in connection event handler
2018-05-21 10:17:44 +01:00
paul-szczepanek-arm
cd9f12ab45
return error codes
2018-05-18 13:59:30 +01:00
paul-szczepanek-arm
ace491d430
remove duplicate call
2018-05-18 13:54:15 +01:00
paul-szczepanek-arm
9da64e529e
refactor into separate functions for readability and correctness of pal matching db
2018-05-18 13:46:55 +01:00
jeromecoutant
7622083da9
STM32 ETHERNET : Allow user defined Ethernet PHY init
...
If user adds USE_USER_DEFINED_HAL_ETH_MSPINIT macro in the json config,
he can implement his own HAL_ETH_MspDeInit and HAL_ETH_MspDeInit functions.
2018-05-18 14:42:27 +02:00
paul-szczepanek-arm
439d002f7d
new API call to change db at runtime
2018-05-18 12:34:52 +01:00
paul-szczepanek-arm
608ad338e8
return error when not initialised
2018-05-18 10:24:16 +01:00
Vincent Coubard
c3bcd10cfd
BLE NRF52: Implement features related to peer_address_t
...
The overload of Gap::connect that accept peer_address_t has been added and gap connection and advertising report process have been updated to exploit peer_address_t in a backward compatible fashion.
2018-05-18 10:09:07 +01:00
Vincent Coubard
d361960aa3
BLE: Use peer_address_type_t instead of the legacy address in security manager.
2018-05-18 10:04:27 +01:00
Martin Kojtal
79640c6a88
Merge pull request #6940 from JanneKiiskila/nvstore-thread-mstr
...
NVStore - remove Thread.h include
2018-05-18 09:05:05 +01:00
Cruz Monrreal
4b721583b5
Merge pull request #6559 from davidsaada/david_flash_sim_bd
...
Implement FlashSimBlockDevice - flash simulated block device over RAM
2018-05-17 21:54:34 -05:00
paul-szczepanek-arm
a8ac925b4f
privacy doxygen overview
2018-05-17 16:48:49 +01:00
Christopher Haster
5efda4b922
fatfs: Fixed ENOTEMPTY error for removing a directory
2018-05-17 10:26:32 -05:00
Christopher Haster
6d4190bd0b
fatfs: Update error code mapping
...
A lot of the error codes in fatfs were mapped incorrectly. This patch
revisits the error code mapping to try to correct these mistakes.
2018-05-17 10:26:32 -05:00
Cruz Monrreal
54ac02b080
Merge pull request #6865 from jamesbeyond/greentea_fix
...
fix greentea-client, require a character input between K-V pairs
2018-05-17 10:07:41 -05:00
Cruz Monrreal
bce32b097e
Merge pull request #6876 from JuhPuur/master
...
Nanostack release for Mbed OS 5.9
2018-05-17 10:07:21 -05:00
paul-szczepanek-arm
7e69444458
security manager doxygen overview updated
2018-05-17 14:10:57 +01:00
Vincent Coubard
a052afdd40
BLE: Update APIs to take advantage of ble::peer_address_type_t
...
Deprecation:
* Gap::AdvertisementCallback::addressType has been deprecated in favor of Gap::AdvertisementCallback::peerAddrType.
* Gap::ConnectionCallbackParams::peerAddrType has been deprecated in favor of Gap::ConnectionCallbackParams::peerAddressType.
* Gap::ConnectionCallbackParams::ownAddr has been deprecated in favor of nothing else as this information may be not available.
Overloads added to accept a peer_address_t:
* Gap::connect
* Gap::processConnectionEvent
* Gap::processAdvertisingReport
2018-05-17 13:27:15 +01:00
Janne Kiiskila
16a27a2602
NVStore - remove Thread.h include
...
As this include is not actually needed. Having it will cause issues
with the bootloader, as this will cause a need to get the full
CMSIS/RTOS package etc., which would bloat the bootloader size.
2018-05-17 13:07:59 +03:00
Vincent Coubard
0eb680a08b
GenericGap: Revert changes introduced to accomodate privacy.
2018-05-17 10:56:29 +01:00
Vincent Coubard
7f05fc0e00
BLE: Define peer_address_type_t
...
This type model a peer address, unlike BLEProtocol::AddressType, it is compatible with privacy concepts.
2018-05-17 10:30:24 +01:00
Vincent Coubard
e5d91932fd
BLE: Revert address type changes.
...
The changes made to BLEProtocol::AddressType was not entirelly backward compatible as BLEProtocol::AddressType split random addresses in three category while the type RANDOM is a superset of these types.
2018-05-17 10:26:04 +01:00
Teppo Järvelin
678cff4463
Cellular: review changes.
2018-05-17 11:20:58 +03:00
Ari Parkkila
3abfa4531f
Cellular: Removed obsolete FEATURE_COMMON_PAL flag from trace
2018-05-17 09:41:49 +03:00
Ari Parkkila
6a3dce839e
Cellular: Updated coding guidelines
2018-05-17 09:02:54 +03:00
paul-szczepanek-arm
b845a9dc95
fixed doxygen
2018-05-16 17:24:17 +01:00
paul-szczepanek-arm
57a02d6329
fixed signature
2018-05-16 16:54:47 +01:00
Vincent Coubard
37c036ca6b
Nordic: Port privacy to softdevice v4.
...
Many things have changed; the identity list isn't shared anymore with the whitelist and resolution is handled by the stack itself.
2018-05-16 16:16:06 +01:00
Vincent Coubard
6c44a78166
Merge branch 'master' of https://github.com/ARMmbed/mbed-os into security-manager-dev
2018-05-16 15:55:15 +01:00
Donatien Garnier
ad09ba0dcc
Fix handling of security escalation in on_connection_complete()
2018-05-16 13:54:25 +01:00
Ron Eldor
800f71cbd5
Add space
...
Add space which was lost in previous commit
2018-05-16 14:56:40 +03:00
Yossi Levy
492dc9f1fc
Remove uneeded variables
2018-05-16 14:48:30 +03:00
Donatien Garnier
3f7a7a4213
Merge
2018-05-16 12:44:36 +01:00
Teppo Järvelin
8fa8abca27
Cellular: Fixed connect-disconnect sequence can now be called multiple times.
2018-05-16 14:25:35 +03:00
Donatien Garnier
7ef7ef553c
Fix is_random_xxx_address() functions in GenericGap that I had broken :)
2018-05-16 12:04:04 +01:00
Donatien Garnier
1fdb57e82c
Removed set_privacy() API and added is_privacy_supported() check to PAL + Generic GAP
2018-05-16 12:02:21 +01:00
Ron Eldor
a1ea814f06
Minor style fixes
...
Fix styls issues and rename ARM to Arm.
Address additional minor comments from review.
2018-05-16 13:58:46 +03:00
paul-szczepanek-arm
1ae13bc80f
don't reset db on security manager reset as the docs require
2018-05-16 11:46:36 +01:00
Yossi Levy
d816937975
Remove unnecessary remark
2018-05-16 13:24:46 +03:00
paul-szczepanek-arm
bcca75973e
reseting the security db
2018-05-16 11:23:17 +01:00
paul-szczepanek-arm
c2bbc94b44
handle init of an already initialised security db
2018-05-16 11:01:37 +01:00
Ari Parkkila
a146e0e7ff
Cellular: AT debugging improved
2018-05-16 12:39:30 +03:00
Yossi Levy
bf9b2cb6c7
Fix for generate_key_by_trng
2018-05-16 12:17:20 +03:00
Yossi Levy
d88f4b3084
Stricter parameter check
2018-05-16 11:44:45 +03:00
Vincent Coubard
afcbdfc7dc
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into filedb
2018-05-16 08:43:52 +01:00
Donatien Garnier
288c3952d8
Address Paul's comments
2018-05-15 18:37:50 +01:00
paul-szczepanek-arm
5c598688e4
templates for reading and writing to avoid repetition
2018-05-15 16:35:54 +01:00
Cruz Monrreal
991d4613b7
Merge pull request #6744 from AriParkkila/yield-to-wait
...
Cellular: Changed ATHandler yield to wait
2018-05-15 10:08:49 -05:00
Vincent Coubard
2cb6e659a9
Nordic BLE: Backport security fixes from nRF5 to nRF5x
2018-05-15 15:11:33 +01:00
Vincent Coubard
ca5a9f359a
Nordic BLE: remove unecessary nordic ble libraries.
2018-05-15 14:51:19 +01:00
Vincent Coubard
a22b4e5d5e
Nordic BLE: Remove nordic gap init.
...
This initialization is already done in GattServer.
2018-05-15 14:51:18 +01:00
Vincent Coubard
dd6a5350e2
Nordic BLE: Remove peer manager handling.
2018-05-15 14:51:18 +01:00
Vincent Coubard
6f24078507
Nordic BLE: route event handling correctly.
2018-05-15 14:51:18 +01:00
Vincent Coubard
167a660ac1
Nordic BLE: use pal security manager.
2018-05-15 14:51:18 +01:00
Vincent Coubard
31f8cd18f7
Nordic BLE: Backport Gap from nRF5
2018-05-15 14:51:18 +01:00
Vincent Coubard
39396955a2
Nordic BLE: simplify whitelist management.
2018-05-15 14:51:17 +01:00
Vincent Coubard
6810c02606
Nordic BLE: Fix processing of events.
...
If new events are signaled during processing then they should be processed when processEvent is called again. The goal is to let other processing happen and not process sollely ble events.
2018-05-15 14:51:17 +01:00
Vincent Coubard
8fbecf2e0d
Nordic BLE: Fix incorrect assignement
2018-05-15 14:51:17 +01:00
Vincent Coubard
68b3288ba8
Nordic BLE: Fix signature of nRF5xGattServer::hwCallback
2018-05-15 14:51:17 +01:00
Vincent Coubard
4a7c9a9a55
Nordic BLE: expose publically btle_handler
2018-05-15 14:51:17 +01:00
Vincent Coubard
2af5508c4c
Nordic BLE: Do not conditionnaly assign sm key pointers.
...
This change has been forced by a change in latest softdevice that requires all key pointers to not be NULL unlike what is indicated in the documentation.
2018-05-15 14:51:17 +01:00
Vincent Coubard
dc54da0a2d
Nordic BLE: Force signing and link requirements to false.
2018-05-15 14:51:16 +01:00
Vincent Coubard
02e3c13d25
Nordic BLE: Protect event signaled flag.
2018-05-15 14:51:16 +01:00
Vincent Coubard
f7f1272647
Nordic: Backport security manager pal for NRF5X targets.
2018-05-15 14:51:15 +01:00
Vincent Coubard
4acb3937e4
Cordio BLE: Fix potential memory leak in GattServer.
2018-05-15 14:32:29 +01:00
Kimmo Vaisanen
3094327e12
Lora: Remove obsolete FEATURE_COMMON_PAL flags
...
mbed-trace no longer requires COMMON_PAL to be enabled.
2018-05-15 16:08:30 +03:00
Vincent Coubard
ee720f30bb
BLE: Comment security requirement elevation for signed writes.
2018-05-15 12:17:59 +01:00
Vincent Coubard
2c7ed993ec
BLE: Fix security requirements in GattCharacteristic.
2018-05-15 12:17:34 +01:00
Vincent Coubard
2860365a3c
BLE: Improve readibility of condition.
2018-05-15 12:16:51 +01:00
paul-szczepanek-arm
49db7e2a2a
restoring db file blanks file if set to not restore, allow reusing the db
2018-05-15 11:46:39 +01:00
paul-szczepanek-arm
f8244a3d87
review comments, init partly moved to restore, restore setting enabled, null check on filepath
2018-05-15 10:24:59 +01:00
Cruz Monrreal
80e109370d
Merge pull request #6892 from hasnainvirk/bug_fix
...
LoRaWAN: Wrong type of message check
2018-05-14 17:35:32 -05:00
Christopher Haster
2697ebeb21
littlefs: Map LFS_ERR_CORRUPT to EILSEQ
...
Previously EBAD (invalid exchange), mapping the error CORRUPT to EILSEQ
(illegal byte sequence) makes more sense as a description of the type of
error.
2018-05-14 14:13:26 -05:00
Yossi Levy
1cb43fa020
Fixing trng_get_bytes return status
2018-05-14 20:01:47 +03:00
David Saada
df7fb1667d
Implement BufferedBlockDevice
...
Block device allowing smaller read and program sizes for the underlying BD,
using a cache.
2018-05-14 19:25:41 +03:00
David Saada
c90182a02c
NVStore: add the allocate_key API (instead of set_alloc_key)
...
Add the allocate_key API. This replaces the previously added set_alloc_key API
(which allocates a key and sets the value at the same time).
Reason for the change: Key allocation will typically be used by other storage
features (like StorageLite), keeping the allocated keys in another location.
Previous API created problems in the case key allocation and value setting
couldn't be done at the same time (for instance, if the set value was
derived from the allocated key, such as hash or CMAC).
2018-05-14 19:00:46 +03:00
Christopher Haster
e77d57e0bc
fatfs: Added erase disk to format
...
Right now, many users are trying out many different filesystems.
Unfortunately, this can leave partially written filesystems on disk
in various states.
A very common pattern for using embedded filesystems is to attempt
a mount, and on failure, format the storage with the filesystem.
Unfortunately, this simply doesn't work if you try to change the
filesystem being used on a piece of storage. Filesystems don't always
use the same regions of storage, and can leave enough metadata lying
around from old filesystems to trick a different mount into thinking a
valid filesystem exists on disk. The filesystems we have were never
designed to check for malicious modification and can't protect against
arbitrary changes.
That being said, it's caused enough problems for users, so as a
workaround this patch adds a disk erase to the FAT filesystem format.
The most common error happens when you use LittleFS, followed by FAT,
followed again by LittleFS.
No other combination of filesystem usage has shown a similar failure,
but it is possible after extensive filesystem use, so it is still
suggested to force a format of the storage when changing filesystems.
2018-05-14 10:54:01 -05:00
Cruz Monrreal
9fd04c4a37
Merge pull request #6839 from kivaisan/fix_lora_au915_build
...
Lora: fix AU915 build
2018-05-14 10:52:18 -05:00
Cruz Monrreal
6db9a8bb62
Merge pull request #6875 from kivaisan/fix_batterylevel_callback_v2
...
Lora: Fix battery_level callback
2018-05-14 10:45:03 -05:00
Cruz Monrreal
9923899a8e
Merge pull request #6883 from anttiylitokola/master
...
Update mbed-coap to version 4.4.3
2018-05-14 10:39:17 -05:00
Cruz Monrreal
506f9a8905
Merge pull request #6882 from kjbracey-arm/lwip-tcp-ooseq
...
lwIP: Enable TCP out-of-order processing
2018-05-14 10:36:08 -05:00
Juhani Puurula
8bede897e6
Merge commit '03edf998fa6142cb5e3d4c28154c9bdfea98105f'
...
* commit '03edf998fa6142cb5e3d4c28154c9bdfea98105f':
Squashed 'features/nanostack/coap-service/' changes from 36d36ce..1cb994e
2018-05-14 17:08:10 +03:00
Donatien Garnier
6c6af1b0d5
Added missing masks and fixed bit ordering in is_random_xx_address() functions
2018-05-14 13:59:32 +01:00
Donatien Garnier
d8b63fc03d
Reordered initializers in GenericGap
2018-05-14 13:53:50 +01:00
Donatien Garnier
67ec6323fc
Added update_random_address() implementation in GenericGap
2018-05-14 13:52:29 +01:00
Donatien Garnier
3523cdb264
Missing initializer in GenericGap
2018-05-14 13:37:37 +01:00
Donatien Garnier
472d3de849
Give GenericGap access to the Security Manager's PAL
2018-05-14 13:36:02 +01:00
Donatien Garnier
a3d9d6cebd
Business logic for handling non-resolvable private addresses
2018-05-14 13:26:39 +01:00
Bartek Szatkowski
38df9306d7
Update wsf_types.h to support updated CMSIS
2018-05-14 12:18:21 +01:00
Yossi Levy
789eb04617
Changed trng loop condition
2018-05-14 14:07:57 +03:00
Yossi Levy
73d1c8df93
Fix of error macros
2018-05-14 13:52:20 +03:00
Qinghao Shi
d48d3aff2b
fix a bug in greentea-client
...
reset "LastChar" after "tok_close" received
fix the bug where greentea-client require a character input between K-V pairs
2018-05-14 11:41:14 +01:00
Hasnain Virk
d270105fa8
LoRaWAN: Wrong type of message check
...
In the reception data path, we needed to check the MCPS CONFIRMATION type
not the MCPS INDICATION type. Indication message type is for downlink message type
which can be UNCONFIRMED even if we have sent a CONFIRMED one, e.g., an ACK.
2018-05-14 13:36:38 +03:00
Ron Eldor
adbfdc1149
Remove SW fallback for CCM
...
Remove SW fallback for CCM mode, and return
`MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE` when trying to set a key
which is not 128 bit size.
2018-05-14 13:15:57 +03:00
Ron Eldor
ccaef16f6a
Remove AES HW acceleration
...
Remove AES HW acceleration, as it is targeted future version
2018-05-14 13:15:57 +03:00
Ron Eldor
09d0d49efd
Remove extra `mbedtls_zeroize` call
...
REmove additional unneded call to `mbedtls_zeroize()` which was added after rebase
2018-05-14 13:15:57 +03:00
Ron Eldor
069c5964ae
Fix typo in Readme
...
Fix typo `DEBICE_CRYPTOCELL ` - > `DEVICE_CRYPTOCELL`
2018-05-14 13:15:57 +03:00
Ron Eldor
8f44cdff5d
Resolve issues raised after rebasing
...
Remove `cc_rand.h` and duplicate check in `mbedtls_ecdsa_sign()`,
that were inserted after rebasing.
2018-05-14 13:15:57 +03:00
Ron Eldor
2b2aa0f94d
Rephrase meaning of `MBEDTLS_CONFIG_HW_SUPPORT`
...
Rephrase the label, to make it more clearer.
2018-05-14 13:15:57 +03:00
Amanda Butler
e68815e02b
Copy edit changes to Readme.md
...
Copy edit changes, mostly for active voice and consistent tense.
2018-05-14 13:15:57 +03:00
Ron Eldor
f07ff36f47
Rephrase explanation on `cc_platform_setup()`
...
Rephrase the explanation on `cc_platform_setup()`, since previous
explanation wasn't coherent.
2018-05-14 13:15:57 +03:00
Ron Eldor
55e7690593
Refactor Readme after comment from Tech Writer
...
Rephrase usage guideline on `objects.h` and explain usage of every label
in `targets.json`
2018-05-14 13:15:57 +03:00
Amanda Butler
de2e4875fd
Copy edit Readme.md
...
Copy edit file, mostly for minor grammar nits.
2018-05-14 13:15:57 +03:00
Ron Eldor
7cdfd91bf8
Add guidelines for porting CC310 on Mbed OS
...
Add guidelines for porting CC310 on a new platform
2018-05-14 13:15:57 +03:00
Ron Eldor
245977f3c4
Rename libraries to pass CI library name check
...
Rename the CC libraries, with additional prefix "lib*".
Fixes CI failure
2018-05-14 13:15:57 +03:00
Ron Eldor
ca844fd47a
port CC to IAR
...
1. Add the compiled CC libraries for IAR toolchain
2. modify `ssi_pal_compiler.h` to support IAR
2018-05-14 13:15:57 +03:00
Ron Eldor
56df468a54
Alternative ECDSA and ECDH support
...
Add support for Alternative ECDSA and ECDH, on the higher level,
over CC310. Note that CC generates ECC keys according to FIPS 186,
while mbed TLS generates according to RFC 6979 and RFC 4754,
which causes test vectors for curve p521 to fail
2018-05-14 13:15:57 +03:00
Ron Eldor
19e2adf98d
HW Accelerated SHA1 and SHA256
...
Add Poritng for Sha1 and SHA256 over Cryptocell
2018-05-14 13:15:57 +03:00
Ron Eldor
fdf5587e29
Add CCM alternative implementation
...
Add CCM HW accelerated alternative implementation
2018-05-14 13:15:57 +03:00
Ron Eldor
b31aa03be9
Add the platfrom setup \ terminate support
...
Add support for Platfrom setup and termination for Cryptocell on Nrf52840
2018-05-14 13:15:57 +03:00
Ron Eldor
75087469f7
Add the Cryptocell library
...
Add the latest cryptocell library, and add support for CC310 lirary
on latest Mbed OS code
2018-05-14 13:15:27 +03:00
paul-szczepanek-arm
579cb5e222
avoid setting flags twice
2018-05-14 10:26:44 +01:00
paul-szczepanek-arm
f4f3a3c697
store ltk and csrk but not irk sent status
...
and missing asserts
2018-05-14 09:52:49 +01:00
Ari Parkkila
287a1a86d0
Cellular: AT handler review fixes
2018-05-14 10:25:00 +03:00
Ari Parkkila
3bdb6d1737
Cellular: Fixed ATHandler write poll timeout
2018-05-14 10:25:00 +03:00
Ari Parkkila
9b896a16bb
Cellular: ATHandler yield to wait review fixes
2018-05-14 10:25:00 +03:00
Ari Parkkila
559abd3009
Cellular: AT requests are to be processed within time period
2018-05-14 10:24:59 +03:00
Ari Parkkila
98ef516061
Cellular: Changed ATHandler yield to wait
2018-05-14 10:23:06 +03:00
paul-szczepanek-arm
a7f8d54761
more doxygen
2018-05-13 23:54:44 +01:00
paul-szczepanek-arm
d3524e2407
doxygen
2018-05-13 23:49:44 +01:00
paul-szczepanek-arm
8f90875cd6
reset entry now remove old keys
2018-05-13 23:49:27 +01:00
paul-szczepanek-arm
23c6a69d66
key dist flags only in db now and not in control block of sec manager
2018-05-13 23:26:34 +01:00
Donatien Garnier
69e35c49c8
Handle resolution policy for peripheral in GenericGap
2018-05-13 23:25:52 +01:00
paul-szczepanek-arm
ab117737fa
write back counter, sync entry by hand;e
2018-05-13 22:55:47 +01:00
Donatien Garnier
21471bb3c9
and make sure it compiles and that policy is only applied if privacy is enabled :)
2018-05-13 22:42:11 +01:00
Donatien Garnier
926efa4018
Filter out advertising reports for unresolved addresses if required
2018-05-13 22:37:59 +01:00
Donatien Garnier
6a2ffaeac0
Update own address type generation in GenericGap
2018-05-13 22:16:08 +01:00
Donatien Garnier
620ebc3f9a
Some fixes in GenericGap
2018-05-13 20:38:29 +01:00
Donatien Garnier
2509a88d58
Revert set_privacy() in Cordio GAP PAL impl
2018-05-13 20:37:14 +01:00
Donatien Garnier
1a623e6670
Added method to enable/disable privacy in GAP Pal with Cordio impl
2018-05-13 19:15:20 +01:00
Donatien Garnier
4c5e2a8094
Added method to update resolution settings in GenericGap
2018-05-13 19:14:56 +01:00
Donatien Garnier
cf03d40909
Doc fix in PalGap.h
2018-05-13 18:54:11 +01:00
Donatien Garnier
5734fca195
Added set_address_resolution method in GAP Pal with Cordio implementation
2018-05-13 18:53:23 +01:00
Donatien Garnier
7b4a813aca
Added stubs in GenericGap for privacy configuration methods
2018-05-13 18:52:54 +01:00
Donatien Garnier
e9ad148db0
Added privacy-related methods overrides in GenericGap
2018-05-13 17:57:27 +01:00
Donatien Garnier
33c46f5658
Remove LL resolving 'shorcut' when adding a device to resolving list - this should be controlled by the GAP layer
2018-05-13 17:49:00 +01:00
Cruz Monrreal
2104d8ab5b
Merge pull request #6711 from marcuschangarm/cleanup-nrf5x
...
Cleanup TARGET_NRF5 and TARGET_NRF5x
2018-05-11 19:15:05 -05:00
paul-szczepanek-arm
3af4d0b50f
get identity list function argument needs to have its own memory allocated
2018-05-11 19:52:12 +01:00
paul-szczepanek-arm
a63f38e767
moved logic to security db and left storage in memory and file dbs
...
db created at init now
2018-05-11 19:41:33 +01:00
Donatien Garnier
40b6813dcf
Fix wrong use of DmLlPrivEnabled()
2018-05-11 18:52:27 +01:00
Donatien Garnier
71bd30daf3
More inline doc
2018-05-11 18:37:02 +01:00
Donatien Garnier
bcfbeb7f1a
Some doc adjustments
2018-05-11 18:23:37 +01:00
Donatien Garnier
3ca3c2db2c
Initial implementation of the Security Manager's Privacy feature for Cordio
2018-05-11 18:20:39 +01:00
Antti Yli-Tokola
511df14eb0
Update mbed-coap to version 4.4.3
...
Fixes error: IOTCLT-2506 [GitHub] Cannot set registration time if server does not use max age option
Improvements; Extend blockwise message transfer status to have states for sending as well.
NOTE! These are internal changes required for cloud client. This has no direct relevance to any mbed-os functionality.
2018-05-11 17:14:09 +03:00
Kevin Bracey
ec2db62fe5
lwIP: Enable TCP out-of-order processing
...
Our config file for lwIP had TCP_QUEUE_OOSEQ disabled - this can
cause significant performance problems, as observed during testing.
One lost packet can lock an input stream into a mode where the
transmitter keeps thinking packets are being lost, so keeps slowing
down. This caused test failures - a transfer that would normally
take 10s hit a 60s timeout.
Turning this on increases code size, but doesn't significantly increase
static memory use. The memory used for out-of-order packets comes from
the same pbuf pool as for outgoing TCP segments, so there is contention
when running bidirectionally.
Out-of-order processing is on by default for lwIP - this seems to be
another example of us excessively paring it back.
2018-05-11 17:12:00 +03:00
paul-szczepanek-arm
678d494c5a
init _db pointer
2018-05-11 10:20:04 +01:00
paul-szczepanek-arm
afa4bdcf1a
pull common logic into secure db
2018-05-11 10:19:48 +01:00
Juhani Puurula
7c38f19745
Merge commit 'd6732a1b96814a2ea635b3d517f498127843a097'
...
* commit 'd6732a1b96814a2ea635b3d517f498127843a097':
Squashed 'features/frameworks/nanostack-libservice/' changes from 09056ed..ddd45db
2018-05-11 09:59:29 +03:00
Juhani Puurula
690a4c7f09
Merge commit '7a58eaec9d5f2aad89caf3cdb47346d2ff648492'
...
* commit '7a58eaec9d5f2aad89caf3cdb47346d2ff648492':
Squashed 'features/frameworks/mbed-trace/' changes from 6d3590f..6df2572
2018-05-11 09:55:48 +03:00
Juhani Puurula
f7fd0af47e
Merge commit '4cb7e03c7b39f446cfddc46385b00600e0e702f9'
...
* commit '4cb7e03c7b39f446cfddc46385b00600e0e702f9':
Squashed 'features/nanostack/coap-service/' changes from f40072f..36d36ce
2018-05-11 09:52:34 +03:00
Juhani Puurula
2f0bd6b6f6
Merge commit '8e546a301f0b93dab28e7b4454df97e5f9e83843'
...
* commit '8e546a301f0b93dab28e7b4454df97e5f9e83843':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 43c7ec2..82bbdcc
2018-05-11 09:52:10 +03:00
Kimmo Vaisanen
9915478645
Lora: Fix battery_level callback
...
Application can give battery_level callback method what Lora stack
uses to query battery level for DevStatusReq MAC command response.
The problem was that this callback was never called.
This commit fixes this problem and if application does not set
battery_level callback at all, value 255 (= The end-device was not able to
measure the battery level.) will be returned to lora gateway.
2018-05-11 09:50:24 +03:00
Krzysztof Stachowiak
4f9c6ba300
Update the version in the importing makefile
2018-05-10 17:49:33 +02:00
Vincent Coubard
40a403e99b
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into fix-encryption-rejection
2018-05-10 12:05:36 +01:00
paul-szczepanek-arm
473482d204
move securitydb into generic
2018-05-10 11:08:31 +01:00
Cruz Monrreal
c97a8fb216
Merge pull request #6817 from pan-/fix-crypto_toolbox_f4-parameter-types
...
GenericSecurityManager: Fix crypto_toolbox_f4 signature.
2018-05-09 11:33:27 -05:00
Cruz Monrreal
e33fb60c3d
Merge pull request #6849 from scartmell-arm/bug-critical-section-nordic
...
Add missing semicolon to NRF51 critical_section implementation
2018-05-09 11:33:10 -05:00
Krzysztof Stachowiak
5317e872db
Update Mbed TLS to version 2.9.0
2018-05-09 18:09:13 +02:00
Martin Kojtal
b5a8ace79a
Merge pull request #6808 from hasnainvirk/state_machine_work
...
LoRa: State machine work
2018-05-09 16:02:53 +01:00
paul-szczepanek-arm
b95da8d8c4
remove crypto when missing ECDH
2018-05-09 12:27:43 +01:00
Paul Szczepanek
fee986750d
fix case
2018-05-09 12:19:35 +01:00
Paul Szczepanek
b4d7bb6020
fix case
2018-05-09 12:19:27 +01:00
Paul Szczepanek
37b11d8ac5
fix case
2018-05-09 12:18:55 +01:00
Paul Szczepanek
367fe345ba
fix case
2018-05-09 12:18:42 +01:00
Paul Szczepanek
79b3bc4fce
fix case
2018-05-09 12:18:26 +01:00
paul-szczepanek-arm
b98ffa48da
fix uppercase X in nrf5x
2018-05-09 12:16:26 +01:00
paul-szczepanek-arm
6a26a8a6c8
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into security-manager-dev
2018-05-09 11:37:41 +01:00
paul-szczepanek-arm
c02b318436
fixed case in filename
2018-05-09 11:37:33 +01:00
Paul Szczepanek
2b02148ab6
Merge branch 'master' into security-manager-dev
2018-05-09 11:23:28 +01:00
paul-szczepanek-arm
b8fe37a00e
disable ECDH if the platform doesn't support it
...
otherwise you get linker errors
2018-05-09 11:01:10 +01:00
Steven Cartmell
1dfea4168f
Add missing semicolon to NRF51 critical_section implementation
2018-05-09 10:54:26 +01:00
Yossi Levy
9df32d1f00
Fix README.md grammar mistakes
2018-05-09 11:22:15 +03:00
Marcus Chang
1aebdcbee5
Reorganize TARGET_MCU_NRF51822_UNIFIED directories
...
The unified NRF51 target and feature BLE directories have been
reorganized to follow the naming and directory structure of the
NRF52 implementation.
This reorganization does not include TARGET_MCU_NRF51822 and
derived targets.
2018-05-08 10:10:01 -07:00
Paul Szczepanek
9a0a0865a6
Merge branch 'security-manager-dev' into sm-privacy-nordic
2018-05-08 18:01:41 +01:00
Paul Szczepanek
214656a9ee
fix case in #include
2018-05-08 17:56:38 +01:00
Paul Szczepanek
1a35f3e217
fixed case in name
2018-05-08 17:49:22 +01:00
Cruz Monrreal
adcd7ec002
Merge pull request #6742 from pan-/ble-update-cordio-porting-guide
...
BLE: Update cordio porting guide
2018-05-08 10:42:19 -05:00
Cruz Monrreal
5b5c8ddb4e
Merge pull request #6743 from pan-/ble-cordio-h4-conditionnal-to-fc
...
BLE: Conditional compilation of H4 driver
2018-05-08 10:41:58 -05:00
Cruz Monrreal
a5326ca047
Merge pull request #6814 from pan-/fix-discovery-termination
...
GenericGattClient: Fix discovery termination.
2018-05-08 10:41:34 -05:00
Yossi Levy
98e83c2262
Implementing KDF in Counter Mode for key derivation function. Moving device key to features
2018-05-08 16:59:05 +03:00
Hasnain Virk
be04a57ecf
Removing abort from rx in case of FL discrepency
...
If the frame length is not what we are expecting, it is
found to be a good practise to actually continue with what we
have received rather than aborting. As we have already demodulated
the packet and RX slots are used up, ther is not so much benefit in
dropping that packet.
2018-05-08 16:45:27 +03:00
Hasnain Virk
ac6fb71c90
Datarate bug fix in rx windows configs
...
While configuring RX parameters for the radio, we need to feed in
rx windows 1 and 2 parameters which are computed when we do the transmission.
We are actually setting the physical value of the data rate rather than
data rate table index and the expectation was to set the data rate index.
2018-05-08 16:45:26 +03:00
Hasnain Virk
cc09e44cfb
Moving msg flags to lorawan_types.h
...
Message flags are used in the application so the logical place for
them is in lorawan_types.h and not in lorawan_data_structures.h
2018-05-08 16:45:26 +03:00
Hasnain Virk
1a0d90555e
Doc fix
...
Structure naming in the docs was wrong.
2018-05-08 16:45:25 +03:00
Hasnain Virk
f63ed86cfc
Adding custom channel plan support in AS923
...
The asia pacific region supports custom channel planning and
downlink channel request. By virtue of a mistake, this information
was missing and hence a custom channel support was not working.
Fixes issue #6783 .
2018-05-08 16:45:25 +03:00
Hasnain Virk
9f36baab1b
State Machine rework
...
There had been essentially two state machines running in our stack
which was too cumbersome and was not alligned in any symmetry.
In this work we make sure that:
* There are no callbacks from the MAC layer to Stack controller layer.
* Primitives are made local to the mac layer and are presented as
read-only to the stack controller layer.
* Interrupt handling and processing is moved to the stack controller layer.
* Reception is divided into smaller units, seperating handling of Join Accept
and normal data frames. MIC gets its own unit.
* Extraction of data and MAC commands from the payload is also being done now in
its own method.
* To ensure integrity of the stack, and sanctity of the radio payload, we copy the
radio payload buffer immediately in the rx interrupt and hoist a flag that prevents
another interrupt from happening for a short while when we are processing the previous
packet.
* If an automatic uplink is on going, we do not send a TX_DONE event to application
anymore as that is logically incorrect.
* state_controller() is the central engine for the state machine. To save code space and
memory, we are not handling each and every state in the state_controller(). Some of the states
which have no processing to be done, are explicitely set.
* For all the states who need special processing, seperate methods are added.
* Class A always run to completion to IDLE and CLass C always runs to completion as RECEIVING.
2018-05-08 16:45:18 +03:00
Hasnain Virk
a75af9799e
Adding thread safety
...
Making our LoRaWAN stack thread safe. If RTOS is not present, locks
don't do anything. ScopedLock is used to automate the lock release on
context expiry.
2018-05-08 16:24:34 +03:00
Hasnain Virk
a331c4b59a
Immutable payload pointer in LoRaPHY
2018-05-08 16:24:34 +03:00
Hasnain Virk
73e433e4e5
Immutable payload pointer to LoRaMacCommand class
2018-05-08 16:24:34 +03:00
Hasnain Virk
0be41f0e69
Remove useless extraction
...
Channel plan datastructure already contains channel parameters.
Extraction is not needed.
2018-05-08 16:24:34 +03:00
Hasnain Virk
bec61cea27
Initializing band for default channels
...
We went through an exercise of adding band information to
any new channel being added. Default channels were looked over.
This commits duly adds missing band information to default channels.
2018-05-08 16:24:34 +03:00
Hasnain Virk
e5e8e79a7a
Immutable Payload from radio
...
Received data buffer from radio driver should be immutable.
2018-05-08 16:24:34 +03:00
David Saada
c3e39996b1
Implement FlashSimBlockDevice - flash simulated block device adaptor
2018-05-08 16:15:25 +03:00
Kimmo Vaisanen
d200600fc0
Lora: fix AU915 build
...
There was a typo in the code making it fail to compile.
2018-05-08 14:09:03 +03:00
Cruz Monrreal
11901f115b
Merge pull request #6800 from kivaisan/fix_loracrypto_asserts
...
Lora: Fix LoRaMacCrypto asserts
2018-05-07 19:34:56 -05:00
Cruz Monrreal
5038135c7d
Merge pull request #6577 from SeppoTakalo/remove_features
...
Get rid of FEATURE_COMMON_PAL and FEATURE_NANOSTACK
2018-05-07 10:44:50 -05:00
Cruz Monrreal
7a1ab1890b
Merge pull request #6792 from jarvte/cellular_dynamic_alloc_and_destr
...
Cellular: Add dynamic alloc and destruction to easycellular
2018-05-07 10:28:43 -05:00
Vincent Coubard
565921608e
Cordio: Improve cordio H4 driver.
...
Ommit H4 driver definition if serial flow control is not supported.
2018-05-04 16:36:05 +01:00
Vincent Coubard
34c9206054
BLE: update cordio porting guide.
...
Improve description of the requirements of the H4 driver.
2018-05-04 16:35:57 +01:00
Vincent Coubard
3f9186faa2
GenericSecurityManager: Fix crypto_toolbox_f4 signature.
...
The type exposed in the header file were not aligned to the one used in
the implementation: ble::public_key_t instead of ble::public_key_coord_t.
2018-05-04 12:11:34 +01:00
Vincent Coubard
fd5903c22d
GenericGattClient: Fix discovery termination.
...
The procedure should be terminated whenever the server returns an error not equal
to ATTRIBUTE_NOT_FOUND. The block was effectivelly terminated but the
procedure was not. As a result the discovery was operating on already
freed memory.
2018-05-04 11:30:58 +01:00
Martin Kojtal
f09ab67af2
Merge pull request #6740 from kivaisan/fix_max_tx_power
...
Lora: Fix max tx power check
2018-05-03 16:28:55 +01:00
Martin Kojtal
1a5a2f0134
Merge pull request #6774 from geky/littlefs-fix-trailing-dots
...
littlefs: Fix issue with trailing dots in file paths
2018-05-03 16:26:47 +01:00
Martin Kojtal
2729c7aa23
Merge pull request #6780 from bmcdonnell-ionx/fix-lwip-compiler-warning
...
resolve LWIP compiler warning
2018-05-03 16:24:31 +01:00
Kimmo Vaisanen
5384cd6b63
Lora: Fix LoRaMacCrypto asserts
...
If Lora stack is built with incorrect mbedtls settings, crypto methods
should assert and return error value. This fixes MBED_ASSERTs to
work correctly.
2018-05-03 13:04:03 +03:00
Teppo Järvelin
b22a16fe4a
Cellular: Added dynamic alloc and destruction to easycellular.
...
Now application can call connect and disconnect multiple times and resources are freed and constructed properly.
Also whole easycellular can be deleted and constructed again.
2018-05-03 12:47:47 +03:00
Vincent Coubard
b5e8d4eacb
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into fix-encryption-rejection
2018-05-03 09:26:36 +01:00
Martin Kojtal
16ab71864e
Merge pull request #6765 from mirelachirica/at_handler_read_fix
...
Cellular: Fix AT Handler compile warning
2018-05-03 07:41:23 +01:00
Vincent Coubard
0a59e00b23
Nordic BLE: Update GATT server security management
...
This patch refines permission applied to characteristic and descriptors; instead of a single level of permission , each characteristic receives a permission for the read operation, one for the write operation and another one for the update operation.
As a consequence, updates are not sent if the link does not cover the update permission requirement.
Descriptors also benefits individually from read and write permission.
2018-05-02 19:15:24 +01:00
Vincent Coubard
4f1e574eff
Cordio GattServer: Fix uses of designated initializer.
...
These are not legal in C++ code.
2018-05-02 18:14:54 +01:00
Vincent Coubard
7e043ead96
Nordic BLE: Add stub implementation of remove_peer_csrk in security manager.
2018-05-02 17:52:39 +01:00
Vincent Coubard
4e5639f5ca
BLE: Support encryption with secure connection key.
2018-05-02 17:51:48 +01:00
Donatien Garnier
ba0f18c9ab
Fix casing in MemorySecurityDb.h
2018-05-02 17:39:10 +01:00
Brendan McDonnell
33a2116042
reduce variable scope
2018-05-02 11:17:25 -04:00
Brendan McDonnell
ba29bd9315
use separate variable to resolve compiler warning
2018-05-02 09:33:24 -04:00
Vincent Coubard
f79eeb0173
Cordio: Update stack and pal to support LE security mode 2 level 2.
2018-05-02 14:32:38 +01:00
Vincent Coubard
01e3a004a6
Cordio: register server authorization callback.
2018-05-01 12:29:03 +01:00
Vincent Coubard
549a513dfb
Cordio: Enable client and server signing
2018-05-01 12:28:37 +01:00
Vincent Coubard
d0c4d7a8a3
Cordio: Forward server related events to CordioGattServer
2018-05-01 12:27:49 +01:00
Vincent Coubard
0f64b1c988
CordioGattServer: Global refactoring
...
The registration process has been breaked down into several functions that register the service attribute, characteristic declaration attributes, characteristic value attributes and characteristic descriptors.
Service registration now consider all characteristics permissions: read, write and update. Permissions are also considered when updates needs to be propagated to peers.
Handling of user authorization is also a change introduced by this refactoring.
2018-05-01 12:26:24 +01:00
Vincent Coubard
55eb7033b2
Generic Security Manager: Set csrk to stored when the peer csrk has been received.
2018-05-01 11:54:25 +01:00
Vincent Coubard
41a3442474
Generic Security Manager: Set ltk to stored when the peer ltk has been recveived.
2018-05-01 11:54:03 +01:00
Vincent Coubard
f90eacfd27
Generic Security Manager: remove peer csrk at disconnection
2018-05-01 11:53:18 +01:00
Vincent Coubard
1ac95e105b
ble - Generic Security Manager: set signing unconditionnal to role reversal.
...
A peripheral can act as a GATT client whether it is in the peripheral role or the central role therefore it doesn't make sense to enable signing only if roles will be reversed latter.
2018-05-01 11:50:59 +01:00
Vincent Coubard
9880db7543
Generic Security Manager: Improve formating
2018-05-01 11:48:22 +01:00
Vincent Coubard
2e3c7e8ab7
Generic Security Manager: Set LinkKey to false unconditionally.
...
This key distribution flags is for dual mode devices; mbed does not support BR/EDR.
2018-05-01 11:45:24 +01:00
Vincent Coubard
e39bb4b92c
BLE - GenericGattClient: Exploit ENCRYPTED_WITH_SC_AND_MITM encryption.
...
IF link is encrypted, authenticated or authenticated with lesc then signed write must be transformed into regular write commands.
2018-05-01 11:38:30 +01:00
Vincent Coubard
2da6fa3947
Cordio PAL security manager: Copy locally own CSRK
...
The stack does not copy csrk when DmSecSetLocalCsrk is invoked; it just retains a pointer to it. Therefore a copy is kept inside the pal.
2018-05-01 11:35:16 +01:00
Vincent Coubard
e4813f4fe9
Cordio PAL Security Manager: Copy locally own IRK.
...
The IRK needs to be stored somewhere as it is not copied inside the stack, the stack just keeps a reference to it.
2018-05-01 11:33:36 +01:00
Vincent Coubard
2924bb4c86
Cordio PAL ATT Client: initialize the local sign counter to 0.
2018-05-01 11:29:45 +01:00
Vincent Coubard
74bc214961
BLE - Security Manager PAL: Add a function to remove the peer csrk.
...
If the the upper layer has registered a peer csrk on the pal security manager then it must remove it once the connection is closed.
This API allows the upper layer to remove the peer csrk registered earlier.
2018-05-01 11:27:38 +01:00
Vincent Coubard
1e277bad50
BLE: Lookup for non identity addresses when a secure entry is opened.
...
A peer may not share a valid IRK and identity address during pairing (in that case the identity address received is all zeros). When this happens, the entry must be retrieved by looking at the address used by the peer during the connection.
2018-05-01 11:24:44 +01:00
Vincent Coubard
c4b78ada0e
BLE: Set default mac address to 00:00:00:00:00:00
...
Both mac addresses are invalid but the bluetooth specification prefers to use all 0 addresses to represent an invalid address.
2018-05-01 11:17:47 +01:00
Vincent Coubard
80941af0f6
BLE: Add : LESC authenticated encryption to the list of possible link encryption.
2018-05-01 11:16:41 +01:00
Cruz Monrreal
4e66f218fd
Merge pull request #6700 from geky/mbr-add-partition-asserts
...
mbr: Added assertions for overlapping partitions
2018-04-30 11:59:44 -05:00
Cruz Monrreal
46379d8438
Merge pull request #6741 from kivaisan/refactor_maccommand
...
Lora: Split add_mac_command() into separate methods
2018-04-30 11:58:33 -05:00
Cruz Monrreal
4ca512d755
Merge pull request #6750 from hasnainvirk/mem_corruption_fix
...
LoRaWAN: Memory corruption due to band mishandling
2018-04-30 11:43:39 -05:00
Mirela Chirica
d4d339129a
Cellular: Refactor hex reading to prevent illegal cast
2018-04-30 13:25:15 +03:00
Christopher Haster
b56bdf18cd
littlefs: Fixed issue with trailing dots in file paths
...
Paths such as the following were causing issues:
/tea/hottea/.
/tea/hottea/..
Unfortunately the existing structure for path lookup didn't make it very
easy to introduce proper handling in this case without duplicating the
entire skip logic for paths. So the lfs_dir_find function had to be
restructured a bit.
One odd side-effect of this is that now lfs_dir_find includes the
initial fetch operation. This kinda breaks the fetch -> op pattern of
the dir functions, but does come with a nice code size reduction.
2018-04-30 03:42:53 -05:00
Seppo Takalo
f69531e82f
Move EFR32 RF driver to TARGET_Silicon_Labs/TARGET_SL_RAIL
...
This folder structure is identical to where the target code
is found from targets directory.
2018-04-27 14:38:44 +03:00
Seppo Takalo
f0bf771502
Get rid of FEATURE_NANOSTACK
...
Allow FEATURE_NANOSTACK still to be defined in the build so
that we don't break any builds.
2018-04-27 14:38:44 +03:00
Seppo Takalo
d1c6bc0913
Get rid of FEATURE_COMMON_PAL
...
Nanostack related files moved under 'feature/nanostack'
Common libraries moved to 'features/frameworks'
Allow FEATURE_COMMON_PAL still to be defined in the build so
that we don't break any builds.
2018-04-27 14:38:43 +03:00
Mirela Chirica
a0cc22ebba
Cellular: Fix AT Handler compile warning
2018-04-27 14:38:14 +03:00
Cruz Monrreal
380973aa9a
Merge pull request #6691 from mirelachirica/cellular_fixes
...
Cellular fixes
2018-04-26 20:19:58 -05:00
Cruz Monrreal
a19a528b65
Merge pull request #6745 from SeppoTakalo/mesh_docs
...
Clarify mesh configuration values.
2018-04-26 20:16:40 -05:00
Vincent Coubard
db565d38b3
BLE: remove useless flags in GattCharacteristic.
2018-04-26 19:00:43 +01:00
Vincent Coubard
486a3e020c
BLE: Add fine grained security to GattCharacteristic.
...
This patch adds independent management of security requirement for read, write and update operatiosn of a GattCharacteristic.
Requirements are defined after ble::att_security_requirement_t that maps LE security mode 1 and LE security mode 2.
The functions requireSecurity and getRequiredSecurity are deprecated as SecurityManager::ScurityMode_t does not map well with LE security modes.
2018-04-26 18:55:42 +01:00
Vincent Coubard
1c18351885
BLE: Remove unwanted documentation block of GattCharacteristic.
2018-04-26 17:29:29 +01:00
Vincent Coubard
9258b9ddb6
BLE: Add security requement support into GattAttribute.
2018-04-26 17:26:15 +01:00
Vincent Coubard
7afd01d84d
BLE: Add type describing ATT security requirements.
2018-04-26 17:22:21 +01:00
Vincent Coubard
27d36ba820
BLE: Add missing relational operator to SafeEnum.
2018-04-26 17:07:54 +01:00
Hasnain Virk
a6a1cee988
LoRaWAN: Memory corruption due to band mishandling
...
band_t structure in phy parameters was not being filled in properly
and we were spilling over the array boundary for bands.
In addition to that two utility functions are added to perform safety
checking taking in the frequency and filling out band information plus
boundry value checks.
2018-04-26 13:23:47 +03:00
Seppo Takalo
b60454fac5
Clarify mesh configuration values.
...
Most of the help fields were correct. Just add field specifying
acceptable ranges.
2018-04-25 15:33:40 +03:00
Martin Kojtal
5ee2658dae
Merge pull request #6701 from SiliconLabs/feature/update-rail
...
Update to EFR32 15.4 driver
2018-04-25 13:17:33 +01:00
Vincent Coubard
2c8b9ab3dc
BLE: Remove example section from cordio porting guide.
...
This section is not applicable in the public version of mbed-os.
2018-04-25 12:15:28 +01:00
Mirela Chirica
c0629c8d11
Cellular: Remove unnecessary NULL assignment
2018-04-25 14:09:20 +03:00
Mirela Chirica
042586938d
Cellular: Common routine for string and hexstring reading
2018-04-25 14:09:20 +03:00
Mirela Chirica
b48238997d
Cellular: BC95 update max packet size
2018-04-25 14:09:19 +03:00
Mirela Chirica
1998173ede
Cellular: Added read hex string support to AT handler
2018-04-25 14:09:19 +03:00
Mirela Chirica
928082b64b
Cellular: Fix greentea sendto test to clear socket event flags
2018-04-25 14:09:19 +03:00
Mirela Chirica
7e684cd789
Cellular: Destructor added for CellularList
2018-04-25 14:09:19 +03:00
Mirela Chirica
658358cbf1
Cellular: BG96 remove IPv6 stack support
2018-04-25 14:09:19 +03:00
Vincent Coubard
6bb80317f8
BLE: Update cordio porting guide
...
Remove the section "Include prebuilt libraries" as it is not applicable
anymore.
2018-04-25 11:48:23 +01:00
Kimmo Vaisanen
e9eb32b3ab
Lora: Fix max tx power check
...
In LoRa TX power value 0 means the maximum allowed TX power and values >0
are limiting the allowed TX power to lower.
tx_config was incorrectly checking the power level and causing the maximum
TX power to be always used. Lora gateway can request node to use lower TX
power with LinkAdrReq MAC command.
2018-04-25 11:59:19 +03:00
Martin Kojtal
d768b6f468
Merge pull request #6677 from jarvte/cellular_fsm_crash_bug
...
Cellular: fixed null pointer bug in cellular fsm
2018-04-25 08:24:49 +01:00
Kimmo Vaisanen
e7f01e3ccc
Lora: Split add_mac_command() into separate methods
...
In order to have smaller and better testable methods, instead of having a big
switch-case -style add_mac_command(), each MAC command is now separated to an
own method.
2018-04-25 08:42:02 +03:00
Cruz Monrreal
4c973e3aa0
Merge pull request #6702 from AriParkkila/single-stack
...
Cellular: Fix to prefer IPv6 single stack with fallback to IPv4
2018-04-24 12:16:34 -05:00
Cruz Monrreal
0e86fa2529
Merge pull request #6692 from kivaisan/remove_singleton
...
Lora: Remove singleton pattern
2018-04-24 12:14:05 -05:00
Cruz Monrreal
35bd8b9de1
Merge pull request #6682 from jarvte/fix_cellular_unittests
...
Fixed cellular unittests
2018-04-23 10:57:50 -05:00
Ari Parkkila
b37532addf
Cellular: Fix to prefer IPv6 single stack with fallback to IPv4
2018-04-23 09:57:23 +03:00
Steven Cooreman
c0ee42a6e7
Update to EFR32 15.4 driver
...
* Updates driver library to v2.3.1 (2018q1) for bugfixes and convenience functions
* Provides library in correct format (2-byte wchar_t flag) for compiling with ARMCC (#6695 uncovered by #6577 )
* Reverts to using a statically-allocated packet buffer since malloc is not thread-safe (and the asserts have been turned on)
2018-04-22 23:23:02 -05:00
Christopher Haster
a97a47978a
mbr: Added assertions for overlapping partitions
2018-04-22 08:28:06 -05:00
Vincent Coubard
b0d5ba33bb
BLE: return an error when application tries to turn down encryption.
2018-04-20 15:49:14 +01:00
Vincent Coubard
6a90232b6b
BLE: Update cordio stack binaries.
...
The new build contains a fix related to permission verification of
characteristic that requires signed write.
2018-04-20 14:57:14 +01:00
Kimmo Vaisanen
2b2ce300ea
Lora: Remove singleton construction of LoRaWANStack
...
After changing LoRaMacCrypto as C++ class, we no longer have static variables
in LoRa implementation. Therefore singleton pattern can be removed.
2018-04-20 16:01:55 +03:00
Kimmo Vaisanen
b933cc6aeb
Lora: Change LoRaCrypto to a C++ class
...
In order to get rid of static variables, LoRaCrypto functionality is now
in a C++ class.
2018-04-20 16:01:49 +03:00
Vincent Coubard
cbb33ea938
BLE: Add comments to GenericSecurityManager::on_identity_list_retrieved.
2018-04-20 10:22:56 +01:00
Vincent Coubard
0b92397840
BLE: Fix flag IRK stored in Memory security DB.
2018-04-20 10:22:13 +01:00
paul-szczepanek-arm
d1f3e4fd27
don't require master sends keys for signing key
2018-04-20 09:33:54 +01:00
Donatien Garnier
f9b371fc0f
Handle required BLE5 softdevice commands
2018-04-19 09:40:41 -07:00
Donatien Garnier
aeab2ecbbf
Fix potential race condition in nRF5xn.cpp
2018-04-19 09:40:41 -07:00
Marcus Chang
97426d63e9
NRF52 BLE: Fix GCC C++11 include error
...
Change <memory> include to <new>
From: d001fb1c66
2018-04-19 09:40:41 -07:00
Donatien Garnier
64baf717e8
Upgrade NRF52 BLE API to version 5
...
* Add NRF_SD_BLE_API_VERSION=5 macro to MCU_NRF52832 target
* Added initial Softdevice v5 API support for nRF5XPalGattClient.cpp
* Added initial Softdevice v5 API support for nRF5xGap.h
* Added initial Softdevice v5 API support for nRF5xGattServer.cpp
* Make sure the ah() hash function used by the security manager is declared with C linkage
* Removed 'ARM porting pending' checks in Nordic SDK
* Added BLE configuration to mbed_lib.json for NRF52x targets
* Migrated APIs and events model for Nordic SDK14.2 & SD API v5 in btle.cpp; adopted polling dispatch model
* Migrated APIs and events model for Nordic SDK14.2 & SD API v5 in nRF5xn.cpp
* Migrated APIs and events model for Nordic SDK14.2 & SD API v5 in nRF5xGap.cpp
* Added const qualifier to hwCallbacks's p_ble_evt parameter in nRF5xGattServer
* Add workaround to enable Radio Notification module from Nordic SDK
* Disabled SWI1 interrupt manually from SWI driver module
* Added missing include directive for "nrf_nvic.h" in ble_radio_notification.c
* Set correct number of custom UUIDs
* Adjust Softdevice RAM requirements for NRF52832/S132
* RAM settings for the application were adjusted as follow:
* Start: 0x20003800
* Size: 0xC800
* Adjust Softdevice RAM requirements for NRF52840/S140
* RAM settings for the application were adjusted as follow:
* Start: 0x20003700 (was 0x20003000)
* Size: 0xC900
* Added 3dBm as a permitted TX Power value for NRF52832
* Fix address type recovery in GAP
* Return min non-connectable adv interval compatible with infrastrcture's expectations
* Moved BLE driver from TARGET_SDK_14_2/FEATURE_BLE to TARGET_SDK_14_2/TARGET_SOFTDEVICE_COMMON/ble
2018-04-19 09:40:41 -07:00
Martin Kojtal
951e70f36f
Merge pull request #6604 from geky/lfs-fix-lookahead-trust
...
littlefs: Fix some issues with lookahead trust
2018-04-19 17:27:19 +02:00
Martin Kojtal
13913c7301
Merge pull request #6628 from kivaisan/mlme_indication_and_auto_uplink_config
...
Lora: Make automatic uplink message configurable
2018-04-19 17:25:33 +02:00
Martin Kojtal
7f98f5b796
Merge pull request #6652 from jarvte/update_doxygen_for_deprecated_apis
...
Cellular: Updated doxygen for deprecated API's.
2018-04-19 17:23:53 +02:00
Martin Kojtal
a37ba4b3ab
Merge pull request #6614 from pauluap/compiler_warning_macro_expression
...
Macro expansion leads to a bare expression
2018-04-19 17:22:52 +02:00
Teppo Järvelin
6a2eefba9c
Cellular: fixed null pointer bug.
...
Null pointer could have been called after stop() in cellular state machine.
2018-04-19 14:30:33 +03:00
Martin Kojtal
cbb10335b4
Merge pull request #6663 from kjbracey-arm/nshal-static-removal
...
Use SingletonPtr in Nanostack HAL
2018-04-19 12:43:08 +02:00
Teppo Järvelin
025e0dfc49
Cellular: moved one function in cellularnetwork to public as it was accidently set as protected.
2018-04-19 13:40:33 +03:00
Teppo Järvelin
5ebdb439af
Cellular: fixed cellular unit tests and one bug which was found while fixing.
2018-04-19 13:35:53 +03:00
Martin Kojtal
9cc4302c51
Merge pull request #6629 from jarvte/add_select_plmn_to_cellularfsm
...
Cellular: add plmn for CellularConnectionFSM
2018-04-19 12:07:20 +02:00
Martin Kojtal
15cac12f7e
Merge pull request #6660 from marcuschangarm/fix-greentea
...
Enable flow control in Greentea
2018-04-19 09:25:31 +02:00
Martin Kojtal
c0f0a8e61f
Merge pull request #6653 from kjbracey-arm/lwip-ticks
...
Stop lwIP using us_ticker
2018-04-18 14:17:54 +02:00
Paul Szczepanek
a99a4b8593
Merge pull request #33 from pan-/fix-cordio-addresses-type
...
BLE: Handle new addresses type in GenericGap.
2018-04-18 11:34:13 +01:00
Teppo Järvelin
55f4360680
Cellular: review fixes to cellularfsm and cellularnetwork.
2018-04-18 12:35:38 +03:00
Kevin Bracey
123c182033
Use SingletonPtr in Nanostack HAL
...
Avoid static data/code overhead when Nanostack HAL isn't in use.
Preparation for removal of FEATURE_COMMON_PAL.
2018-04-18 10:40:56 +03:00
Kimmo Vaisanen
d336ceeee8
Lora: Make automatic uplink message configurable
...
Currently lora stack will automatically send an empty uplink message to lora gateway in case of:
- Node received message with pending bit set.
- Node received MAC command which requires instant response (sticky MAC command)
- Node received confirmed message in class C mode
This commit makes this configurable via config item
"automatic-uplink-message": {
"help": "In case of pending bit, class c confirmed message or sticky MAC command, stack will automatically send empty uplink message",
"value": true
}
Default value is true. If sending an empty message fails, stack will send event AUTOMATIC_UPLINK_ERROR application.
If automatic uplink sending is disabled, stack will send application UPLINK_REQUIRED -event to indicate
application should issue a new uplink to gateway as soon as possible.
2018-04-18 09:29:20 +03:00
Marcus Chang
595a98b313
Enable flow control in Greentea
...
Flow control is enabled in Greentea for targets that has
console-uart-flow-control set.
2018-04-17 14:16:31 -07:00
Amanda Butler
a83745bcdd
Copy edit UARTCellularInterface.h
...
Copy edit file for grammar.
2018-04-17 11:51:24 -05:00
Amanda Butler
8389bbfc61
Copy edit PPPCellularInterface.h
...
Copy edit file for grammar.
2018-04-17 11:49:20 -05:00
Amanda Butler
0f8a2c75e7
Copy edit OnboardCellularInterface.h
...
Copy edit file for grammar.
2018-04-17 11:44:28 -05:00
Amanda Butler
5835d83efa
Copy edit CellularInterface.h
...
Copy edit for grammar.
2018-04-17 11:41:59 -05:00
Vincent Coubard
169e579de7
BLE: Handle new addresses type in GenericGap.
2018-04-17 17:05:41 +01:00
Cruz Monrreal
853384a5ca
Merge pull request #6627 from TeroJaasko/nanostack_hal_timer_shortcut
...
Nanostack hal timer shortcut
2018-04-17 10:55:26 -05:00
Cruz Monrreal
4522405d06
Merge pull request #6588 from hasnainvirk/base_structs
...
[IOTCELL-741] Separating public data structures
2018-04-17 10:54:45 -05:00
Cruz Monrreal
259f9fd877
Merge pull request #6570 from jarvte/add_cellular_detach
...
Cellular: add detach from the network
2018-04-17 10:54:09 -05:00
paul-szczepanek-arm
f56f57bf15
reorder enum to add new values at the end
2018-04-17 16:25:35 +01:00
Vincent Coubard
951a6be4c8
BLE: retrieve and fill resolving list at GenericSecurityManager startup.
2018-04-17 15:58:21 +01:00
Vincent Coubard
ede3d43743
BLE: Add function to querry the list of identity addresses present in the SecureDB.
2018-04-17 15:57:30 +01:00
Vincent Coubard
77b1903634
BLE: Add bonded device to resolving list at the end of bonding.
2018-04-17 14:16:35 +01:00
Vincent Coubard
ae8d5b4de1
BLE: Implement identity retrieval in secure DB.
2018-04-17 14:15:28 +01:00
Vincent Coubard
f905d2a4d4
BLE: Improve DB entry lookup.
...
The DB entry lookup now looks at the identity address and/or connection address to find a DB entry associated to an address.
If the entry has not been found in the DB and a new entry is returned then the connection address is not stored for private addresses.
2018-04-17 14:14:53 +01:00
Vincent Coubard
a3bb18d724
BLE: store identity address type in DB.
2018-04-17 14:11:05 +01:00
Vincent Coubard
06e0aa3440
BLE: flag that irk has been stored in the security entry.
2018-04-17 14:10:19 +01:00
Vincent Coubard
6fc74fbc44
BLE: Fix MemorySecurityDB constructor warning.
2018-04-17 14:09:00 +01:00
Vincent Coubard
15fa3bfd37
BLE: Add a function to retrieve a device identity.
2018-04-17 14:08:01 +01:00
Vincent Coubard
e8041510a6
BLE: Add a flag that indicate if the identity address is public or not.
2018-04-17 14:07:19 +01:00
Vincent Coubard
ab6821aab8
BLE: Add a flag indicating if irk is stored in the distribution flags.
2018-04-17 14:06:47 +01:00
Vincent Coubard
9643b57159
BLE: Remove flag SecurityDistributionFlags_t::local_address_is_public
...
This flag was not used and not useful.
2018-04-17 14:06:00 +01:00
Vincent Coubard
dfbf383614
BLE: Fix const correctness of ::Gap::getRandomAddressType
2018-04-17 14:03:57 +01:00
Vincent Coubard
51e1c76b4a
BLE: Set default mac address to all 00.
2018-04-17 14:03:20 +01:00
Kevin Bracey
e7206cdc8e
Stop lwIP using us_ticker
...
lwIP was using us_ticker unnecessarily, complicating the code and
potentially causing grief with power saving, and possible glitches
on timer wrap. Switch it to use the RTOS tick count.
2018-04-17 12:40:04 +03:00
Teppo Järvelin
3b1c8c0a94
Cellular: Updated doxygen for deprecated API's.
2018-04-17 12:30:16 +03:00
Teppo Järvelin
1990f63382
Cellular: fixed state machine after rebase.
2018-04-17 10:24:19 +03:00
Teppo Järvelin
e78e1d28db
Cellular: check plmn against network to verify correct network and don't try to register again if we are are already in correct nw.
2018-04-17 10:16:32 +03:00
Teppo Järvelin
e4c37f2275
Cellular: plmn used when registering can be given for CellularConnectionFSM.
2018-04-17 10:16:32 +03:00
Vincent Coubard
b3c871c960
BLE: Implement privacy on Nordic targets.
2018-04-16 18:18:05 +01:00
Vincent Coubard
2a9d80c5f0
BLE: Change nRF5xSecurityManager::resolve_address signature
...
Return the resolving list entry instead of accepting in parameters.
2018-04-16 18:18:04 +01:00
Vincent Coubard
a18283d897
BLE: change nRF5xSecurityManager::get_resolving_list return
...
It now returns a resolving list entry.
2018-04-16 18:18:04 +01:00
Vincent Coubard
fb680db621
BLE: Implement resolving list in Nordic PAL security manager
2018-04-16 18:18:04 +01:00
Vincent Coubard
365f3d2527
BLE: Add ah in Nordic CryptoToolbox.
2018-04-16 18:18:04 +01:00
Vincent Coubard
a7f2384e10
BLE: Add default privacy configuration
2018-04-16 18:18:04 +01:00
Cruz Monrreal
e2567e5dad
Merge pull request #6599 from jeromecoutant/PR_WARNING
...
STM32 compilation warning issues
2018-04-16 10:41:36 -05:00
Cruz Monrreal
c867934178
Merge pull request #6613 from pauluap/compiler_warning_macro_expansion_constant_boolean
...
Macro expansion results in a constant boolean expression
2018-04-16 10:35:27 -05:00
Cruz Monrreal
7188c8a4b8
Merge pull request #6620 from jarvte/cellular_fixing_at_unit_tests
...
Cellular: fixed athandler unit tests.
2018-04-16 10:34:58 -05:00
Cruz Monrreal
7f9e69d491
Merge pull request #6632 from TeemuKultala/error_messages
...
cellular: Error messages
2018-04-16 10:34:04 -05:00
paul-szczepanek-arm
9a9167602d
moved init code into non-const for clarity
2018-04-16 15:58:03 +01:00
paul-szczepanek-arm
12899b1e09
fix const induced recursive call
2018-04-16 15:34:15 +01:00
paul-szczepanek-arm
6b67a6d0a6
missing deref after signature change
2018-04-16 15:06:37 +01:00
Teemu Kultala
0caef1b8a4
cellular: trace errors only if tracing enabled
2018-04-16 09:15:32 +03:00
Cruz Monrreal
df47efc4ca
Merge pull request #6626 from jarvte/activate_pdp_context_state_to_cellularconnectionfsm
...
Cellular: Separated context activation in CellularConnectionFSM.
2018-04-13 18:51:50 -05:00
Cruz Monrreal
a2899367d7
Merge pull request #6618 from anttiylitokola/master
...
Update mbed-coap to version 4.4.2
2018-04-13 18:39:08 -05:00
Cruz Monrreal
4343253533
Merge pull request #6600 from hasnainvirk/fix_au915
...
[IOTCELL] Setting up channels for AU915
2018-04-13 10:47:21 -05:00
Paul Thompson
8e7615087a
Switch to using ip_addr_isany_val
2018-04-13 05:08:29 -07:00
Tero Jääskö
a23b7cffea
nanostack-hal: eventloop: silence compiler warning for unused variable
...
Compiler reminded that a variable declaration was left behind when
the code using it was put behind #ifdef. Add the missing #ifdef.
Warning being fixed:
---8<---8<----
[Warning] ns_event_loop.c@44,0: #177-D: variable "event_thread_id"
was declared but never referenced
2018-04-13 13:49:22 +03:00
Tero Jääskö
b710f08b3a
nanostack-hal: timer: conditionalize the use of high pri event thread
...
nanostack-hal.critical-section-usable-from-interrupt -tunable was
previously added to optionally make critical section code interrupt safe.
The IRQ safe critical section is a prequisite for interrupt safe timer
callbacks.
The same flag can be used to enable calling of the timer callbacks
directly from the timer interrupt context, without bouncing them via
event thread. This removes the code and RAM consumed by EventQueue
and the thread serving the high priority events.
If the system does not have any dependencies on mbed_shared_queues,
by setting this flag the static RAM usage is now further reduced
by ~1600 bytes and code size by 4KB.
Note: the default behavior is not changed, one needs to override the
"nanostack-hal.critical-section-usable-from-interrupt" to have "true".
2018-04-13 13:49:15 +03:00
Teemu Kultala
c597d8447c
cellular: sim pin setting
2018-04-13 12:33:43 +03:00
Hasnain Virk
c34b5e6d6f
[IOTCELL-741] Separating public data structures
...
Any data structure used in LoRaWANBase class should be available
in a separate header in order to make the code easy to port and
easy to read as the developer doesn't need to know about all the
internal data structures being used in Mbed LoRaWAN stack.
2018-04-13 10:41:06 +03:00
Teemu Kultala
7b6208c0db
cellular: error message changes
2018-04-13 09:01:57 +03:00
Teppo Järvelin
94ecc4567b
Cellular: Separated context activation in CellularConnectionSFM.
2018-04-13 08:28:18 +03:00
Cruz Monrreal
68ebbb0637
Merge pull request #6569 from kivaisan/LORAWAN_FEATURE_BRANCH
...
Lora: small fixes
2018-04-12 18:43:01 -05:00
Cruz Monrreal
94103f9306
Merge pull request #6586 from kivaisan/new_receive_method
...
Lora: Introduce new receive API which returns port and flags
2018-04-12 18:32:12 -05:00
Cruz Monrreal
e1a63f9046
Merge pull request #6587 from AnttiKauppila/include_fix
...
LoRa: Internal include paths corrected
2018-04-12 18:31:28 -05:00
Cruz Monrreal
7f671960e8
Merge pull request #6595 from OpenNuvoton/nuvoton_fix_nvstore
...
Fix typo with NVStore
2018-04-12 18:31:02 -05:00
Paul Thompson
449541c464
Explicitly ignore return value or bare expression (macro expands to a number)
...
Compile: lwip_stack.c
In file included from ../features/FEATURE_LWIP/lwip-interface/lwip_stack.c:41:0:
../features/FEATURE_LWIP/lwip-interface/lwip_stack.c: In function 'mbed_lwip_bringup_2':
../features/FEATURE_LWIP/lwip-interface/ppp_lwip.h:58:44: warning: statement with no effect [-Wunused-value]
#define ppp_lwip_disconnect() ERR_IF
^
../features/FEATURE_LWIP/lwip-interface/lwip_stack.c:858:21: note: in expansion of macro 'ppp_lwip_disconnect'
ppp_lwip_disconnect();
^~~~~~~~~~~~~~~~~~~
../features/FEATURE_LWIP/lwip-interface/ppp_lwip.h:58:44: warning: statement with no effect [-Wunused-value]
#define ppp_lwip_disconnect() ERR_IF
^
../features/FEATURE_LWIP/lwip-interface/lwip_stack.c:875:21: note: in expansion of macro 'ppp_lwip_disconnect'
ppp_lwip_disconnect();
^~~~~~~~~~~~~~~~~~~
2018-04-12 09:45:25 -07:00
Paul Szczepanek
d8f5100822
Merge pull request #30 from pan-/sm-privacy
...
BLE: Add Gap privacy interfaces.
2018-04-12 14:59:27 +01:00
Teppo Järvelin
6533c98983
Cellular: fixed athandler unit tests.
2018-04-12 16:20:40 +03:00
Teppo Järvelin
0b5fae3670
Cellular: added deprecation note for parameter timeout in set_attach.
2018-04-12 13:37:49 +03:00
Teppo Järvelin
9b0b92bb1c
Cellular: added detach from the network.
2018-04-12 13:37:49 +03:00
Vincent Coubard
90c85955ad
BLE: Fix GAP privacy related signatures.
2018-04-12 11:04:44 +01:00
Vincent Coubard
2811e00868
BLE: Fix Gap privacy related documentation
2018-04-12 10:37:13 +01:00
jeromecoutant
2d0dce1db5
STM32F7 : correct compilation warnings
2018-04-12 10:55:02 +02:00
jeromecoutant
2fcf8d8990
STM32F4 : correct compilation warnings
2018-04-12 10:52:21 +02:00
jeromecoutant
4e9e9f5c62
STM32F2 : correct compilation warnings
2018-04-12 10:51:18 +02:00
Antti Yli-Tokola
1feb700267
Update mbed-coap to version 4.4.2
...
Contains one error fix:
IOTCLT-2469 CoAP UDP retransmission does not work for blocks after first one for requests (Eg. registration POST)
NOTE! These are internal changes required for cloud client. This has no direct relevance to any mbed-os functionality.
2018-04-12 10:04:50 +03:00
Christopher Haster
9e03b24120
littlefs: Fixed lookahead overflow and removed unbounded lookahead pointers
...
As pointed out by davidefer, the lookahead pointer modular arithmetic
does not work around integer overflow when the pointer size is not a
multiple of the block count.
To avoid overflow problems, the easy solution is to stop trying to
work around integer overflows and keep the lookahead offset inside the
block device. To make this work, the ack was modified into a resetable
counter that is decremented every block allocation.
As a plus, quite a bit of the allocation logic ended up simplified.
2018-04-11 22:34:40 -05:00
Christopher Haster
47bee2343c
littlefs: Fixed issue with lookahead trusting old lookahead blocks
...
One of the big simplifications in littlefs's implementation is the
complete lack of tracking free blocks, allowing operations to simply
drop blocks that are no longer in use.
However, this means the lookahead buffer can easily contain outdated
blocks that were previously deleted. This is usually fine, as littlefs
will rescan the storage if it can't find a free block in the lookahead
buffer, but after changes that caused littlefs to more conservatively
respect the alloc acks (e611cf5), any scanned blocks after an ack would
be incorrectly trusted.
The fix is to eagerly scan ahead in the lookahead when we allocate so
that alloc acks are better able to discredit old lookahead blocks. Since
usually alloc acks are tightly coupled to allocations of one or two blocks,
this allows littlefs to properly rescan every set of allocations.
This may still be a concern if there is a long series of worn out
blocks, but in the worst case littlefs will conservatively avoid using
blocks it's not sure about.
Found by davidefer
2018-04-11 14:41:01 -05:00
Paul Szczepanek
9be8837f77
Merge pull request #29 from paul-szczepanek-arm/no-sign-when-encrypted
...
check encryption before signing
2018-04-11 15:51:02 +01:00
Vincent Coubard
8643fd55ed
BLE: Add stub for signing API in Nordic pal security manager.
2018-04-11 14:22:51 +01:00
Vincent Coubard
1f02913a2c
BLE: Add Gap privacy interfaces.
...
This commit adds API to enable and configure the device privacy.
It deprecates address random types present in Gap::AddressType as these types are not appropriate for scan reports, connection initiation and the connection event. Now user should use the function Gap::getRandomAddressType to find the type of a random address.
The function gap::setAddress is deprecated as it is not portable and can colide with privacy.
2018-04-11 14:18:42 +01:00
Hasnain Virk
ec34796fd5
[IOTCELL] Setting up channels for AU915
...
Bug was reported by @tpet93 and it was correctly diagnosed that channels
were not being set in the phy_params structure. This commit fixes the bug
and sets up channels correctly.
2018-04-11 15:41:22 +03:00
paul-szczepanek-arm
1e6455da0b
check encryption before signing
2018-04-11 13:37:04 +01:00
Yossi Levy
a8febd57a1
Device key implementation
2018-04-11 15:35:00 +03:00
paul-szczepanek-arm
3aaedf6f48
fixed missed function rename
2018-04-11 12:34:57 +01:00
Teppo Järvelin
9c185d9b63
Cellular: Fixing to skip greentea test if sim pin is not configured.
2018-04-11 09:38:13 +03:00
Teppo Järvelin
b3226acbbf
Cellular: Fixed rebase error.
2018-04-11 09:38:13 +03:00
Teppo Järvelin
f7f21dc377
Cellular: review fixes and fixed unit tests.
2018-04-11 09:38:13 +03:00
Teppo Järvelin
12e1f07150
modified at timeout while doing attach and connect as it might take up to one minute and at timeout was 10s.
2018-04-11 09:38:13 +03:00
Teppo Järvelin
31428533ba
Fixed missing doxygen param.
2018-04-11 09:38:13 +03:00
Mirela Chirica
9531bbeaf5
BC95 fixes
2018-04-11 09:38:13 +03:00
Teppo Järvelin
c036b6698d
Doxygen fixes for copy-paste errors.
2018-04-11 09:38:13 +03:00
Ari Parkkila
d828959b87
Cellular: Greentea test timeouts increased
2018-04-11 09:38:13 +03:00
Teppo Järvelin
dcdb7a5da2
Fixed state machine to accept roaming as valid registration.
2018-04-11 09:38:13 +03:00
Teppo Järvelin
c82fd31735
Removed double attach from EasyCellularConnection.
2018-04-11 09:38:13 +03:00
Ari Parkkila
8c019e6c83
Cellular: Remove excessive destructor declaration to fix compile error
2018-04-11 09:38:13 +03:00
Ari Parkkila
d7cabe2183
Cellular Greentea tests fixed
2018-04-11 09:38:13 +03:00
ccli8
d52b502fea
Fix typo with NVStore
2018-04-11 14:34:54 +08:00
Teppo Järvelin
ac9b882049
Fixed bug in state machine registaring phase.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
6f3eebcd36
Fixed possible crash and removed trace from greentea.
2018-04-11 09:31:44 +03:00
Ari Parkkila
ea9869e330
Cellular: Greentea tests for UDP socket
2018-04-11 09:31:44 +03:00
Teppo Järvelin
f6a0403c82
Fixed build by removing unnecessary include.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
af2890da03
Improved registration phase in state machine.
2018-04-11 09:31:44 +03:00
Ari Parkkila
6072407ec9
Cellular: async FSM updates
2018-04-11 09:31:44 +03:00
Teppo Järvelin
84b445f51c
Fixed coverity warnings for class ATHandler and removed unnecessary assert from state machine.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
54ab974846
Fixed coverity warnings for targets folder. Also fixed one bug while copying sim.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
fa61f094db
Fixed coverity warning for class CellularUtil.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
12b0bc4a36
Fixed coverity warnings for AT_CellularStack.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
af0de8ece0
Fixed coverity warnings for class AT_CellularDevice.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
0ebfa35d7b
Fixed coverity warnings for class CellularConnectionFSM
2018-04-11 09:31:44 +03:00
Teppo Järvelin
f6be35c0f2
Fixed coverity warnings for AT_CellularSMS.cpp
2018-04-11 09:31:44 +03:00
Teppo Järvelin
89843246ac
Separated context activation from connect, increased stack size to 2048 to avoid stack underflows and changed connection callback call.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
f0026e4c48
review fixed and some minor improvements.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
b400d18a0c
Wait for modem ready signal in startup sequence.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
231458dc36
Picked Ari's changed to reduce stack size. Removed device info printing from state machine.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
d1f2e91e93
Working version of async registration.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
2b14a9ee5f
temp
2018-04-11 09:31:44 +03:00
Teppo Järvelin
702efc1de5
Temp commit, not compiling...
2018-04-11 09:31:44 +03:00
Teppo Järvelin
c26311b071
async works. Retry logic needs refining.
2018-04-11 09:31:44 +03:00
Teppo Järvelin
83ea9be5f5
temp commit while changing work...
2018-04-11 09:31:44 +03:00
Teppo Järvelin
1661fc2744
Modified state machine, added cellular state and callback.
2018-04-11 09:31:44 +03:00
Cruz Monrreal
1c6d485da0
Merge pull request #6572 from TeemuKultala/at_send_wait
...
cellular: ATHandler send delay
2018-04-10 17:58:00 -05:00
Paul Szczepanek
6c900642e5
Merge pull request #28 from paul-szczepanek-arm/signing-counter
...
sign counter added
2018-04-10 17:06:14 +01:00
paul-szczepanek-arm
1ba920a338
missing init
2018-04-10 16:47:29 +01:00
paul-szczepanek-arm
70067105d6
class in header
2018-04-10 16:42:43 +01:00
paul-szczepanek-arm
a2484b63b0
Signing event monitor proxy to bind both server and client
2018-04-10 14:58:29 +01:00
Martin Kojtal
495ae06c70
Merge pull request #6509 from k-stachowiak/nvseed-check
...
Add an NV_SEED test to the config adjustment script
2018-04-10 14:38:47 +02:00
Antti Kauppila
67157fc3bd
LoRa: Internal include paths corrected
2018-04-10 14:04:18 +03:00
Kimmo Vaisanen
19883f12f8
Lora: Introduce new receive API which returns port and flags
...
This is a fix for issue #6389 .
Currently when application receives RX_DONE event from stack, it has to provide the correct port
value to receive method in order to read the received message. The problem is that current
API does not provide any way to know in to which port message was received.
This commit introduces a new receive() method, which instead of checking these values, will return
them to application.
2018-04-10 13:04:23 +03:00
Kimmo Vaisanen
01fd8804df
Fix Coverity warning
...
Fixed Coverity warning "stored value is overwritten before it can be used".
2018-04-10 10:19:03 +03:00
Kimmo Vaisanen
10c269bcfa
Add some debug traces
2018-04-10 10:19:03 +03:00
Kimmo Vaisanen
f6decc0131
Initialize mcps_indication status
...
_mcps_indication.status is not initialized properly and it can cause incorrect
status value to be returned.
2018-04-10 10:13:40 +03:00
paul-szczepanek-arm
4fff20583d
sign counter kept track by the class using it
2018-04-09 17:49:54 +01:00
paul-szczepanek-arm
deeb0ea7e0
redundant store for sign counter
2018-04-09 15:11:26 +01:00
paul-szczepanek-arm
637dcb9bc8
missing *
2018-04-09 15:10:25 +01:00
paul-szczepanek-arm
55d3423a5e
typedef uint32_t
2018-04-09 13:35:17 +01:00
Kevin Bracey
96610a6aed
LoRa: Improved region macro handling
2018-04-09 15:22:48 +03:00
paul-szczepanek-arm
be912ded5b
normalised the getters const insanity
2018-04-09 12:14:52 +01:00
Teemu Kultala
328919c852
cellular: doxygen correction
2018-04-09 14:09:44 +03:00
Teemu Kultala
d7960620b6
cellular: ATHandler send delay
2018-04-09 13:46:40 +03:00
Antti Kauppila
1a86bb3604
Removed default values from internal functions
...
- Also removed useless else from loraphy_target.h
2018-04-09 13:30:08 +03:00
Antti Kauppila
db167af3c1
LoRa: Fixed doxygen error, enabled commented out code
2018-04-09 11:48:03 +03:00
Antti Kauppila
fa062fff76
LoRa: Moved connect logic from LoRaWANStack to LoRaMac class
...
- Internal change only
2018-04-09 11:10:40 +03:00
Antti Kauppila
1310392d1b
LoRa: Removed unneeded function and cleaned up some code
2018-04-09 11:10:40 +03:00
Antti Kauppila
d1bbd21e01
LoRa: Improved handling of region selection
...
- This implements IOTCELL-697
- This touches API, but does not break it, old ones still work in a same manner!
2018-04-09 11:10:40 +03:00
Vincent Coubard
f53a0e4906
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into sc-nordic
2018-04-09 09:09:01 +01:00
Martin Kojtal
65ac615d2d
Merge pull request #6557 from AnttiKauppila/IOTCELL-754
...
LoRa: Fixed cflist decoding issue
2018-04-06 16:40:18 +02:00
Martin Kojtal
f5385e7a14
Merge pull request #6524 from forGGe/fix_address_parsing_
...
Fix IPv4 address parsing due to not-so-portable scanf modifier
2018-04-06 12:26:37 +02:00
Martin Kojtal
f331ac34c4
Merge pull request #6402 from u-blox/cellular_test_target
...
Renaming Ublox library for mbed cellular framework
2018-04-06 12:19:58 +02:00
Antti Kauppila
6ef331b9db
LoRa: Fixed cflist decoding issue
...
- This fixes defect IOTCELL-754
2018-04-06 12:54:01 +03:00
Martin Kojtal
02d4631c13
Merge pull request #6528 from anttiylitokola/mbed_coap_4.4.1
...
Update mbed-coap to version 4.4.1
2018-04-06 10:05:39 +02:00
paul-szczepanek-arm
57149b69e4
monitor for signing events and set local counter
2018-04-04 19:24:00 +01:00
paul-szczepanek-arm
1d74dfa1f9
redundant funcs removed
2018-04-04 18:02:16 +01:00
Vincent Coubard
dcff810457
BLE: replace byte_array_t::buffer with byte_array_t::data
2018-04-04 17:20:08 +01:00
paul-szczepanek-arm
acfc5b218d
set cordio csrk and counter
2018-04-04 17:16:34 +01:00
paul-szczepanek-arm
2e1c5fc123
completely redundant
2018-04-04 17:16:16 +01:00
Cruz Monrreal
75cb4d7512
Merge pull request #6411 from AnttiKauppila/stack_refactoring
...
Stack refactoring
2018-04-04 10:26:55 -05:00
paul-szczepanek-arm
539a11ee31
sign counter added
2018-04-04 15:59:10 +01:00
Vincent Coubard
17b3e26429
BLE: remove trace in Nordic PAL security manager
2018-04-04 15:42:47 +01:00
Vincent Coubard
04ab07ff16
BLE: Add documentation to CryptoToolbox.
2018-04-04 15:41:20 +01:00
Vincent Coubard
59a301a256
BLE: CryptoToolbox enhancement
...
- Rename LescCrypto into CryptoToolbox
- Use ArrayView of fixed size as parameters
- Add licence
2018-04-04 15:31:31 +01:00
Vincent Coubard
cd39406d20
BLE: Add conversion function from byte_array_t to ArrayView.
2018-04-04 15:28:52 +01:00
Vincent Coubard
5761caff00
BLE: Extend ArrayView to encode size in type.
...
With this change, it is possible to encode the size of the array viewed by an ArrayView into the type itself: ArrayView<T, Size>. Such objects are lighter than ArrayView of arbitrary size and allows verification of the size at compile time.
This change also fix operator== and bring new make_ArrayView overloads.
2018-04-04 15:28:17 +01:00
Vincent Coubard
9e1f0b34f8
BLE: Fix byte_array_t subscript operator
2018-04-04 15:22:15 +01:00
Vincent Coubard
d8f3d9c5ef
BLE: provide non const overload of byte_array_t::data member function.
2018-04-04 15:21:54 +01:00
Vincent Coubard
bf41bb3164
BLE: Export byte_array_t size exploitable at compile time.
2018-04-04 15:21:05 +01:00
Vincent Coubard
7bf0eb009a
BLE: use ArrayView to pass and get parameters in Crypto API
...
This change allow vendor pal code to use its own array format.
2018-04-04 11:04:13 +01:00
paul-szczepanek-arm
cbf80e9da5
typos, style and other review fixes
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
c1e2e07241
missing line from commit
...
(github client fail)
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
15c06acfe4
style fix
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
dfdfcfb25e
style fix
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
e276478d58
only bother reacting to verification failures if we want to use signing
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
f5fee68f99
fixed naming for sig failure count
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
9283413c4c
count failures, trigger reparing when verification fails
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
780d8a4375
let the stack know whether csrk is authenticated
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
511135f31c
signing only for the slave, unless keys requested to be sent by master
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
8d966dbe8c
invalid mic event
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
5ae9cc3b53
set peer csrk on pal
2018-04-03 15:41:43 +01:00
Paul Szczepanek
381b99bc61
Merge pull request #25 from paul-szczepanek-arm/oob-gen
...
generate oob at will and without passing in connection handle
2018-04-03 15:30:21 +01:00
paul-szczepanek-arm
576796b289
reset OOB on use
2018-04-03 15:29:26 +01:00
paul-szczepanek-arm
26b047549c
extra comments for api
2018-04-03 15:17:15 +01:00
paul-szczepanek-arm
0a494a0bbc
all_zeros now free functions
2018-04-03 14:47:27 +01:00
paul-szczepanek-arm
ba5b0f30d2
added comments about address for oob generation
2018-04-03 13:54:29 +01:00
Antti Kauppila
10ad173091
LoRa: Small fixes
...
- changed few static variables to have const
2018-04-03 14:58:01 +03:00
paul-szczepanek-arm
3c1a5a4a56
incorrect retval usage fixed
2018-04-03 12:16:49 +01:00
Antti Yli-Tokola
8fdae13642
Update mbed-coap to version 4.4.1
...
- Fixes error: IOTCLT-2539 Block wise messaging call-backs not working logically
- Allow TCP+TLS transport method to send larger messages without blockwising.
NOTE! These are internal changes required for cloud client. This has no direct relevance to any mbed-os functionality.
2018-04-03 13:58:40 +03:00
Max Payne
bd47110554
Fix IPv4 address parsing due to not-so-portable scanf modifier
...
Bug is raised when using newlib-based toolchains.
%hh format is only avaliable in scanf if newlib is compiled
with _WANT_IO_C99_FORMATS option.
2018-04-02 23:33:21 +03:00
Marcus Chang
791e42eefe
Inrease thread stack size to 1024 bytes in NVStore test for NRF52
2018-03-30 11:32:55 -07:00
Jimmy Brisson
2429d5e042
Merge pull request #6494 from donatieng/securitydb_fix_casing
...
[BLE] Fixed inconsistent casing issue for SecurityDb
2018-03-29 12:00:36 -05:00
Jimmy Brisson
64df0ddee8
Merge pull request #6408 from davidsaada/david_erase_size_addr
...
Add overloaded get_erase_size API with address parameter to BlockDevice
2018-03-29 11:59:28 -05:00
Vincent Coubard
3272863f83
BLE Nordic: Support LESC.
2018-03-29 17:24:46 +01:00
Vincent Coubard
f0e18fa007
BLE: Add LESC crypto toolbox for Nordic.
2018-03-29 17:23:54 +01:00
Vincent Coubard
3218e79805
BLE: Fix reference to security manager in Nordic event handler.
2018-03-29 17:23:24 +01:00
Vincent Coubard
95cd37b491
BLE: Add const overload for byte_array_t subscribt operator.
2018-03-29 17:22:48 +01:00
Krzysztof Stachowiak
ebb28b32af
Move the new check into the end of the previous line
2018-03-29 15:07:29 +02:00
Krzysztof Stachowiak
717573f44e
Add an NV_SEED test to the config adjustment script
2018-03-29 11:53:50 +02:00
Donatien Garnier
8b66c4bd28
[BLE] Fixed inconsistent casing issue for SecurityDb
2018-03-28 10:44:09 +01:00
paul-szczepanek-arm
aa90f0df65
rely solely on random vlalue to know if already calculating
...
simplify by setting a fake random value at the start so that first run is the same as subsequent runs
2018-03-27 12:25:50 +01:00
Bilal
c376e501aa
Moving deprecated warnings outside the class
2018-03-27 12:55:38 +05:00
Cruz Monrreal
062164eaad
Merge pull request #6452 from ARMmbed/revert-6086-gatt-client-unit-tests
...
Revert "BLE: Gatt client unit tests"
2018-03-26 14:33:52 -05:00
Cruz Monrreal
26737580ce
Merge pull request #6313 from SeppoTakalo/doxygen
...
Add missing Doxygen descriptions for Nanostack
2018-03-26 14:28:51 -05:00
Cruz Monrreal
57b48f6e05
Merge pull request #6416 from kjbracey-arm/lwip_netconntype_fix
...
lwIP: fix some IPv6 errors, eg TCP keepalive
2018-03-26 14:27:09 -05:00
paul-szczepanek-arm
c542650734
removed unused param from call
2018-03-26 18:07:29 +01:00
paul-szczepanek-arm
e1885486fa
only generate oob if using oob
2018-03-26 18:00:05 +01:00
paul-szczepanek-arm
d1b4713ae6
removed redundancy
2018-03-26 17:53:40 +01:00
paul-szczepanek-arm
02ba2848a8
avoid recalculating oob fi already calculating
2018-03-26 17:48:32 +01:00
Vincent Coubard
87c2045f5e
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into sc-nordic
2018-03-26 17:12:37 +01:00
Vincent Coubard
db20ecbbde
Merge branch 'security-manager-dev' into oob-gen
2018-03-26 16:49:55 +01:00
Vincent Coubard
3579653533
Cordio: Implement missing functions for secure connection
2018-03-26 15:48:59 +01:00
Bilal
c07ef92470
Adding deprecated warnings for old name
2018-03-26 19:34:42 +05:00
mudassar-ublox
eb806b681d
Renaming Ublox library for mbed cellular framework
...
(cherry picked from commit 737609736591d12ea369d5b364d132e7a6367ae2)
2018-03-26 17:08:23 +05:00
Martin Kojtal
afeb3066c3
Revert "BLE: Gatt client unit tests"
2018-03-26 11:51:29 +01:00
paul-szczepanek-arm
98efb9da06
generate oob at will and without passing in connection handle
2018-03-23 18:31:27 +00:00
Cruz Monrreal
6dc0c9d6c3
Merge pull request #6388 from davidsaada/david_nvstore_set_alloc_key
...
NVStore: key management enhancements
2018-03-23 11:03:53 -05:00
Cruz Monrreal
387027dddb
Merge pull request #6086 from pan-/gatt-client-unit-tests
...
BLE: Gatt client unit tests
2018-03-23 10:56:09 -05:00
Vincent Coubard
b859907481
Cordio: remove generate_public_key from the security manager.
2018-03-23 12:06:08 +00:00
Vincent Coubard
0a710e5331
BLE: Initialize the pal in GenericSecurityManager
2018-03-23 12:06:08 +00:00
Vincent Coubard
e25d5c9aa3
BLE: qualification of SecurityManager types
2018-03-23 12:06:08 +00:00
Paul Szczepanek
d7595803d0
Merge pull request #23 from paul-szczepanek-arm/legacy-oob
...
allow preloading legacy oob, generate tk
2018-03-23 10:48:11 +00:00
David Saada
a6048005d7
Add overloaded get_erase_size API with address parameter to all block devices
2018-03-23 00:34:45 +02:00
paul-szczepanek-arm
6833c79fb3
don't request encrypt when pending
2018-03-22 17:54:13 +00:00
paul-szczepanek-arm
81cb1f9c83
enable encryption for slave request added
2018-03-22 17:11:15 +00:00
paul-szczepanek-arm
350924129f
fix the attempt oob flag if we receive oob
2018-03-22 12:32:01 +00:00
paul-szczepanek-arm
2b2d9a2453
reset pending state when attempt ends, added comments
2018-03-22 12:23:37 +00:00
paul-szczepanek-arm
c848c79a5b
avoid code redundancy
2018-03-22 12:10:21 +00:00
paul-szczepanek-arm
909f9513cf
allow preloading legacy oob, generate tk
2018-03-22 12:01:34 +00:00
Kimmo Vaisanen
c1983570b4
Fix compilance test compilation
...
Fix compilation of compilance test and at the same time refactor compliance
test handler. Renamed mcps_request as test_request as it is only used for
compliance test. Also fixed a bug with null buffer in send_compliance_test_frame_to_mac.
2018-03-21 14:39:18 +02:00
Seppo Takalo
fbea6f15e2
Add missing Doxygen descriptions for Nanostack
...
Fix couple of parameter issues as well.
2018-03-21 14:15:28 +02:00
Kevin Bracey
b3eb51acef
lwIP: fix some IPv6 errors, eg TCP keepalive
...
Glue code was inspecting lwIP's netconn "type", checking directly for
NETCONN_UDP and NETCONN_TCP.
Unfortunately the type byte has some flag bits like
"IPv6", which means the tests fail if it's an IPv6 socket. So, for
example, TCP socket options were rejected for IPv6.
Add the necessary NETCONNTYPE_GROUP macros to fix this.
2018-03-21 13:40:25 +02:00
Antti Kauppila
cbdeb7dc4b
LoRa: Added API break warnings for lorawan_channelplan_t struct and it's components
2018-03-21 08:54:42 +02:00
Antti Kauppila
dc98228139
LoRa: Struct cleanups
...
- Unneeded structs removed and replaced by variables in functions
2018-03-21 08:54:42 +02:00
Antti Kauppila
489eecf7df
LoRa: LoRaMAC class refactored
...
- Internal change only, no functional changes
- Tested by running Green tea tests manually
2018-03-21 08:54:42 +02:00
Antti Kauppila
6b54478af4
LoRaWANStack is made independent of MAC sublayers
...
- Only internal changes, no API has been broke.
- Tested by manually running Green tea tests
2018-03-21 08:54:42 +02:00
Antti Kauppila
b63c98e103
LoRa: LoRaPHY dependency removed from LoRaMacStack
...
- This is internal change, no functionality has been changed
- LoRaWanInterface cleaned up and code moved to LoRaMacStack
- Compliance code in LoRaMacStack moved to EOF
- Green tea tests have been run manually
- Doxygen updated accordingly
LoRA: reorder class members
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
fe225a8430
Remove redundant event from timer callbacks
...
Since our timers are now already using events, we no longer need to
defer timer callback calls.
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
c6eee4fd98
Simplify check for pending bit
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
32075b91b5
Fix reception of class C messages
...
- Do not put radio into sleep when message is received in class c mode
- Experimental feature for acknowledging confirmed downlink messages
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
a26fca8bf5
Add set_device_class API to change active device class
...
This API can be used to runtime change device class.
Please note that only class A and C are supported at the moment.
Trying to set class B will return LORAWAN_STATUS_UNSUPPORTED.
Fix set_device_class documentation
fix documentation
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
4aba3434f4
Change minimum required channels from 6 to 2 (US915Hybrid)
...
https://github.com/Lora-net/LoRaMac-node/issues/362
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
65b2dbc7dc
Update DevStatusAnd format
...
In the DevStatusAns format, the protocol requires RFU(7:6) value = 0
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
e1fff2e738
Update handling for functions OnRadioRxError and OnRadioRxTimout.
...
This is especially important for class c devices.
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
6c165e0f19
Changed mcps confirmation ul_frequency to channel
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
e097429b69
Remove unused is_fPort_allowed method
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
a9e1076572
Bug fix in RX timeout and RX error handling for class c nodes.
...
1. Do not stop the 2nd window timer, as it is not running.
2. Wait for the OnAckTimeout event, before setting MacDone
3. Process for class c also the 2nd window timeout part, as we do
not have a 2nd window timer.
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
591bc7da1f
Add the possibility to set the default antenna gain.
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
256a3a5842
Fix calculation of the aggregated time-off.
...
Perform only an assignment.
https://github.com/Lora-net/LoRaMac-node/issues/282
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
c1ea418ac4
Fix rx slot handling
...
Store the rx slot temporarily. When in class C, this variable will be changed
in function OpenContinuousRx2Window.
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
fc1696b74f
Do only set the MacDone if the MAC is not in class c
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
6114f2b3d5
Fix an issue with sequence calls.
...
This issue is only present for a device in class c mode, which
has perform unconfirmed uplinks.
https://github.com/Lora-net/LoRaMac-node/issues/327
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
e206c1ee54
Changed RegionNextChannel function in order to return LoRaMacStatus_t instead of a boolean
...
Removed the while loop checking the return value from set_next_channel
(GitHub Issue https://github.com/Lora-net/LoRaMac-node/issues/357 )
The new return values are:
LORAWAN_STATUS_OK : A channel has been found.
LORAWAN_STATUS_NO_FREE_CHANNEL_FOUND : No free channel has been found (AS923 and KR920 regions)
LORAWAN_STATUS_DUTYCYCLE_RESTRICTED : No channel found due to the duty-cycle or JoinReq back-off restrictions. Trial must be delayed.
LORAWAN_STATUS_NO_CHANNEL_FOUND : No channel has been found. Re-enabled the default channels.
2018-03-21 08:54:42 +02:00
Kimmo Vaisanen
339306ed1b
Ensure DR_6 cannot be selected for IN865 region
2018-03-21 08:54:42 +02:00
Antti Kauppila
a294aa028d
LoRa: LoRaWANInterface refactored.
...
- Only internal changes, no functionality changes
- Some minor improvements to LoRaWanStack
2018-03-21 08:54:42 +02:00
Cruz Monrreal
53cb6e06f9
Merge pull request #6279 from AnttiKauppila/master
...
LoRa refactoring
2018-03-20 17:28:38 -05:00
Cruz Monrreal
f3e2a3dd4b
Merge pull request #6357 from anttiylitokola/master
...
Update mbed-coap to version 4.4.0
2018-03-20 15:01:00 -05:00
Cruz Monrreal
0b7a9a9f3d
Merge pull request #6333 from mikaleppanen/lwip_tcp_flag_corr
...
Corrected lwip adaptation TCP flagging
2018-03-20 14:35:43 -05:00
Cruz Monrreal
7ab4b064e5
Merge pull request #6338 from geky/fix-littlefs-dir-chain
...
littlefs: Fix issue updating dir struct when extended dir chain
2018-03-20 14:33:26 -05:00
Cruz Monrreal
53adeed521
Merge pull request #6350 from u-blox/cellular_test
...
Cellular: update attach test
2018-03-20 14:27:02 -05:00
Cruz Monrreal
a3d8c8fe16
Merge pull request #6363 from deepikabhavnani/seek_fix
...
dir seek fixed - dptr was not updated before checking
2018-03-20 14:21:49 -05:00
Cruz Monrreal
7b2ee2d52f
Merge pull request #6291 from mirelachirica/bc95_echotest_fixes
...
Cellular: BC95 echo test fixes
2018-03-20 14:06:06 -05:00
David Saada
b7bb29a301
NVStore: key management enhancements
...
- Define an enum for predefined keys (later filled by internal users of NVStore)
- Add the set_alloc_key API, allocating a free key from the non predefined keys
2018-03-19 12:00:47 +02:00
Cruz Monrreal
7c30faf69d
Merge pull request #6264 from jarvte/master
...
Deprecated warnings for feature/netsocket/cellular
2018-03-16 13:32:09 -05:00
Cruz Monrreal
0a1fc956ec
Merge pull request #6359 from davidsaada/david_sotp_cpp
...
NVStore: add comments in header file for Doxygen formatting sake.
2018-03-16 11:34:40 -05:00
Antti Kauppila
32257858d0
Added missing mac_cmd_buf_idx_to_repeat to LoRaMacCommand class
...
- Reordered LoRaWANStack internal variables for more compact code
2018-03-16 18:00:02 +02:00
Antti Kauppila
488cf03d1e
LoRA: Code cleanup + doxygen updates
...
- Internal changes only
- reset function is created to LoRaPHY to reset LoRaMAC parameters with default values
- Doxygen updates for newly created functions
2018-03-16 18:00:02 +02:00
Antti Kauppila
2ac73a6cac
LoRa: LoRaMacMcps refactored to remove dependency to LoRaMac.
...
- This is internal logic only and there are no functionality changes
- Some compliance test stuff have been moved to end of files
- Some internal data structures removed as useless after refactor
2018-03-16 18:00:02 +02:00
Antti Kauppila
37371df968
LoRa: reset_mac_parameters put to correct place
2018-03-16 18:00:02 +02:00
Antti Kauppila
d232d3bb52
LoRa: Removed LoRaMac dependency from MIB and MLME classes
...
- Internal refactoring only, no functional changes
2018-03-16 18:00:02 +02:00
Antti Kauppila
d1cdd77290
LoRa: get_phy_params() refactored
...
- get_phy_params function was very heavy weight and needed to be refactored.
- switch-case clauses have been refactored to be functions now and the complexity of the usage has been improved a lot.
- There are no functional changes, this is internal only change
2018-03-16 18:00:02 +02:00
Antti Kauppila
3c7bd1b794
LoRa: LoRaMac need removed from LoRaMacCommand class
...
- LoRaMacCommand does not have any external dependencies anymore
- Also LoRaMacMlme is not using LoRaMacCommand anymore
2018-03-16 17:58:44 +02:00
paul-szczepanek-arm
66867d4dd3
oob stored in generic and handed over to pal when requested
2018-03-16 14:48:04 +00:00
Cruz Monrreal
92bbdbb60a
Merge pull request #6329 from TeemuKultala/callback_changes
...
Cellular: add callback API
2018-03-15 11:04:17 -05:00
Cruz Monrreal
0ae3580781
Merge pull request #6345 from jarvte/cellular_sms_unit_test_fix
...
Cellular: Fixed sms unit tests.
2018-03-15 10:58:16 -05:00
Cruz Monrreal
abb74e8cbc
Merge pull request #6092 from kjbracey-arm/mesh-help
...
mbed-mesh-api: add JSON help
2018-03-15 10:57:02 -05:00
Cruz Monrreal
9cac3b2f6b
Merge pull request #6149 from bmcdonnell-ionx/typos
...
Fix typos in the files
2018-03-15 10:53:03 -05:00
Cruz Monrreal
38e0d3b842
Merge pull request #6300 from kivaisan/master
...
Fixes to LoRa PHY
2018-03-15 10:42:43 -05:00
Cruz Monrreal
eff0cc2c06
Merge pull request #6314 from jarvte/improve_athandler_write
...
Cellular: ATHandler write improvements.
2018-03-15 10:39:56 -05:00
Vincent Coubard
5e8630dcc6
BLE Nordic: Complete implementation of pal security manager
2018-03-15 11:24:31 +00:00
Vincent Coubard
1638902341
BLE: Whitespace fix
2018-03-15 09:34:41 +00:00
Vincent Coubard
761beafeb3
BLE: Complete nRF5xGap initialization list
2018-03-15 09:34:21 +00:00
Vincent Coubard
288abf5287
BLE: Add nRF5x constructor
2018-03-15 09:33:25 +00:00
Vincent Coubard
c3fd90430a
BLE: Fix references to ConnectionEventMonitor::EventHandler
2018-03-15 09:32:58 +00:00
Mudassar Hussain
91333d2892
Removed strncmp
2018-03-15 10:41:00 +05:00
Deepika
351aaa8acd
dir seek fixed - dptr was not updated before checking
2018-03-14 14:40:08 -05:00
David Saada
f20c54e275
NVStore: add comments in header file for Doxygen formatting sake.
2018-03-14 18:15:13 +02:00
Antti Yli-Tokola
2e3651c2f7
Update mbed-coap to version 4.4.0
...
Make sn_coap_protocol_send_rst as public needed for CoAP ping sending
Allow disabling resendings by defining SN_COAP_DISABLE_RESENDINGS
2018-03-14 15:34:15 +02:00
Mudassar Hussain
3bee060942
Cellular: update attach test
2018-03-13 20:49:31 +05:00
Teppo Järvelin
53455c5528
Fixed correct includes so that compile log is not polluted.
2018-03-13 16:23:15 +02:00
Teppo Järvelin
cacdbd1550
Cellular: Fixed sms unit tests.
2018-03-13 13:52:05 +02:00
Teppo Järvelin
16e8b77474
PR review findings, updated deprecated comments.
2018-03-13 13:15:29 +02:00
Antti Kauppila
783d0c58f5
MBED_DEPRECATED_SINCE taken into use
2018-03-13 13:15:29 +02:00
Teppo Järvelin
7fd6b71337
Moved APN_db.h under new cellular.
2018-03-13 13:15:29 +02:00
Teppo Järvelin
bee31ad1b3
Added deprecation notes to old cellular interfaces.
2018-03-13 13:15:29 +02:00
Martin Kojtal
fe2e4a3680
Merge pull request #6290 from AriParkkila/fix_cellular_unit_tests
...
Cellular tests: fix power mgmt stub
2018-03-13 09:53:36 +01:00
Mika Leppänen
af29734dd0
Corrected lwip adaptation TCP flagging
2018-03-13 09:47:11 +02:00
Christopher Haster
7f17a9b8da
littlefs: Fixed issue updating dir struct when extended dir chain
...
Like most of the lfs_dir_t functions, lfs_dir_append is responsible for
updating the lfs_dir_t struct if the underlying directory block is
moved. This property makes handling worn out blocks much easier by
removing the amount of state that needs to be considered during a
directory update.
However, extending the dir chain is a bit of a corner case. It's not
changing the old block, but callers of lfs_dir_append do assume the
"entry" will reside in "dir" after lfs_dir_append completes.
This issue only occurs when creating files, since mkdir does not use
the entry after lfs_dir_append. Unfortunately, the tests against
extending the directory chain were all made using mkdir.
Found by schouleu
2018-03-12 15:52:32 -05:00
Cruz Monrreal
56a6f3b4ff
Merge pull request #6327 from TeemuKultala/ doxygen_updates
...
cellular doxygen updates
2018-03-12 15:10:58 -05:00
Cruz Monrreal
81b2768537
Merge pull request #6301 from jarvte/fixing_cellular_gt
...
Cellular tests: fixed cellular greentea tests by adding timeout as it…
2018-03-12 11:52:34 -05:00
Vincent Coubard
eb8ec9c22d
Merge branch 'nordicpalsm' of https://github.com/donatieng/mbed-os into sc-cordio
2018-03-12 10:15:18 +00:00
Teemu Kultala
bd75d5327f
callback API added
2018-03-12 11:51:27 +02:00
Teemu Kultala
cf07cb0394
cellular doxygen updates
2018-03-12 10:24:33 +02:00
Christopher Haster
17f7c8cd5b
fatfs: Revert "Update error code mapping"
...
This reverts commits:
b40ff8af15
b548fd8a39
2018-03-09 15:27:03 -06:00
paul-szczepanek-arm
1521dee773
add doxygen comment about OOB deneration cause bu setOOBDataUsage
2018-03-09 18:06:56 +00:00
Vincent Coubard
5a2008211a
Cordio: Implement missing functions for secure connection
2018-03-09 18:06:22 +00:00
Vincent Coubard
38bee37804
Cordio: remove generate_public_key from the security manager.
2018-03-09 18:05:31 +00:00
Vincent Coubard
36ca6be69a
BLE: Initialize the pal in GenericSecurityManager
2018-03-09 18:04:47 +00:00
Vincent Coubard
bd7be3d643
BLE: qualification of SecurityManager types
2018-03-09 17:56:59 +00:00
paul-szczepanek-arm
19bb13c8c5
one last typo
2018-03-09 14:56:37 +00:00
paul-szczepanek-arm
1f8c5c1231
fixed typos
2018-03-09 14:22:28 +00:00
paul-szczepanek-arm
7c82e91981
fixed typo
2018-03-09 12:49:10 +00:00
Teppo Järvelin
d26bb23dae
Cellular: ATHandler write improvements.
2018-03-09 14:03:17 +02:00
Martin Kojtal
d2f00a054c
Merge pull request #6171 from anttiylitokola/master
...
Update mbed-coap to version 4.3.0
2018-03-08 17:44:17 +01:00
Martin Kojtal
0c0826179f
Merge pull request #6280 from davidsaada/david_nvstore_doxygen_only
...
NVStore: Enclose header file with DOXYGEN_ONLY option as well.
2018-03-08 17:40:12 +01:00
Martin Kojtal
87b37c0e2a
Merge pull request #6286 from delftswa2018/feature-typo-fixes
...
Small typo fixes in readme.md files
2018-03-08 17:36:23 +01:00
Kimmo Vaisanen
5bfe056370
Fix verification of RX2 datarate
...
Datarate verification passed only if given datarate was a minimum
possible value. Instead datarate should be checked that it is less
than maximum value.
2018-03-08 14:02:40 +02:00
Teppo Järvelin
228f7e8160
Cellular tests: fixed cellular greentea tests by adding timeout as it may take time to register, attach and connect to network.
2018-03-08 13:27:23 +02:00
Mirela Chirica
be95f47636
Quectel BC95 echo test fixes
...
Fixing get host by name and iterate send/recv socket operations.
2018-03-08 13:13:02 +02:00
Mirela Chirica
84cd5c1000
Use of APN lookup decision logic fixed
2018-03-08 12:58:12 +02:00
Mirela Chirica
9f6454a084
Fix wrong header define name
2018-03-08 12:53:52 +02:00
Mirela Chirica
350d7916cf
Release AT handler if network not created
2018-03-08 12:50:14 +02:00
Kimmo Vaisanen
3bd0f97914
Fix initialization of phy_params.payloads_with_repeater.size
2018-03-08 12:46:54 +02:00
Mirela Chirica
aaf4edc15c
Own SIM state retrieval for Quectel BC95
2018-03-08 12:46:44 +02:00
Teppo Järvelin
66fcc758c5
Fixed Cellular unit tests by adding one missing stub after changes in mbed-os.
2018-03-07 12:45:49 +02:00
Kevin Bracey
79b3d068e9
mbed-mesh-api: revise some Thread JSON help
2018-03-07 09:35:04 +02:00
Cruz Monrreal
8a7b390fdd
Merge pull request #6102 from Ultimaker/master
...
Add support for STEVAL-3DP001V1 board
2018-03-06 20:41:41 -06:00
Cruz Monrreal
772a857727
Merge pull request #6268 from AriParkkila/master
...
Fixes cellular unit tests.
2018-03-06 16:12:48 -06:00
jiangkun1994
af7c1c919d
fixes a typo in README.md
2018-03-07 03:33:31 +08:00
jiangkun1994
5be35c92da
fixes some typos in README.md
2018-03-07 03:27:45 +08:00
jiangkun1994
3ca084e954
fixes a typo in README.md
2018-03-07 03:23:42 +08:00
Jasper de Winkel
2c7a25a949
Small typo fixes in readme.md files
2018-03-06 19:07:03 +01:00
David Saada
9e35f8283e
NVStore: Enclose header file with DOXYGEN_ONLY option as well.
2018-03-06 15:35:00 +02:00
Antti Kauppila
7741096538
Cellular tests: nsapi_socket_t errors fixed in unittests
2018-03-05 16:00:13 +02:00
paul-szczepanek-arm
b8ba99a184
handling OOB data generation and verification now pushed down to PAL level
2018-03-05 11:29:13 +00:00
Anna Bridge
a6e27b1b86
Merge pull request #6082 from AriParkkila/master
...
Mbed OS cellular connectivity
2018-03-02 18:36:48 +00:00
Anna Bridge
f0bda6c4cd
Merge pull request #6251 from deepakvenugopal/master
...
Fixed Thread Commissioning issue in CoAP service
2018-03-02 13:58:59 +00:00
Ari Parkkila
f91cc33fca
Updated readme document
2018-03-02 14:38:08 +02:00
Teppo Järvelin
9e2da6af7d
Removed mux comments from code.
2018-03-02 14:38:08 +02:00
Teppo Järvelin
dc87629641
Fixed unit test after removing mux.
2018-03-02 14:38:08 +02:00
Teppo Järvelin
7c9f5f3781
Removed mux.
2018-03-02 14:38:08 +02:00
Ari Parkkila
bfed2baeb6
Changed cellular device as not static
2018-03-02 14:38:08 +02:00
Ari Parkkila
e183923c0d
Changed std::snprintf to sprintf in cellular ATHandler.cpp
2018-03-02 14:38:08 +02:00
Ari Parkkila
b811f7e84d
Fixed EasyCellularConnection to have debug flag
2018-03-02 14:38:08 +02:00
Teppo Järvelin
81738acfb4
Fixed unit tests.
2018-03-02 14:38:08 +02:00
Amanda Butler
63485bd846
Copy edit ATHandler.h
...
Copy edit for clarity, grammar and spelling.
2018-03-02 14:38:08 +02:00
Amanda Butler
cc3835e356
Copy edit AT_CellularBase.h
...
Copy edit file for clarified phrasing.
2018-03-02 14:38:08 +02:00
Amanda Butler
68cac96042
Copy edit AT_CellularDevice.h
...
Copy edit for consistent phrasing across docs.
2018-03-02 14:38:08 +02:00
Amanda Butler
1d57299000
Copy edit AT_CellularSMS.h
...
Copy edit file for grammar.
2018-03-02 14:38:08 +02:00
Amanda Butler
3a57d507d9
Copy edit AT_CellularStack.h
...
Copy edit for American English.
2018-03-02 14:38:08 +02:00
Amanda Butler
6dd0723dff
Copy edit CellularUtil.h
...
Copy edit file for consistent capitalization and correct which/that.
2018-03-02 14:38:08 +02:00
Amanda Butler
00b1341297
Copy edit cellular_mux.h
...
Copy edit, mostly for spelling.
2018-03-02 14:38:08 +02:00
Amanda Butler
a302a4be6d
Copy edit OnboardCellularInterface.h
...
Copy edit file for active voice and removal of Latin abbreviations.
2018-03-02 14:38:08 +02:00
Amanda Butler
dce649c97d
Copy edit README.md
...
Copy edit file for active voice and consistent capitalization.
2018-03-02 14:38:08 +02:00
Ari Parkkila
e53b93114e
Typedef OnboardCellularInterface to EasyCellularConnection
2018-03-02 14:38:07 +02:00
Teppo Järvelin
c9c3f85311
Changed state machine class name and implementation.
2018-03-02 14:38:07 +02:00
Ari Parkkila
b159a51821
Added mux-enabled flag in cellular mbed_lib.json
2018-03-02 14:38:07 +02:00
Antti Kauppila
020e15828d
Unittests fixed + readme updated
...
- Unittests were broken and are now fixed
- README.md is updated to have small instructiopn how to run unittests
2018-03-02 14:38:07 +02:00
Ari Parkkila
6c6223ae25
Added use_apn_lookup in mbed_lib.json
2018-03-02 14:38:07 +02:00
Ari Parkkila
164e8fb717
Added modem_debug_on to cellular device
2018-03-02 14:38:07 +02:00
Teppo Järvelin
a95d376820
review changes: take define MBED_CONF_PPP_CELL_IFACE_APN_LOOKUP in to use.
2018-03-02 14:38:07 +02:00
Teppo Järvelin
1fd9ba6caa
APN lookup from database support.
2018-03-02 14:38:07 +02:00
Mirela Chirica
6670ebbc5f
- PDP context creation fixes for stack type handling
...
- Delete created contexts that do not succed to activate
2018-03-02 14:38:07 +02:00
Teppo Järvelin
0c49b669b4
Fixed bug when copying apn, username and password.
2018-03-02 14:38:07 +02:00
Teppo Järvelin
9016ed5ed8
Don't allow zero length apn, password or username.
2018-03-02 14:38:07 +02:00
Teppo Järvelin
1a3b6e589c
Doxygen update: removed documentation from inherited classes as INHERTIC_DOCS is enabled in doxygen config. Reduces copy-paste and eases maintenance.
2018-03-02 14:38:07 +02:00
Teppo Järvelin
e99c18c233
Fixed SMS receive in PDU: certain length sms last char was missing.
2018-03-02 14:38:07 +02:00
Mirela Chirica
6ccbb59979
Mem_str comparation was too short
2018-03-02 14:38:07 +02:00
Teppo Järvelin
e61411e60c
Fixed travis-ci.
2018-03-02 14:38:07 +02:00
Teppo Järvelin
7a8da2244d
Fixed SMS send in pdu mode could give wrong size as return value.
2018-03-02 14:38:07 +02:00
Antti Kauppila
427674d6ca
IOTCELL-553 fixed
...
Unittests reports an error as there is no coverage file created for cellular_mux.
This is now fixed by running an init function.
2018-03-02 14:38:07 +02:00
Ari Parkkila
fb25c600e7
Added cellular readme
2018-03-02 14:38:07 +02:00
Teppo Järvelin
ef14aef823
review and dynamic alloc ( #3 )
...
* Review fixes. Changed apn, username and password to be dynamically allocated.
2018-03-02 14:38:07 +02:00
Mirela Chirica
4457e361ac
Logging compile fix
2018-03-02 14:38:06 +02:00
Mirela Chirica
22e7fbd7e8
- BC95 socket creation bug fix
...
- Cellular information reading stopping on comma fixed
2018-03-02 14:38:06 +02:00
Ari Parkkila
d2e8691754
Cellular stack listen and accept to return UNSUPPORTED
2018-03-02 14:38:06 +02:00
Ari Parkkila
09143da040
Changed APN initialization from CellularNetwork to application
2018-03-02 14:38:06 +02:00
Ari Parkkila
1df28b28c7
Changed UBLOX C027 to LISA-U
2018-03-02 14:38:06 +02:00
Teppo Järvelin
b7bf83001d
Removed unused include in QUECTEL_BC95_CellularPower.cpp.
2018-03-02 14:38:06 +02:00
Teppo Järvelin
3ff131be0a
Doxygen update, missing class definitions from AT_ classes.
2018-03-02 14:38:06 +02:00
Ari Parkkila
f2613a6154
Cellular logging to use mbed_trace
2018-03-02 14:38:06 +02:00
Juho Eskeli
331a27df63
Enable connection status callback with EasyCellularConnection
2018-03-02 14:38:06 +02:00
Teppo Järvelin
58c8176247
doxygen fixes.
2018-03-02 14:38:06 +02:00
Teppo Järvelin
e41c551468
Doxygen warnings fixes.
2018-03-02 14:38:06 +02:00
Ari Parkkila
bc67100dcf
Added const in AT_CellularNetwork::set_registration
2018-03-02 14:38:06 +02:00
Jari Poyhonen
cd486f2624
Pull request feedback fix: add poll support to multiplexer
2018-03-02 14:38:06 +02:00
Ari Parkkila
0c8c41ff5f
Added static const to AT_CellularNetwork.cpp
2018-03-02 14:38:06 +02:00
Teppo Järvelin
0e20e49ef7
review fixes to athandler: changing int16/8 to int's and some minor issues.
2018-03-02 14:38:06 +02:00
Jari Poyhonen
0ee265110a
Pull request feedback fix: user_data_tx accepts arbitary size
2018-03-02 14:38:06 +02:00
Ari Parkkila
88398bf141
Changed include brackets to double quotes
2018-03-02 14:38:06 +02:00
Ari Parkkila
7545a459d6
Added cellular greentea tests
2018-03-02 14:38:06 +02:00
Mirela Chirica
1825c999a9
Removed unnecessary memsets of ATHandler's receving buffer
2018-03-02 14:38:06 +02:00
Mirela Chirica
d15801d893
PR review fix:
...
- bind behaviour to not change existing port or address if the requested ones are 0
- removed temporary array setting to zero
2018-03-02 14:38:06 +02:00
Juho Eskeli
71f54bc2d4
Deactivate PDP context on disconnect when using AT stack.
2018-03-02 14:38:06 +02:00
Juho Eskeli
66aca1fddf
Connection status callback added.
2018-03-02 14:38:06 +02:00
Mirela Chirica
a35e1f8d6c
- Removed extra whitespaces from AT prefix definitions. The format is modem specific and AT handler is handling whitespaces in case they are present
...
- Reverted the "smaller thread stack size for dispatcher thread". 1KB is not enough, was causing CMSIS-RTOS error: Stack underflow.
2018-03-02 14:38:05 +02:00
Mirela Chirica
4a3541ef60
Device info buffer moved from stack to static
2018-03-02 14:38:05 +02:00
Teppo Järvelin
9e85767c80
PR review fixed: removed dead code, removed magic numbers.
2018-03-02 14:38:05 +02:00
Ari Parkkila
ea41e18aa0
Fixed IAR 7.8 compile
2018-03-02 14:38:05 +02:00
Teppo Järvelin
952ca8729f
Smaller thread stack size for dispatcher thread to save memory.
2018-03-02 14:38:05 +02:00
Teppo Järvelin
4a6bcc4a0a
Fixed doxygen warning.
2018-03-02 14:38:05 +02:00
Ari Parkkila
e8a26f3f54
Removed mbed.h
2018-03-02 14:38:05 +02:00
Ari Parkkila
065326135e
Change cellular socket port 0 to dynamic range
2018-03-02 14:38:05 +02:00
Ari Parkkila
934a93151a
Changed requested stack for new pdp context
2018-03-02 14:38:05 +02:00
Teppo Järvelin
67740f73bd
Removed ASSERT from mux.
2018-03-02 14:38:05 +02:00
Teppo Järvelin
ea6d59ff19
Updated license texts.
2018-03-02 14:38:05 +02:00
Antti Kauppila
1a44c4e5b1
Update AT_CellularPower.cpp
2018-03-02 14:38:05 +02:00
Antti Kauppila
bfbd3e42af
more unittests added
2018-03-02 14:38:05 +02:00
Teppo Järvelin
bf3d587571
Removed dead code from athandler.
2018-03-02 14:38:05 +02:00
Ari Parkkila
30a3ec8e0d
Updated cellular doxygen
2018-03-02 14:38:05 +02:00
Teppo Järvelin
819a9a0da5
Changed register to accept only roaming and homenetwork as registered success.
2018-03-02 14:38:05 +02:00
Ari Parkkila
db2c5cff20
Added cellular stack API
2018-03-02 14:38:05 +02:00
Teppo Järvelin
60f7054a45
Fixed to call callback when connected...
2018-03-02 14:38:05 +02:00
Teppo Järvelin
1dcc6684bf
working example?
2018-03-02 14:38:05 +02:00
Antti Kauppila
fbfbdc9718
renamed mbed_mux to cellular_mux
2018-03-02 14:38:05 +02:00
Antti Kauppila
217271b156
Unittests added
2018-03-02 14:38:03 +02:00
Teppo Järvelin
1cbddfbc10
Changed to use platform baudrate to uart.
2018-03-02 14:38:02 +02:00
Ari Parkkila
ccd9dc3892
Smoke test changes with easy-connect
2018-03-02 14:38:02 +02:00
Ari Parkkila
5b70492c64
Updated cellular
2018-03-02 14:38:02 +02:00
Ari Parkkila
863ec3c3cc
Initial cellular feature
2018-03-02 14:38:02 +02:00
Anna Bridge
6e1cd9b5aa
Merge pull request #6210 from k-stachowiak/mbed-tls-2.7.1-update
...
Update Mbed TLS to version 2.7.1
2018-03-02 10:20:12 +00:00
Anna Bridge
ed17033928
Merge pull request #6188 from paul-szczepanek-arm/master
...
BLE: Security Manager
2018-03-02 10:15:26 +00:00
Deepak Venugopal
4a3160f442
Merge commit '41d7448660fb20d72ab17615e23c9e64005934e3'
...
* commit '41d7448660fb20d72ab17615e23c9e64005934e3':
Squashed 'features/nanostack/FEATURE_NANOSTACK/coap-service/' changes from f6281ed..f40072f
2018-03-02 09:49:36 +02:00
Cruz Monrreal
25321961fb
Merge pull request #5900 from davidsaada/david_sotp_cpp
...
Add NVStore (A.K.A SOTP) feature
2018-03-01 19:38:28 -06:00
Donatien Garnier
a3383c139b
Addressed Vincent's comments
2018-03-01 20:32:37 +00:00
Donatien Garnier
713ab14d22
Removed deprecated Security Manager
2018-03-01 20:06:38 +00:00
paul-szczepanek-arm
ded1403399
security manager overview doc fixes
2018-03-01 19:55:44 +00:00
Donatien Garnier
7b6b02a746
Nordic PAL - Breaks existing SM
2018-03-01 19:50:13 +00:00
Cruz Monrreal
c4354fa645
Merge pull request #6179 from geky/lfs-update
...
littlefs: Update to version 1.3
2018-03-01 13:42:47 -06:00
paul-szczepanek-arm
371f183a6a
added one more sequence diagram
2018-03-01 18:49:43 +00:00
paul-szczepanek-arm
1f52e42bcf
more detailed comment for confirmation request
2018-03-01 18:31:16 +00:00
paul-szczepanek-arm
8347e76bf4
Merge https://github.com/ARMmbed/mbed-os
2018-03-01 18:11:41 +00:00
paul-szczepanek-arm
68f25611d5
no need to ask for encryption after pairing, fold deref under the null check
2018-03-01 17:47:18 +00:00
paul-szczepanek-arm
e706b41ccf
removed redundant event for SC OOB request, fixed comments
2018-03-01 16:39:44 +00:00
Vincent Coubard
f0405690b7
BLE: Resolve issue with address type in advertising report.
2018-03-01 15:48:21 +00:00
Vincent Coubard
8e21b5391a
Merge branch 'master' of https://github.com/paul-szczepanek-arm/mbed-os into pr-sm
2018-03-01 15:39:56 +00:00
Vincent Coubard
03f79eec39
BLE: Remove Nordic Pal SM draft.
2018-03-01 15:39:51 +00:00
paul-szczepanek-arm
392ee6ec7c
removed get encryption key size from API
2018-03-01 15:29:52 +00:00
paul-szczepanek-arm
0870b30aa6
Merge branch 'master' of https://github.com/paul-szczepanek-arm/mbed-os
2018-03-01 15:18:00 +00:00
paul-szczepanek-arm
b89f9f2482
added callback on encryption request even if lower and restructured for clarity
2018-03-01 15:17:36 +00:00
Donatien Garnier
00df64b26c
Fixed PasskeyAscii constructor
2018-03-01 15:16:47 +00:00
Vincent Coubard
e8f29f7327
BLE - Cordio - PAL SM: refine comments and formating.
2018-03-01 14:59:06 +00:00
Vincent Coubard
36247b32b8
BLE - Cordio PAL SM: Implement Keypress notification
2018-03-01 14:58:01 +00:00
Vincent Coubard
56af3cb1be
CBLE - Cordio PAL SM: Implement slave security request notification
2018-03-01 14:57:05 +00:00
Vincent Coubard
da6ede34a8
BLE - Cordio PAL SM: Select correct on_ltk_request overload.
2018-03-01 14:56:30 +00:00
Vincent Coubard
628ffea6de
BLE - Cordio PAL SM: Forward local keys
2018-03-01 14:55:45 +00:00
Vincent Coubard
18c93990b6
BLE - Cordio PAL Sm: generate random passkey displayed.
2018-03-01 14:55:12 +00:00
Vincent Coubard
ecc7118490
BLE - Cordio PAL SM: Implement send_keypress_notification
2018-03-01 14:54:06 +00:00
Vincent Coubard
9043714443
BLE - Cordio PAL SM: Select correct security level in enable_encryption
2018-03-01 14:53:33 +00:00
Vincent Coubard
79db2af488
BLE - Cordio PAL SM: Choose correct security level in set_ltk
2018-03-01 14:53:00 +00:00
Vincent Coubard
4858388672
BLE - Cordio PAL SM: comment get_authentication_timeout
2018-03-01 14:52:09 +00:00
Vincent Coubard
054b7808b4
BLE - Cordio PAL SM: implement set_authentication_timeout
2018-03-01 14:51:43 +00:00
Vincent Coubard
a057e5c0d2
BLE - Cordio PAL SM: Fix force secure connection.
2018-03-01 14:50:31 +00:00
Vincent Coubard
cd7d9c551c
Cordio pal SM: comment appropriately privacy related functions.
2018-03-01 14:47:46 +00:00
Vincent Coubard
1170b3132d
BLE: Remove useless pal sm API
2018-03-01 14:46:12 +00:00
Vincent Coubard
e29ea95fc9
BLE: Return error when security deascalation is requested.
2018-03-01 14:44:18 +00:00
paul-szczepanek-arm
7e2f5ee008
fix not setting the mitm performed state correctly
2018-03-01 14:25:22 +00:00
paul-szczepanek-arm
bc11834125
fix not setting encryption state in generic
2018-03-01 13:59:19 +00:00
paul-szczepanek-arm
d5b8439bae
removed redundant check
...
we already checked the current encryption and it is encrypted
2018-03-01 13:03:49 +00:00
paul-szczepanek-arm
179ad1626f
Merge branch 'master' of https://github.com/paul-szczepanek-arm/mbed-os
2018-03-01 12:56:33 +00:00
paul-szczepanek-arm
cebc0f8fd7
create encryption result event even when nothing changes
2018-03-01 12:56:29 +00:00
Vincent Coubard
c00ae29ca7
Cordio: Update stack binaries.
...
New binaries contains a fix in configuration handling.
2018-03-01 11:01:19 +00:00
Vincent Coubard
d050c4e4af
BLE: Fix CordioPalSM set_io_capability
2018-03-01 10:24:13 +00:00
Vincent Coubard
dbf4a8da49
BLE: Implement CordioSM get_secure_connection_support.
2018-03-01 10:22:42 +00:00
Vincent Coubard
766b8765ad
BLE: Accept pairing request when the user authorization is not required.
2018-03-01 10:21:35 +00:00
Christopher Haster
687304455e
littlefs: Updated error codes in tests to match version update
2018-02-28 19:56:13 -06:00
Amanda Butler
f078124bae
Edit README.md
...
Edit README with changes from docs site and minor formatting changes.
2018-02-28 18:59:20 -06:00
Amanda Butler
6ddff638d4
Copy edit nvstore.h
...
Copy edit for typos and minor spelling nits.
2018-02-28 18:47:17 -06:00
paul-szczepanek-arm
f9a79bed15
fixed initiator distribution bug and setting LINK distribution field based on SC
2018-02-28 17:43:54 +00:00
paul-szczepanek-arm
d20c4efbf3
documentation overview for securitymanager
2018-02-28 17:00:56 +00:00
Bartek Szatkowski
4cb47df40a
Add system_reset() function to Mbed OS
2018-02-28 16:42:34 +00:00
Krzysztof Stachowiak
6370a3500d
Correct typos and code alignment
2018-02-28 17:03:47 +01:00
paul-szczepanek-arm
701c18b428
missing documentation, removed privacy call from api
2018-02-28 13:49:51 +00:00
paul-szczepanek-arm
c52d324dab
pass in information about the mitm and sc quality of the ltk to the pal
2018-02-28 12:02:54 +00:00
paul-szczepanek-arm
abcc5db44b
fix setting default values which were overriding even when unset
2018-02-28 10:00:58 +00:00
Krzysztof Stachowiak
9d5d60b62e
Adjust partner code for MD HW acceleration to new MD API
2018-02-28 10:02:56 +01:00
Krzysztof Stachowiak
947275036c
Update Mbed TLS to version 2.7.1
2018-02-28 10:02:30 +01:00
daid
62599a97f7
Add support for STEVAL-3DP001V1 board, which has an STM32F401VE chip. This support is based on the NUCLEO-F401RE board. Which has the same amount of flash/ram but less pins available on the chip.
2018-02-28 09:37:39 +01:00
paul-szczepanek-arm
975544f274
link key distribution decision made in generic security manager
2018-02-27 23:26:34 +00:00
Cruz Monrreal
21483cd59d
Merge pull request #6167 from hug-dev/cm3ds-bug-fix
...
CM3DS Maintenance Pull Request: Bug fixes (1/4)
2018-02-27 13:44:05 -06:00
Cruz Monrreal
478fda70e0
Merge pull request #6166 from u-blox/apn_default
...
Make APN lookup the default behaviour for PPPCellularInterface
2018-02-27 13:43:32 -06:00
paul-szczepanek-arm
96de1c2752
header guards renamed
2018-02-27 17:25:57 +00:00
paul-szczepanek-arm
8e41de2e25
Merge branch 'master' of https://github.com/paul-szczepanek-arm/mbed-os
2018-02-27 17:23:25 +00:00
paul-szczepanek-arm
e186985b26
addressing PR review: added documentation, moved code and renamed vars
2018-02-27 17:22:13 +00:00
Tero Jääskö
f0cc00ef3b
nanostack-hal: add alternative critical section implementation
...
The nanostack hal's critical section uses a mutex for mutual exclusion,
which is nice for many use cases. But when one needs to use the critical
section from interrupts, the RTX will have a assertion failure and panic.
Add a configurable for mbed_lib, which can be used to enable a alternative
version of critical section, which uses the underlying OS primitives, which
disables the interrupts.
Note: the default behavior is not changed, one needs to override the
"nanostack-hal.critical-section-usable-from-interrupt" to have "true".
Reason for this change is that there is a need for sending events using
nanostack event queue from interrupt context, eg. from a socket callback.
2018-02-27 17:12:55 +02:00
Vincent Coubard
81126ad7ce
BLE: remove draft of nordic pal security manager.
2018-02-27 14:35:56 +00:00
Vincent Coubard
e568aa47ba
Merge branch 'master' of https://github.com/ARMmbed/mbed-os into pr-sm
2018-02-27 14:33:35 +00:00
Vincent Coubard
bf8204a21b
BLE: remove host testing from sm pr
2018-02-27 13:42:03 +00:00
paul-szczepanek-arm
fc01cff1b3
removed using statements from header
2018-02-27 12:25:01 +00:00
paul-szczepanek-arm
d264512c8c
remove virtual as per review request
2018-02-27 12:15:40 +00:00
paul-szczepanek-arm
536f541b93
mic event no longer present in user api, removing call
2018-02-27 12:13:48 +00:00
Vincent Coubard
928dbcf325
BLE: Fix prefix of BLEProtocol::AddressType
2018-02-27 12:12:17 +00:00
Kevin Bracey
d24c7c454b
Merge pull request #6186 from TeroJaasko/eventloop_in_main_thread_to_master
...
Eventloop in main thread to master
2018-02-27 14:01:40 +02:00
paul-szczepanek-arm
957cee39fe
Merge branch 'master' of https://github.com/paul-szczepanek-arm/mbed-os
2018-02-27 11:57:20 +00:00
paul-szczepanek-arm
0f1fd58c38
removed MIC related functions and events from the user API
2018-02-27 11:57:16 +00:00
Vincent Coubard
0b0d614787
Merge branch 'master' of https://github.com/paul-szczepanek-arm/mbed-os into pr-sm
2018-02-27 11:54:32 +00:00
paul-szczepanek-arm
62e9011525
public key renaned (added coord), also contains missing commit for oob_rand rename
2018-02-27 11:50:04 +00:00
Vincent Coubard
361ae8c7a3
BLE: fix references to oob_rand_t.
2018-02-27 11:48:21 +00:00
paul-szczepanek-arm
4010bade89
reanmed type as per review request
2018-02-27 11:43:46 +00:00
paul-szczepanek-arm
4fd29630b3
removed redundant type
2018-02-27 11:23:22 +00:00
Vincent Coubard
871ebb6708
BLE: Add host test instructions.
2018-02-27 11:19:59 +00:00
Vincent Coubard
c6bca57633
BLE: Improve generic gatt client tests documentation.
2018-02-27 11:15:48 +00:00
paul-szczepanek-arm
8142cb5131
redundant call removed
2018-02-27 10:45:31 +00:00
paul-szczepanek-arm
5de1979f5c
types renamed as per review requests
2018-02-27 10:33:35 +00:00
David Saada
e891d6abf0
NVStore: Use wait_ms to delay instead of Thread::wait.
2018-02-27 12:33:27 +02:00
paul-szczepanek-arm
b0c7d729fc
variable name updated in the undefed cmac blocks
2018-02-27 10:00:07 +00:00
paul-szczepanek-arm
55106362f0
removed redundant type
2018-02-27 09:59:35 +00:00
paul-szczepanek-arm
c9690c9f59
upate doxygen since passkey is no longer a pointer
2018-02-27 09:22:36 +00:00
Vincent Coubard
47eea76c03
BLE: Test db entry open and close in the generic security manager.
2018-02-27 09:00:26 +00:00
Vincent Coubard
7833d798da
BLE: Fix security manager mocks
2018-02-27 09:00:26 +00:00
Vincent Coubard
b939721421
BLE: Ensure passkey is not null before integer conversion
2018-02-27 09:00:26 +00:00
David Saada
f43e7b1301
NVStore: Calling thread wait doesn't depend on RTOS being defined any more.
2018-02-26 23:17:59 +02:00
Cruz Monrreal
b7c2b1f510
Merge pull request #6120 from ARMmbed/g-fat-errors
...
fatfs: Update error code mapping
2018-02-26 14:46:33 -06:00
Cruz Monrreal
a93342f70b
Merge pull request #6151 from pan-/fix-generic-gap-connect
...
BLE: Fix generic gap connect
2018-02-26 14:39:25 -06:00
Cruz Monrreal
7f812807a9
Merge pull request #6177 from geky/fix-littlefs-mkdir-root
...
littlefs: Fix handling of root as target for create operations
2018-02-26 14:37:54 -06:00
David Saada
2b7766a73b
Add NVStore (A.K.A SOTP) feature
2018-02-26 15:57:32 +02:00
Rob Meades
2fe3223612
Make MBED_CONF_PPP_CELL_IFACE_APN_LOOKUP default in mbed_lib.json while
...
ensuring that, if there is a user-specified APN, it is still used.
2018-02-26 11:33:40 +00:00
Vincent Coubard
3554a63dc8
BLE: Add default addressType to processAdvertisementReport
...
This patch should be reverted once the ST shield library and mbed-os-cliapp have been updated to support this change in the porting API.
2018-02-26 09:59:17 +00:00
Christopher Haster
436e4706ed
littlefs: Add littlefs.intrinsics to override intrinsics support
...
Enables intrinsics for bit operations such as ctz, popc, and le32
conversion. Can be disabled to help debug toolchain issues. Has
proven to be surprisingly useful.
2018-02-23 17:51:42 -06:00
Christopher Haster
afc3306d25
littlefs: Adopted MBED_ASSERT and littlefs.enable_assert
...
Much like the logging functions, assertions can be enabled, disabled
and forced with the littlefs.enable_assert config option. Integrates
with the new LFS_ASSERT macro.
2018-02-23 17:45:24 -06:00
Vincent Coubard
1f4e2b1820
BLE: Fix Gap::processAdvertisementReport documentation
2018-02-23 17:32:22 +00:00
Cruz Monrreal II
b40ff8af15
Moved return statements to their own line
2018-02-23 11:23:13 -06:00
Vincent Coubard
47e005e14c
BLE: Fix address report in Maxim port.
2018-02-23 15:50:34 +00:00
Vincent Coubard
d586f7f9d2
BLE: update SecurityDB comments.
2018-02-23 13:54:41 +00:00
Tero Jääskö
09b8245cba
nanostack-hal: remove connection from event loop init and dispatch thread
...
The thread flag signaling mechanism is problematic if a separate event
loop thread is not used. The problem is, that one needs to know the
thread id of the loop dispathcer, and that knowledge can be derived
only from the caller thread of the initialization function.
Remove the magic connection from caller thread to dispatcher thread
by using event flags instead of thread flags on signaling. As the
event flags require the massive amount 20 bytes of RAM whereas
thread flags requires none, keep the code behind flag.
2018-02-23 15:37:33 +02:00
Tero Jääskö
aed2a0cd9f
nanostack-hal: modify eventloop to allow running it in a main thread
...
The separate eventloop thread may not be necessary on all uses, as one
can use the existing main thread for event dispatching. Add a
conditional nanostack-hal.event-loop-dispatch-from-application, which
disables the thread creation.
Note: the ns_hal_init must be ran from the same thread which will be
used to execute the event loop later.
2018-02-23 15:37:32 +02:00
Vincent Coubard
e91570e4ba
BLE: Fix default connection params type.
2018-02-23 13:30:16 +00:00
Paul Szczepanek
268655a028
Merge pull request #17 from pan-/security-db-rework
...
Security db rework
2018-02-23 13:24:15 +00:00
Vincent Coubard
11a809ee1c
BLE: remove MorySecurityDb include from generic security manager.
2018-02-23 11:19:21 +00:00
Vincent Coubard
1ded0d7198
BLE: Split security manager control block from the secure DB.
2018-02-23 11:15:08 +00:00
Vincent Coubard
52910af33e
BLE: Add mock for SecurityManagerEventHandler.
2018-02-23 11:13:42 +00:00
Vincent Coubard
7db6aeb19b
BLE: Add mock and stub for ConnectionEventMonitor.
2018-02-23 11:13:42 +00:00
Vincent Coubard
2bb73fd8bb
BLE: Cleanup includes of pal::ConnectionEventMonitor.
2018-02-23 11:13:42 +00:00
paul-szczepanek-arm
c8f77259ed
Merge https://github.com/ARMmbed/mbed-os
2018-02-23 10:11:49 +00:00
Cruz Monrreal
1d1eef47ff
Merge pull request #6160 from TeemuKultala/status_callback_fix
...
fix issue 6150
2018-02-22 21:56:42 -06:00
Christopher Haster
453a1b6815
Merge commit '451c3d137fbd49ce5e00e765af66c16bb5169ee9' into lfs-update
2018-02-22 18:43:04 -06:00
Christopher Haster
f67a795ef0
littlefs: Fixed handling of root as target for create operations
...
Before this patch, when calling lfs_mkdir or lfs_file_open with root
as the target, littlefs wouldn't find the path properly and happily
run into undefined behaviour.
The fix is to populate a directory entry for root in the lfs_dir_find
function. As an added plus, this allowed several special cases around
root to be completely dropped.
2018-02-22 15:56:24 -06:00
Antti Yli-Tokola
1b27317e6c
Update mbed-coap to version 4.3.0
...
Add new api to clear whole sent blockwise message list
2018-02-22 17:57:12 +02:00
paul-szczepanek-arm
02f01f0e1d
Merge branch 'palsm' of https://github.com/paul-szczepanek-arm/mbed-os into palsm
2018-02-22 11:53:00 +00:00
Vincent Coubard
1698c2d5be
BLE: Add missing encryption implementation in cordio pal SM.
2018-02-22 11:51:02 +00:00
paul-szczepanek-arm
1da5d74470
temporary key encryption mitm quality reflected
2018-02-22 11:50:11 +00:00
Martin Kojtal
414b2d971d
Revert "Update Mbed TLS HW acceleration partner code to new hashing API"
2018-02-22 11:20:35 +00:00
Teemu Kultala
34ef11630c
fix issue 6150 by always setting net interface UP in mbed_set_dhcp
2018-02-22 13:00:46 +02:00
Brendan McDonnell
7094e13891
revert typos in external sources
2018-02-21 19:08:28 -05:00
paul-szczepanek-arm
6b0ba64ee2
SM fixes to init and register the event handler correctly
2018-02-21 18:35:44 +00:00
Hugues de Valon
ef7b16d9c5
CM3DS: fix non aligned access in Ethernet driver
...
This patch changes the way data is put in the TX_DATA_PORT register when
sending packet over Ethernet.
When this driver is compiled with release compilation profile
(space optimization compiler options) with Arm compiler version 5,
the line:
SMSC9220->TX_DATA_PORT = *pktptr;
generates the assembly instruction to get the pktptr pointed value:
LDM r2!, {r3}
with pktptr = r2
However, the code does not prevent the pktptr value from being unaligned
(to a 32 bits boundary) in that zone and the LDM instruction causes a
HardFault if this is the case. When the compiler option is not activated
(debug and develop compilation profiles), the compiler generates LDR
instruction instead which does not cause a HardFault.
The ARM v7-M states page B3-601: "Unaligned load-store multiples and
word or halfword exclusive accesses always fault."
To face that problem, we check if the data pointer is aligned or not. If
it is, we apply the same algorithm than before. If not, a local variable
is created and we copy in it, byte per byte, the contents at the
unaligned pointer. However, it will impact performances adding 8
instructions (one LD and one ST for each copied byte).
Change-Id: I11f6e82ce5521960d2ecf499f718f76fec29c0b0
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-02-21 17:54:12 +00:00