Martin Kojtal
4019efb21d
Merge pull request #9399 from paul-szczepanek-arm/fix-null-check
...
BLE: fix missing null checks on Gap event handler
2019-01-21 13:43:16 +01:00
Martin Kojtal
ad5bcfc1de
Merge pull request #9427 from paul-szczepanek-arm/fix-truncation
...
BLE: fix possible truncation
2019-01-21 13:42:07 +01:00
paul-szczepanek-arm
42e4290160
error when there is no handler
2019-01-18 14:55:38 +00:00
paul-szczepanek-arm
001919e81a
fix truncation
2019-01-18 12:10:30 +00:00
Cruz Monrreal
fd2a96e7ad
Merge pull request #9339 from costanic/fix_oob
...
Fix Out-Of-Band (OOB) data generation for BLE OOB pairing
2019-01-17 21:51:54 -06:00
Cruz Monrreal
3b43a2d976
Merge pull request #9333 from offirko/offir_doxygen
...
Minor Doxygen fixes for BufferedBlockDevice and iBeacon
2019-01-17 21:51:14 -06:00
Martin Kojtal
284781a565
Merge pull request #9096 from pan-/fix-enforce-size-limits
...
BLE: Enforce advertising data payload limits
2019-01-17 12:41:57 +01:00
Cruz Monrreal
d0665c8458
Merge pull request #9365 from lrusinowicz/cordio_ble_fix
...
Fix for asserion failing in BLE::callDispatcher with gcc debug profile.
2019-01-16 22:03:16 -06:00
paul-szczepanek-arm
fa36ed02ee
add missing null checks
2019-01-16 14:56:54 +00:00
Leszek Rusinowicz
f294447c25
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-14 11:13:28 +01:00
Nic Costa
7795e30bce
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-11 08:54:30 -06:00
Nic Costa
24d793ce5d
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-11 08:54:30 -06:00
Nic Costa
55507eaf75
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-11 08:54:30 -06:00
Guy Wild
9b3adc2795
Update iBeacon.h
...
Technical author review
2019-01-10 17:04:23 +02:00
Jarno Lamsa
d9e24b25e4
Update and cleanup BLE.h doxygen
2019-01-10 16:12:56 +02:00
offirko
b21576c8cf
Review updates
2019-01-10 15:42:28 +02:00
offirko
61926092a2
Minor Doxygen fixes for BufferedBlockDevice and iBeacon
2019-01-10 14:35:09 +02:00
Cruz Monrreal
54f759176b
Merge pull request #9210 from AnttiKauppila/mbed_h_fix
...
mbed.h includes removed
2019-01-04 10:27:30 -06:00
Donatien Garnier
9dae672ac0
Fixes for features/FEATURE_BLE/ble/services/EddystoneConfigService.h
2019-01-04 09:54:14 +00:00
Donatien Garnier
bc2bd89f83
Fixes for features/FEATURE_BLE/ble/services/EddystoneService.h
2019-01-04 09:50:24 +00:00
Martin Kojtal
0f7381d436
Merge pull request #9058 from pan-/fix-scan-timeout
...
BLE: suppress scan timeout if we disabled scanning
2019-01-04 08:41:36 +00:00
paul-szczepanek-arm
3be792a3b3
simplify for statement
2019-01-03 12:24:33 +00:00
Desmond Chen
f281e06e46
BLE: NRF52 returns tx/rx phy on phy update callback
2019-01-03 10:11:14 +08:00
paul-szczepanek-arm
dd1d473375
future proof return size
2019-01-02 15:42:14 +00:00
paul-szczepanek-arm
a66ffa34be
add constructor suggested by Vincent
2019-01-02 15:34:50 +00:00
paul-szczepanek-arm
8b39071cd8
make function name longer
2019-01-02 14:29:30 +00:00
Antti Kauppila
02b0f79e15
mbed.h includes removed
2018-12-28 14:36:10 +02:00
Desmond Chen
30ca813f07
Fix BLE long write execution failure
2018-12-19 08:08:16 -08:00
paul-szczepanek-arm
67db321500
check illegal adv params combimnation
2018-12-13 17:52:18 +00:00
paul-szczepanek-arm
ff0a2a907e
check connectible sizes
2018-12-13 17:52:00 +00:00
paul-szczepanek-arm
c5bad804e2
add asserts for illegal compinations of adv params
2018-12-13 17:51:45 +00:00
paul-szczepanek-arm
7dd90e1810
Docuement active set length and add informative call for querying the limit
2018-12-13 17:51:10 +00:00
paul-szczepanek-arm
e1cf516100
fix max payload and hci length values
2018-12-13 17:50:53 +00:00
paul-szczepanek-arm
50d1818d72
call advertising end even if stopped by us
2018-12-13 17:33:36 +00:00
Naveen Kaje
448c4d5d89
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-10 13:57:52 -06:00
Cruz Monrreal
23022dd0f9
Merge pull request #8998 from pan-/ble-extended-advertising-fixes
...
Ble extended advertising fixes
2018-12-10 10:36:05 -06:00
paul-szczepanek-arm
13a10f3efa
suppress scan timeout if we disabled scanning
2018-12-10 16:31:34 +00:00
paul-szczepanek-arm
a545da7790
remove noreturn error function to avoid compilation issues
2018-12-10 13:54:09 +00:00
paul-szczepanek-arm
c998287170
fixed ARM compilation problem caused by noreturn
2018-12-10 13:47:14 +00:00
paul-szczepanek-arm
97df8f5ed9
working ARM lib
2018-12-10 13:46:26 +00:00
paul-szczepanek-arm
642b2dfb57
working libs for GCC and IAR
2018-12-10 09:12:03 +00:00
Donatien Garnier
6f94339aed
Replace ARMCC libs
2018-12-08 08:43:20 +00:00
Donatien Garnier
db6b09a70f
ARMCC only likes armar
2018-12-07 23:45:26 +00:00
Donatien Garnier
3f00595e62
Remove use of GPIOs (LEDs and diag pins) from Cordio LL for Nordic
2018-12-07 22:46:27 +00:00
Donatien Garnier
674ff288d6
Remove duplicate symbols in libcordio_stack.a
2018-12-07 22:04:19 +00:00
paul-szczepanek-arm
a48369691e
iar libs for cordio
2018-12-07 17:56:36 +00:00
paul-szczepanek-arm
bdabada477
added arm version of libs
2018-12-07 17:41:50 +00:00
paul-szczepanek-arm
c13dcf3387
baseband clock rate increased to 1 000 000
2018-12-07 17:12:58 +00:00
Vincent Coubard
e7f81fe7e8
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-07 13:26:35 +00:00
Vincent Coubard
4e5240b743
BLE: Set the number of the advertising sets supported by the host to 3.
2018-12-07 13:24:52 +00:00