Commit Graph

1406 Commits (07cd9a10c7ea47f99ce22bfae518d0031c248022)

Author SHA1 Message Date
paul-szczepanek-arm fa930586a7 error when there is no handler 2019-01-25 14:29:59 +00:00
paul-szczepanek-arm 5077d6faaf add missing null checks 2019-01-25 14:29:59 +00:00
paul-szczepanek-arm 4aca75aecb fix truncation 2019-01-25 14:29:59 +00:00
Nic Costa 3b99566226 Remove own_oob and peer_oob flags from Nordic PAL
the own_oob and peer_oob flags were not being set to 1 even though
an OOB pairing request was in progress, which therefore prevented
OOB data from being passed down to the softdevice during a OOB
pairing operation, thus causing the OOB pairing process to fail.
2019-01-25 14:29:59 +00:00
Nic Costa 09bd512da8 Fix parameters provided to oob generator function
The function in the Nordic SDK for generating OOB data,
sd_ble_gap_lesc_oob_data_get, requires local LE Secure Connection
P256 Public Keys in {X,Y} format, but was being supplied with
the local secret key.  This caused the generated OOB data to
fail to correspond to the Public Keys, which caused a mismatch
during the OOB pairing phase of the OOB confirmation value by
a remote peer when attempting to verify the OOB data against
the Public Keys, ultimately causing the OOB pairing request to
fail with a Confirm Value Failed (0x04) error.
2019-01-25 14:29:59 +00:00
Nic Costa c5edbe05b0 Fix race condition when generating OOB data
The GenericSecurityManager tracks the most recent OOB data generated
by the PAL and the PAL function to generate OOB data is expected to
be asynchronous such that the OOB data is returned via a callback.

There was a race condition on the security manager's oob data variable
because it was cleared (set to all zeros) after calling PAL generate.
The expectation was that the clear operation would occur before the
callback executed, but this is proving to not be the case.  Instead,
the callback is being executed as if it were syncronous with PAL
generate, then PAL generate returns and the oob data is cleared,
thereby losing the generated oob data that was set in the callback.

To fix the issue, clear the oob data variables before calling into
the PAL.
2019-01-25 14:29:59 +00:00
Guy Wild 9198f937b2 Update iBeacon.h
Technical author review
2019-01-25 14:29:59 +00:00
offirko b1106ff859 Review updates 2019-01-25 14:29:59 +00:00
offirko 64eff0a17b Minor Doxygen fixes for BufferedBlockDevice and iBeacon 2019-01-25 14:29:59 +00:00
Leszek Rusinowicz 582c84a4af Moved nextTimeout variable out of critical section in BLE::callDispatcher. Initialization of Timeout object contains critical section inside constructor. Initialization inside critical section caused assertion failing under "debug" profile. 2019-01-25 14:29:59 +00:00
Jarno Lamsa 1cad77bbd7 Update and cleanup BLE.h doxygen 2019-01-14 13:06:14 +00:00
Donatien Garnier c60b882565 Fixes for features/FEATURE_BLE/ble/services/EddystoneConfigService.h 2019-01-14 13:06:14 +00:00
Donatien Garnier 235921fb11 Fixes for features/FEATURE_BLE/ble/services/EddystoneService.h 2019-01-14 13:06:14 +00:00
Antti Kauppila aebb55baa1 mbed.h includes removed 2019-01-14 13:06:14 +00:00
paul-szczepanek-arm 89e35bf16e call advertising end even if stopped by us 2019-01-14 13:06:14 +00:00
paul-szczepanek-arm 9b6c139678 suppress scan timeout if we disabled scanning 2019-01-14 13:06:14 +00:00
Desmond Chen a82b30ef0b BLE: NRF52 returns tx/rx phy on phy update callback 2019-01-14 13:06:14 +00:00
Desmond Chen 1cb1a49752 Fix BLE long write execution failure 2018-12-27 22:26:03 -06:00
Naveen Kaje c1ef30e851 BLE: Update toolchain.h with mbed_toolchain.h
Fixes the following warning

