Arto Kinnunen
c8b667a7ba
Review correction: Remove unnecessary method
...
Remove unnecessary method: add_ethernet_interface_ns
2020-11-18 17:29:10 +02:00
Arto Kinnunen
e1e0f89699
MAC address set/get support for EMAC interface
...
Add support to set and get MAC address from EMAC interface.
2020-11-18 17:26:04 +02:00
Arto Kinnunen
a607be6623
Method for adding network interface MAC address
...
Add method set_mac_address to set network interface MAC address.
2020-11-18 17:17:54 +02:00
Martin Kojtal
fad7f344e7
Merge pull request #13870 from rajkan01/feature-cmake-review-comment
...
CMake: Address review comment from PR#13566
2020-11-18 09:42:09 +00:00
Martin Kojtal
96f3de6914
Merge pull request #13910 from marcemmers/nrf-ble-config
...
Update NRF ble configuration options
2020-11-18 09:41:42 +00:00
Martin Kojtal
1bd5ce6af2
Merge pull request #13671 from balajicyp/topic/setsockopt_ip_tos
...
Add an socket option to set type of service to set specific precedence for QoS
2020-11-18 09:36:06 +00:00
Marc Emmers
01e56f1f34
Fix missing newline
2020-11-16 17:03:23 +01:00
Marc Emmers
afc42b8fb7
Update NRF ble configuration options
2020-11-16 16:43:43 +01:00
Rajkumar Kanagaraj
438994ded4
Fix CI issue:
...
- Added absolute path as cmake failed to find linker file from relative path
- Added the missing MBED_CONF_CRYPTOCELL310_PRESENT
- Added the dependency library to BLE Cordio stack
2020-11-12 14:32:01 +00:00
Rajkumar Kanagaraj
4c05ce874a
Remove add subdirectory of TARGET_MCU_NRF52840 as it contains only mbed_lib.json
2020-11-12 11:27:11 +00:00
Rajkumar Kanagaraj
cc7ae38fed
CMake: Simplify inclusion of cryptocell310 library files
2020-11-12 11:27:11 +00:00
Rajkumar Kanagaraj
a044bfa9c1
CMake: Add more information to TODO comment
2020-11-12 11:27:11 +00:00
Rajkumar Kanagaraj
766a9a8219
CMake: Remove empty input source files
2020-11-12 11:27:11 +00:00
Rajkumar Kanagaraj
a4d8559c08
CMake: Rename input source files from CMakelists.txt to CMakeLists.txt
2020-11-12 11:27:10 +00:00
Martin Kojtal
d5b4f42fcd
Merge pull request #13894 from noonfom/fix_compilation_warnings
...
Fix compilation warnings
2020-11-12 08:50:25 +00:00
Martin Kojtal
e725df7d07
Merge pull request #13833 from AGlass0fMilk/privacy-enabled-cb-patch
...
Add new Gap::EventHandler callbacks to ChainableGapEventHandler class
2020-11-12 08:43:35 +00:00
Abbas Bracken Ziad
3e6cf78d6d
Remove call to function-like macro with no effect
2020-11-11 14:23:42 +00:00
Martin Kojtal
5cbdbcb2d2
Merge pull request #13889 from artokin/nanostack_release_12_6_2
...
Nanostack release v12.6.2
2020-11-11 09:11:27 +00:00
Arto Kinnunen
c8c2e5437f
Merge commit '48fcb2ba25d66cbcc3be602a7662306caae0f9fe'
...
* commit '48fcb2ba25d66cbcc3be602a7662306caae0f9fe':
Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 09d9e24f2d..715ae9a693
2020-11-10 13:47:13 +02:00
Hugues Kamba
794e32df74
CMake: Use relative paths to list source files and directories
...
The absolute path is still required for listing linker
files as they are referenced from a function in the top
level CMake input source file.
2020-11-09 12:32:30 +00:00
Abbas Bracken Ziad
877436cc29
Replace calls to deprecated functions in the Timer API
2020-11-06 18:00:51 +00:00
Rajkumar Kanagaraj
e7c0d93ad4
CMake: add mbed-os and mbed-baremetal targets
...
mbed-os consists of mbed-core and mbed-rtos
mbed-baremetal consists of mbed-core
The main change is for mbed-core. Changing from object library to be interface. This way it allows us to do the above to have 2 main targets for users to use.
This should be backward compatible change as mbed-os target we used contains the same files/options as previously set.
2020-11-06 17:25:22 +00:00
Hugues Kamba
bf84a5b329
CMake: Rename CMake targets
...
* mbed-os renamed mbed-core
* mbed-os-<COMPONENT> renamed mbed-<COMPONENT>
2020-11-06 17:25:22 +00:00
Hugues Kamba
c82e8c2337
CMake: Restore rtos api and netsocket presence macro names
...
The old tools rely on the old names to build
2020-11-06 17:25:22 +00:00
Hugues Kamba
0ddc75a8f6
CMake: Fix BLE private address linker error
...
List newly added files in CMake input source files.
2020-11-06 17:25:22 +00:00
Martin Kojtal
8529e88e61
cmake: fix present inclusion
...
We use only _PRESENT macros for components if they are enabled. Use the same in
the mbed.h file or anywhere else.
2020-11-06 17:25:21 +00:00
Hugues Kamba
fa98689639
CMake: Componentize Mbed OS into multiple CMake targets ( #13732 )
...
Aside from the core mbed-os CMake target, a number of targets have been created so they can optionally be included by application executables that require them using `target_link_libraries()`.
Co-authored-by: Martin Kojtal <martin.kojtal@arm.com>
Co-authored-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@arm.com>
2020-11-06 17:25:21 +00:00
Hugues Kamba
e22b19d6db
CMake: Fix build failure due to BLE dir changes
2020-11-06 17:25:21 +00:00
Hugues Kamba
9b8c5acb99
CMake: Fix build failure due to mbed-trace, mbed-client-randlib, and nanostack dir changes
2020-11-06 17:25:20 +00:00
Hugues Kamba
ec376fb587
CMake: List missing files in sal-stack-nanostack
2020-11-06 17:25:20 +00:00
Hugues Kamba
0c8cb3134c
CMake: Fix build failure due to PSA dir move
2020-11-06 17:25:20 +00:00
Hugues Kamba
b3c614e921
CMake: Fix CORDIO_LL build failure
...
List missing CORDIO_LL source file in CMake source file.
2020-11-06 17:25:19 +00:00
Hugues Kamba
01ddb7d471
CMake: Fix NRF52840_DK build failure
...
* Remove duplicated ARM toolchain directory
* Link with archived cryptocell 310 libraries instead
of adding them as source files
* Provide default MBED_BOOT_STACK_SIZE definition
in scatter file as is done for GCC_ARM linker file
2020-11-06 17:25:19 +00:00
Martin Kojtal
f856d6b0a3
CMake: Fix include path for Cryptocell
2020-11-06 17:25:19 +00:00
Hugues Kamba
67a20580cf
CMake: Fix build failure due to lora, cryptocell, and nfc dirs move
2020-11-06 17:25:19 +00:00
Hugues Kamba
fbaeae5a8e
CMake: Fix failure due to MbedTLS rdir relocation
2020-11-06 17:25:19 +00:00
Hugues Kamba
eb4102be48
CMake: Fix failure due to BLE component dir move
2020-11-06 17:25:19 +00:00
Hugues Kamba
20e19de028
CMake: Fix breakage due to BLE dir move
2020-11-06 17:25:19 +00:00
Hugues Kamba
c30d9259e9
CMake: Fix build failure due to nanostack dir move
2020-11-06 17:25:19 +00:00
Hugues Kamba
76fd50a547
CMake: Fix access to cellular drivers
2020-11-06 17:25:18 +00:00
Hugues Kamba
e744208c07
CMake: Fix build failure due to drivers and lwipstack dirs move
2020-11-06 17:25:18 +00:00
Hugues Kamba
24c79a4b47
CMake: Fix build failure due to nanostack drivers move
2020-11-06 17:25:17 +00:00
Hugues Kamba
8b21238e08
CMake: Fix failure due to events and netsocket dirs changes
2020-11-06 17:25:17 +00:00
Hugues Kamba
396ddc7a4d
CMake: Fix build due to system_storage and netsocket dir move in master
2020-11-06 17:25:17 +00:00
Hugues Kamba
bd45acba8c
CMake: Fix failure due to kvstore and cellular dirs changes
2020-11-06 17:25:16 +00:00
Hugues Kamba
554a5d3597
CMake: Fix failure due to restructure of rtos and ppp directories
2020-11-06 17:25:16 +00:00
Hugues Kamba
59a7d77abf
CMake: Add support for connectivity dir
2020-11-06 17:25:15 +00:00
Martin Kojtal
c29a2e2338
Merge pull request #13811 from pan-/ble-conditional-compilation
...
Ble conditional compilation
2020-11-06 16:11:10 +00:00
Martin Kojtal
c5bae34e9c
Merge pull request #13843 from marcelbrucker/fix_linking_issue
...
Fix linking issue #13793 when using -O0 compiler optimization in ARMC…
2020-11-03 14:01:25 +00:00
filics
df0538923c
Fix linking issue #13793 when using -O0 compiler optimization in ARMC6 toolchain
2020-11-02 20:04:15 +01:00
Martin Kojtal
eb6b53ac92
Merge pull request #13753 from AGlass0fMilk/rm-nordic-bsp
...
Remove Unneeded nordic-bsp Folder from Cordio
2020-11-02 14:14:33 +00:00
Martin Kojtal
6db63e495b
Merge pull request #13822 from paul-szczepanek-arm/fix-preiod
...
BLE fix periodic advertising list function parameter checking
2020-11-02 14:13:40 +00:00
George Beckstein
911cee69f2
Add new Gap::EventHandler callbacks to ChainableGapEventHandler class
2020-10-29 15:39:41 -04:00
Paul Szczeanek
34c75ffb45
fix wrong advertising set handle being passed to handler
2020-10-28 08:42:58 +00:00
Paul Szczeanek
9e509f435b
fix incorrect parameter check in periodic advertising
2020-10-27 15:09:30 +00:00
Vincent Coubard
ad37f560c2
BLE: Set host default version to 5.1
...
Disable 5.2 event handling if not enabled.
2020-10-27 14:36:59 +00:00
Vincent Coubard
87ea47f211
BLE: Refactor Gap::reset to make it more readable
2020-10-27 14:22:54 +00:00
Martin Kojtal
24c4f308be
Merge pull request #13796 from balajicyp/topic/wep_security_fix_test_readme
...
Update README.md to remove WEP test case with NULL data
2020-10-27 14:04:12 +00:00
pea-pod
507181d262
Change MBED_STATIC_ASSERTs version for built-in
2020-10-27 08:30:40 -05:00
Martin Kojtal
78c8d84214
Merge pull request #13808 from harmut01/license_refactor
...
Remove erroneous character from SPDX identifer
2020-10-27 09:03:41 +00:00
Vincent Coubard
f3031da424
BLE: Disable handling of BT5.2 event in the controller.
...
These events are not used nor triggered by any of our APIs. It saves ~1.4k of flash
2020-10-23 16:44:29 +01:00
Vincent Coubard
557eac0617
BLE: Conditional compilation of the security manager
...
Depends on the role (central or peripheral), signing enabled and secure connection enabled.
2020-10-23 16:19:38 +01:00
Harrison Mutai
6bfe651aad
Remove erroneous character from SPDX identifer
...
Erroneous '/' was appended to start of comment. This was causing CMake
warning during complition. Removes character from affected files.
2020-10-23 15:08:58 +01:00
Vincent Coubard
2e859cdab4
BLE: Conditionally compile PAL depending on the feature selected.
...
Previously (most) of the code was not pulled in because the pal interface was not virtual.
2020-10-23 12:17:31 +01:00
Vincent Coubard
26300912d3
BLE: Prevent code generation from GattClient when not used.
2020-10-23 10:37:28 +01:00
Balaji Subramanyam
7824340676
Update README.md to remove WEP test case with NULL data
2020-10-21 10:00:27 -07:00
Martin Kojtal
27d10506e0
Merge pull request #13785 from pan-/ble-fix-prep-write-queue-access
...
BLE: Fix access to attcCb.onDeck and attsCb.prepWriteQueue access
2020-10-20 11:10:11 +01:00
Martin Kojtal
5d60e65ae6
Merge pull request #13787 from ristohuhtala/update-mbed-coap-master
...
Update Mbed CoAP to v5.1.8
2020-10-20 11:09:45 +01:00
Martin Kojtal
1b663a37cf
Merge pull request #13779 from paul-szczepanek-arm/fix-scan-state
...
BLE: Fix scan state and host resolution of RPAs
2020-10-20 11:09:24 +01:00
Risto Huhtala
0bb9eb6563
Update Mbed CoAP to v5.1.8
2020-10-20 08:18:24 +03:00
Vincent Coubard
3cab37793b
BLE: Fix index access to attcCb.onDeck in Cordio.
...
The connection starts at 1, not 0. The entry in the array should be connId - 1
2020-10-19 17:23:42 +01:00
Vincent Coubard
542b725545
BLE: Fix incorrect index used to access attsCb.prepWriteQueue in Cordio
...
The connection id starts at the value 1. The entry accessed in the array should be connId - 1
2020-10-19 17:21:49 +01:00
Paul Szczeanek
934e111107
fix advertising report not terminating early for unwanted reports
2020-10-19 15:47:40 +01:00
Paul Szczeanek
2c906110fc
missing host resolution for rpa when extended advertising is available
2020-10-19 15:47:39 +01:00
Paul Szczeanek
0931709516
replace current bool state combination for keeping track of ble scanning with an enum that covers all states
2020-10-19 15:47:39 +01:00
jeromecoutant
7c214cbd68
STM32WB: STM32Cube_FW_WB_V1.8.0
...
https://github.com/STMicroelectronics/STM32CubeWB
2020-10-19 14:36:02 +02:00
Martin Kojtal
bf90b7736b
Merge pull request #13697 from jeromecoutant/PR_L5_130
...
STM32L5 update drivers version to CUBE V1.3.1
2020-10-19 13:21:32 +01:00
Martin Kojtal
b242be1b08
Merge pull request #13734 from AGlass0fMilk/chainable-event-handler
...
BLE: Introduce ChainableEventHandler and subclasses
2020-10-19 12:27:56 +01:00
Martin Kojtal
ed73a48364
Merge pull request #13733 from artokin/enable_nanostack_dNS_cache_usage-master
...
Enable Nanostack DNS cache usage
2020-10-19 08:23:20 +01:00
Martin Kojtal
00aee87ef2
Merge pull request #13654 from balajicyp/topic/wep_security_fix_testcase_update
...
Summary of changes
Remove WEP security Test Case with NULL as WEP security Key are sequence of Hex Values , the character "NULL" is (0x00) it is a valid value ( for ex: this is key index, followed by length and hex key array).
Impact of changes
Remove the test case for NULL( "" )key with NSAPI_SECURITY_WEP to test return value with NSAPI_ERROR_PARAMETER
The set_credentials(const char *ssid, const char *pass, nsapi_security_t security) API has no key length, the key length is derived by using strlen(pass), which works if the pass ( is a string) , but in case of NSAPI_SECURITY_WEP and NSAPI_SECURITY_WPA2_ENT, the key does not happen to be string but a hex char array.
WEP security Key are sequence of Hex Values , the character "NULL" is (0x00) it is a valid value ( for ex: this is key index, followed by length and hex key array).
The key index 0 , 1, 2, 3 are keys used for an WiFi Access point.
2020-10-19 08:10:05 +01:00
jeromecoutant
4b999b3e7f
STM32L5: STM32Cube_FW_L5_V1.3.0
...
https://github.com/STMicroelectronics/STM32CubeL5
2020-10-16 17:31:58 +02:00
Martin Kojtal
61aa6817f0
Merge pull request #13724 from harmut01/license_refactor
...
Add license notice to Arm copyrighted source files
2020-10-16 09:09:53 +01:00
Martin Kojtal
75f3b6cb1c
Merge pull request #13717 from ARMmbed/feature-ble-host-privacy
...
Feature ble host privacy
2020-10-15 15:07:54 +01:00
Martin Kojtal
bdb6bd50d4
Merge pull request #13757 from artokin/add-min-sens-wisun-param-master
...
wisun: Add APIs for Device min sense and CCA threshold table.
2020-10-15 15:05:58 +01:00
Martin Kojtal
b7551c2eb5
Merge pull request #13737 from mikaleppanen/cert_remove_master
...
Add certificate remove before add to wisun tasklet
2020-10-15 13:53:28 +01:00
Martin Kojtal
2776687dac
Merge pull request #13707 from paul-szczepanek-arm/fix-esp8266
...
Fix ESP8266
2020-10-15 13:51:49 +01:00
Harrison Mutai
4fad1112e5
Add SPDX license identifier to Arm files
...
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
Harrison Mutai
d1d6bf51b3
Add license notice to Arm copyrighted source files
...
Scancode found missing license notices in our source files. This commit
addresses those issues by adding an Apache-2.0 notice to source files
highlighted.
2020-10-15 10:46:35 +01:00
George Beckstein
9a6d207585
Update GattServer Callback API
...
Update parameters passed to onDataSent, onUpdatesEnabled/Disabled, and onConfirmationReceived callbacks.
Deprecate single-callback-registering functions for event handling in lieu of the new EventHandler-based API.
Introduce new GattServer::EventHandler callback functions to replace the deprecated versions.
2020-10-14 12:44:12 -04:00
George Beckstein
cda2c8bb8d
Introduce ChainableGapEventHandler subclass of ChainableEventHandler
...
The ChainableGapEventHandler enables chaining together Gap::EventHandlers so separate parts of an application can be notified of Gap events as needed. The application can register multiple Gap::EventHandler objects to one ChainableGapEventHandler and then set the global Gap::EventHandler to the ChainableGapEventHandler. All registered EventHandlers will then be called when a Gap Event occurs.
2020-10-14 12:44:09 -04:00
George Beckstein
751674b962
Introduce ChainableEventHandler and ChainableGattServerEventHandler classes.
...
Common functionality has been split off into a generic ChainableEventHandler for use by other EventHandler implementations. The ChainableEventHandler is essentially singly-linked list that propagates callbacks to all objects in the list.
The ChainableGattServerEventHandler enables chaining together GattServer::EventHandlers. An application can register separate event handlers (eg: for different services that need to handle GattServer events) and then set the global GattServer::setEventHandler to the instance of ChainableGattServerEventHandler with all registered GattServer::EventHandlers.
2020-10-14 12:42:25 -04:00
Vincent Coubard
5f1b716bfb
Merge pull request #13760 from paul-szczepanek-arm/privacy-fix-ifdef
...
Fix conditional compilation for ble
2020-10-14 13:35:16 +01:00
Paul Szczeanek
119d459361
fix removed friend function
2020-10-14 09:58:11 +01:00
Paul Szczeanek
9f09bb4956
rename private address controller to match security manager
2020-10-13 17:40:37 +01:00
Paul Szczeanek
3f9798b52d
Fix conditional compilation based on config
2020-10-13 17:32:49 +01:00
Vincent Coubard
2a4a097a93
BLE: Take advantage of controller based address resolution on WB55
2020-10-13 16:16:48 +01:00
Vincent Coubard
e1842ccd87
BLE: Workaround for WB55 connection event
...
The connection event reported by the WB55 is incorrect if controller privacy is not enable and the peer connects with an unknown private resolvable address: The RPA field contains the connection address (it should be empty) and the peer address is all FF while it should be equal to the connection address.
2020-10-13 16:16:17 +01:00
Debdeep Saha
986f9dd946
Resolved comments.
2020-10-13 15:11:27 +03:00
Debdeep Saha
6c84032a33
Added APIs for Device min sense and CCA threshold table.
...
-Added get, set and validate API for device min sens.
-Added get API for CCA threshold table.
2020-10-13 14:56:29 +03:00
Martin Kojtal
05489818e9
Merge pull request #13610 from boraozgen/bugfix/deactivate-context
...
Fix #13490 Cellular disconnect does not deactivate context
2020-10-13 11:22:33 +01:00
Martin Kojtal
83579b1aa5
Merge pull request #13704 from paul-szczepanek-arm/reset-fix
...
ble: reset transport last and reset the default chars in gatt server
2020-10-13 11:21:21 +01:00
Martin Kojtal
77f3f5ebaa
Merge pull request #13714 from mikaleppanen/mesh_global_up_master
...
nanostack: mesh interface global up is indicated always on bootstrap
2020-10-13 11:20:48 +01:00
Martin Kojtal
00402b71d5
Merge pull request #13718 from artokin/nanostack_release_v12_6_0_for_master
...
Nanostack release v12.6.0
2020-10-13 11:19:11 +01:00
Martin Kojtal
35f97f4e98
Merge pull request #13729 from AGlass0fMilk/implicit-cccd
...
BLE: Enable getting an implicitly-created CCCD through `GattCharacteristic::getDescriptor`
2020-10-13 11:18:40 +01:00
Martin Kojtal
6fc886a37f
Merge pull request #13742 from mikaleppanen/radius_init
...
Add initialization to radius retry values
2020-10-13 11:16:25 +01:00
George Beckstein
46bc1577eb
Ignore unneeded Nordic BSP files
2020-10-12 23:28:15 -04:00
Balaji Subramanyam
ada44a62f4
Add nsapi types for IP TOS and fix opt length check
2020-10-12 13:09:43 -07:00
Johnny Robeson
e27571fb83
This fixes lto type mismatch warnings in 3 functions
...
```sh
[Warning] pal_rtc.h@76,6: type of 'PalRtcCompareSet' does not match original declaration [-Wlto-type-mismatch]
[Warning] pal_rtc.h@73,6: type of 'PalRtcEnableCompareIrq' does not match original declaration [-Wlto-type-mismatch]
[Warning] pal_rtc.h@74,6: type of 'PalRtcDisableCompareIrq' does not match original declaration [-Wlto-type-mismatch]
```
2020-10-12 07:02:18 -04:00
George Beckstein
f9af08c0ad
Add error if allocation of cccd attribute fails
2020-10-09 09:47:05 -04:00
Mika Leppänen
09b489bfc2
Added initialization to radius retry values
...
This corrects uninitialized scalar field coverity warning.
2020-10-08 13:57:07 +03:00
Mika Leppänen
657795e621
Added certificate remove before add to wisun tasklet
...
This prevents tasklet from adding own certificates multiple times
to Nanostack in case bootstrap is made again.
2020-10-08 12:08:56 +03:00
George Beckstein
fa2c3633dd
Add doxygen guard to private function
2020-10-07 13:32:17 -04:00
George Beckstein
eccb3e9bda
Make setImplicitCCCD private and add impl::GattServer as a friend class
2020-10-07 13:31:09 -04:00
George Beckstein
ca9b70582c
Remove nullptr check when deleting _implicit_cccd
2020-10-07 13:12:08 -04:00
Arto Kinnunen
8598064774
Use macro for isdigit
2020-10-07 17:44:36 +03:00
Arto Kinnunen
a53233da08
Follow Mbed OS coding style
2020-10-07 17:37:56 +03:00
Arto Kinnunen
d02561e5e9
Update WisunBorderRouter class
...
Add set_dns_query_result to WisunBorderRouter.
2020-10-07 17:36:22 +03:00
Arto Kinnunen
da8f3bebca
Follow Mbed OS coding style
2020-10-07 17:26:04 +03:00
Arto Kinnunen
2e790b5ff1
Review corrections
...
-Check address version NSAPI_UNSPEC
-Disable traces
-More specific interface ID parsing
-Harmonize return values
2020-10-07 17:24:59 +03:00
Arto Kinnunen
00ebd65784
Mesh: Enable Nanostack DNS cache usage
...
Inherit methods gethostbyname, gethostbyname_async and get_dns_server
to Nanostack class. Methods will try to find DNS server address
or DNS query results from Nanostack DNS cache.
2020-10-07 17:23:45 +03:00
George Beckstein
5c82533d06
Enabled getting an implicitly-created CCCD through GattCharacteristic::getDescriptor
2020-10-06 19:26:32 -04:00
Arto Kinnunen
51b8b10e65
Merge commit 'b9f37539182bfa5002208dba6885293e17700849'
...
* commit 'b9f37539182bfa5002208dba6885293e17700849':
Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from d879e6db87..09d9e24f2d
2020-10-05 15:05:30 +03:00
Vincent Coubard
f32141a051
BLE: Notify application when advertising start or stop
...
Applicable for legacy and extended advertising.
2020-10-05 11:54:05 +01:00
Paul Szczeanek
6ee5740941
use _initiating to block scan manipulation
2020-10-05 11:54:05 +01:00
Paul Szczeanek
f0bbc4c7ae
use enum for state
2020-10-05 11:54:05 +01:00
Paul Szczeanek
b0086919ed
scan forever and allow cancellation
2020-10-05 11:54:05 +01:00
Paul Szczeanek
18c218b027
allow host resolved address to be used for connection
2020-10-05 11:54:04 +01:00
Vincent Coubard
4744c87b6c
Set privacy mode to device mode in LL.
...
Do not enable address resolution when a new entry is added.
2020-10-05 11:54:04 +01:00
Vincent Coubard
bb35cba134
BLE: Add function to signal privacy initialization.
2020-10-05 11:54:04 +01:00
Paul Szczeanek
5216a9aa8c
only apply policy if privacy enabled
2020-10-05 11:54:04 +01:00
Paul Szczeanek
d4360383e1
do not reject conn if no bond
2020-10-05 11:54:04 +01:00
Paul Szczeanek
b67230cbdb
apply peripheral policy on ll privacy
2020-10-05 11:54:04 +01:00
Paul Szczeanek
ec2808be31
filter based on resolving list size
2020-10-05 11:54:04 +01:00
Paul Szczeanek
457268825d
add nrf override for host resolution
2020-10-05 11:54:04 +01:00
Paul Szczeanek
03cc0f9940
host privacy config option to enable it
2020-10-05 11:54:04 +01:00
Vincent Coubard
76f89f6f89
BLE: Factorize peripheral privacy applied when connected
2020-10-05 11:54:04 +01:00
Vincent Coubard
e4b317c1b1
BLE: Add workaround for cordio use of global random address
...
In Cordio, the global random address is used when the local device is connected instead of the advertising set one.
This can cause pairing to fail if the advertising set address and the global random address are different.
This workaround forces the global random address to be set when advertising is started and extended advertising is present.
2020-10-05 11:54:04 +01:00
Vincent Coubard
8fe2d7ebbe
BLE: Report connection internally when address resolution has completed.
2020-10-05 11:54:03 +01:00
Vincent Coubard
8716298ea2
BLE: Update DB entry if current entry doesn't match requested EDIV and RAND
2020-10-05 11:54:03 +01:00
Vincent Coubard
4c1afe8e83
BLE: Update identity address when retrieved from the DB
2020-10-05 11:54:03 +01:00
Vincent Coubard
7c8a754667
BLE: Remove set advertising timeout from SM pal
2020-10-05 11:54:03 +01:00
Vincent Coubard
02667389db
BLE: Fix insertion to host resolving list.
2020-10-05 11:54:03 +01:00
Vincent Coubard
3a632a3685
BLE: Check if the resolving list item is populated instead of IRK validity
2020-10-05 11:54:03 +01:00
Vincent Coubard
1daee237e9
BLE: Queue address resolution in event queue to avoid synchronous execution
...
Otherwise when no IRK are available, the process will execute synchronously, calling the callback before the return of the function.
2020-10-05 11:54:03 +01:00
Vincent Coubard
dee20fe5a7
BLE: Check if extended advertising is available to clear advertising set upon connection
2020-10-05 11:54:03 +01:00
Paul Szczeanek
f126793f20
Add host reolustion for advertising and connections
2020-10-05 11:53:59 +01:00
Paul Szczeanek
593c1776b4
add EventList class for storing pending events
2020-10-05 11:53:23 +01:00
Paul Szczeanek
44b2e73ef1
Add setters to events
2020-10-05 11:53:23 +01:00
Paul Szczeanek
df17942c2c
remove unused enhanced conn complete
2020-10-05 11:53:23 +01:00
Paul Szczeanek
0a3cd69fc6
event handler should not affect internal state
2020-10-05 11:53:22 +01:00