diff options
Diffstat (limited to 'stack/btm')
-rw-r--r-- | stack/btm/btm_ble_bgconn.cc | 4 | ||||
-rw-r--r-- | stack/btm/btm_ble_int_types.h | 7 |
2 files changed, 1 insertions, 10 deletions
diff --git a/stack/btm/btm_ble_bgconn.cc b/stack/btm/btm_ble_bgconn.cc index f11a50ef4..f2f830749 100644 --- a/stack/btm/btm_ble_bgconn.cc +++ b/stack/btm/btm_ble_bgconn.cc @@ -209,11 +209,9 @@ bool btm_add_dev_to_controller(bool to_add, const RawAddress& bd_addr) { } else { /* not a known device, i.e. attempt to connect to device never seen before */ - uint8_t addr_type = - BTM_IS_PUBLIC_BDA(bd_addr) ? BLE_ADDR_PUBLIC : BLE_ADDR_RANDOM; started = true; if (to_add) - background_connection_add(addr_type, bd_addr); + background_connection_add(BLE_ADDR_PUBLIC, bd_addr); else background_connection_remove(bd_addr); } diff --git a/stack/btm/btm_ble_int_types.h b/stack/btm/btm_ble_int_types.h index e7a4be3e6..b53921108 100644 --- a/stack/btm/btm_ble_int_types.h +++ b/stack/btm/btm_ble_int_types.h @@ -85,13 +85,6 @@ inline bool BTM_BLE_IS_RESOLVE_BDA(const RawAddress& x) { return ((x.address)[0] & BLE_RESOLVE_ADDR_MASK) == BLE_RESOLVE_ADDR_MSB; } -#define BLE_PUBLIC_ADDR_MSB_MASK 0xC0 -/* most significant bit, bit7, bit6 is 10 to be public address*/ -#define BLE_PUBLIC_ADDR_MSB 0x80 -inline bool BTM_IS_PUBLIC_BDA(const RawAddress& x) { - return ((x.address)[0] & BLE_PUBLIC_ADDR_MSB_MASK) == BLE_PUBLIC_ADDR_MSB; -} - /* LE scan activity bit mask, continue with LE inquiry bits */ /* observe is in progress */ #define BTM_LE_OBSERVE_ACTIVE 0x80 |