[Warning] toolchain.h@24,0: #1215-D: #warning directive:
toolchain.h has been replaced by mbed_toolchain.h,
please update to mbed_toolchain.h [since mbed-os-5.3]
2018-12-27 22:25:59 -06:00
Vincent Coubard bbf0adf337 BLE: Improve scan response process explanation. 2018-12-27 22:25:56 -06:00
Vincent Coubard af8e1f5f6c BLE: Fix common/Duration.h doc. 2018-12-27 22:25:56 -06:00
Paul Szczepanek c74f2561e0 fix DM_CONN_ID_NONE loop condition 2018-12-27 22:25:55 -06:00
Vincent Coubard 6c5defac00 BLE: Fix iteration on connections in CordioGattServer. 2018-12-27 22:25:55 -06:00
paul-szczepanek-arm 52b0f21720 remove noreturn error function to avoid compilation issues 2018-12-11 16:14:49 -06:00
paul-szczepanek-arm d9ec798f67 fixed ARM compilation problem caused by noreturn 2018-12-11 16:14:49 -06:00
paul-szczepanek-arm 70d588474e working ARM lib 2018-12-11 16:14:49 -06:00
paul-szczepanek-arm c972982205 working libs for GCC and IAR 2018-12-11 16:14:49 -06:00
Donatien Garnier 4a81acca8b Replace ARMCC libs 2018-12-11 16:14:49 -06:00
Donatien Garnier 1dda09422d ARMCC only likes armar 2018-12-11 16:14:48 -06:00
Donatien Garnier 0c785ac445 Remove use of GPIOs (LEDs and diag pins) from Cordio LL for Nordic 2018-12-11 16:14:48 -06:00
Donatien Garnier 345a3ed931 Remove duplicate symbols in libcordio_stack.a 2018-12-11 16:14:48 -06:00
paul-szczepanek-arm 368a90b944 iar libs for cordio 2018-12-11 16:14:48 -06:00
paul-szczepanek-arm c9fb69c8e8 added arm version of libs 2018-12-11 16:14:48 -06:00
paul-szczepanek-arm 1b18dc0aad baseband clock rate increased to 1 000 000 2018-12-11 16:14:48 -06:00
Vincent Coubard 71ed27e31a BLE: Fix the number of advertising sets supported
The number of advertising sets supported is the minimum of advertising sets supported beween the host and the controller.
2018-12-11 16:14:48 -06:00
Vincent Coubard 744ef59e03 BLE: Set the number of the advertising sets supported by the host to 3. 2018-12-11 16:14:48 -06:00
Vincent Coubard 65f688e660 BLE: Set the number of supported phy by the host to 3. 2018-12-11 16:14:48 -06:00
Vincent Coubard a7d43fce61 BLE: Inject random static address during reset sequence. 2018-12-11 16:14:48 -06:00
Vincent Coubard a59a2e925f BLE: Add an option to inject the random static address during the reset sequence. 2018-12-11 16:14:48 -06:00
Vincent Coubard d1af84aa61 BLE: Revert changes introduced by debugging. 2018-12-11 16:14:48 -06:00
Vincent Coubard bb2870fdd1 BLE: Fix recursion in ble::advertising_data_status_t raw constructor. 2018-12-11 16:14:47 -06:00
Vincent Coubard 991c723f93 BLE: Fix address type allowed to create a periodic sync. 2018-12-11 16:14:47 -06:00
Vincent Coubard 49717e4afa BLE: Allow null value for periodic interval in advertising report event. 2018-12-11 16:14:47 -06:00
paul-szczepanek-arm 11ac1e0a46 copy periodic payload 2018-12-11 16:14:47 -06:00
paul-szczepanek-arm 8a3b5f46ad always set filter policy 2018-12-11 16:14:47 -06:00
paul-szczepanek-arm deffc3f42b fix swapped errors 2018-12-11 16:14:47 -06:00
paul-szczepanek-arm e1e20f8e17 check return value of DmSyncStart 2018-12-11 16:14:47 -06:00
paul-szczepanek-arm 8c262e72d5 fix return value 2018-12-11 16:14:47 -06:00
Vincent Coubard 4bb0964712 BLE: Set advertising random address when appropriate. 2018-12-11 16:14:47 -06:00
Vincent Coubard 5ffa065d98 BLE: Fix conversion of advertising type
Previously, we were passing the event_properties as defined by the Bluetooth spec which is not what DmAdvConfig expect as the advertising type passed to DmAdvConfig is Cordio tailored (and incomplete).
2018-12-11 16:14:47 -06:00