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
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
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
Vincent Coubard
5cb05958a9
BLE: Add function to get the device random static address.
2020-10-05 11:53:22 +01:00
Vincent Coubard
9eac36879a
BLE: improve scan state bookkeeping
2020-10-05 11:53:22 +01:00
Vincent Coubard
48f4cfbe04
BLE: return stack busy instead of invalid state when applicable
...
enabling/disabling scanning and advertising operations can be prevented if the previous operations hasn't completed.
Return that the stack is busy and cannot fulfill the request at the moment rather than the state is invalid.
2020-10-05 11:53:22 +01:00
Vincent Coubard
3c22f8ae1d
BLE: privacy tracing cleanup
2020-10-05 11:53:22 +01:00
Vincent Coubard
19d89366d7
BLE: Private address when initiating connection
2020-10-05 11:53:22 +01:00
Vincent Coubard
c39d03a531
BLE: Implement private address rotation for initiating.
2020-10-05 11:53:22 +01:00
Vincent Coubard
4685322f4e
BLE: Add routine that computes the random address to use depending on the procedure.
2020-10-05 11:53:21 +01:00
Vincent Coubard
559640cbd5
BLE: check LL resolution availability before enabling it.
2020-10-05 11:53:21 +01:00
Vincent Coubard
e5128689aa
BLE: Fix random static address storage
2020-10-05 11:53:21 +01:00
Vincent Coubard
924f8b1dc9
BLE: Update state when scan started/stopped callback received.
2020-10-05 11:53:21 +01:00
Vincent Coubard
d8c6820cbd
BLE: Add callback for scan started and stoped.
2020-10-05 11:53:21 +01:00
Vincent Coubard
b8549ec91d
BLE: rename address resolution handler.
2020-10-05 11:53:21 +01:00
Vincent Coubard
4b853956d9
BLE: Add resolvable and non resolvable private address rotation with advertising
2020-10-05 11:53:15 +01:00
Vincent Coubard
f810ec4c2a
BLE: Add initiating flag into gap to track if the local device tries to connect to a peer.
2020-10-05 11:50:34 +01:00
Vincent Coubard
7e16ee448e
BLE: Bind address controller with Gap
2020-10-05 11:50:33 +01:00
Vincent Coubard
313676a089
BLE: Add gap handlers to be informed when advertising as started or been stopped
2020-10-05 11:50:33 +01:00
phst
c0021e2147
Add missing defines to activate/deactivate BLE features
2020-09-17 11:02:25 +02:00
Paul Szczeanek
77ba844ef9
double negation fixed and ifs normalised
2020-09-09 17:08:32 +01:00
Vincent Coubard
029ed3a0c5
BLE: Cleanup BLEInstanceBas implementation
2020-08-25 11:33:59 +01:00
Vincent Coubard
b42abd0e25
BLE: cleanup PalEvent queue and implementation
2020-08-25 11:33:59 +01:00
Vincent Coubard
bc259c561d
BLE: cleanup generic sources
2020-08-25 11:32:37 +01:00
Vincent Coubard
13c358717f
BLE: Move GATT public header into ble/gatt
...
Move private headers GattServerEvents.h, GapEvents,h and GapType.h in relevant part of the source tree.
2020-08-25 11:26:26 +01:00
Vincent Coubard
e11bfb6514
BLE: move PAL headers into source/pal
2020-08-25 11:26:26 +01:00
Vincent Coubard
a45325995b
BLE: Move BleInstanceBase.h into source.
2020-08-25 11:26:26 +01:00
Vincent Coubard
381700a250
BLE: Move generic implementation and headers into source/generic
2020-08-25 11:26:26 +01:00