mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-22 15:40:16 +00:00
bluetooth: indicated identity address in resolved address types
This commit is contained in:
parent
ff1cb1067d
commit
3739bc96e4
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
## Changed
|
||||
- GAP: add gap_set_peer_privacy_mode with default LE_PRIVACY_MODE_DEVICE
|
||||
- bluetooth: indicated identity address in resolved address types
|
||||
|
||||
## Release v1.5.5
|
||||
|
||||
|
@ -63,13 +63,17 @@ typedef uint8_t bd_addr_t[BD_ADDR_LEN];
|
||||
|
||||
/**
|
||||
* Address types
|
||||
* @note: BTstack uses a custom addr type to refer to classic ACL and SCO devices
|
||||
*/
|
||||
typedef enum {
|
||||
// Public Device Address
|
||||
BD_ADDR_TYPE_LE_PUBLIC = 0,
|
||||
// Random Device Address
|
||||
BD_ADDR_TYPE_LE_RANDOM = 1,
|
||||
BD_ADDR_TYPE_LE_PRIVAT_FALLBACK_PUBLIC = 2,
|
||||
BD_ADDR_TYPE_LE_PRIVAT_FALLBACK_RANDOM = 3,
|
||||
// Public Identity Address (Corresponds to Resolved Private Address)
|
||||
BD_ADDR_TYPE_LE_PUBLIC_IDENTITY = 2,
|
||||
// Random (static) Identity Address (Corresponds to Resolved Private Address)
|
||||
BD_ADDR_TYPE_LE_RANDOM_IDENTITY = 3,
|
||||
// internal BTstack addr types for Classic connections
|
||||
BD_ADDR_TYPE_SCO = 0xfc,
|
||||
BD_ADDR_TYPE_ACL = 0xfd,
|
||||
BD_ADDR_TYPE_UNKNOWN = 0xfe, // also used as 'invalid'
|
||||
|
@ -607,8 +607,8 @@ static bool hci_is_le_connection_type(bd_addr_type_t address_type){
|
||||
switch (address_type){
|
||||
case BD_ADDR_TYPE_LE_PUBLIC:
|
||||
case BD_ADDR_TYPE_LE_RANDOM:
|
||||
case BD_ADDR_TYPE_LE_PRIVAT_FALLBACK_PUBLIC:
|
||||
case BD_ADDR_TYPE_LE_PRIVAT_FALLBACK_RANDOM:
|
||||
case BD_ADDR_TYPE_LE_PUBLIC_IDENTITY:
|
||||
case BD_ADDR_TYPE_LE_RANDOM_IDENTITY:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user