component/bt: Added the judgment to check the address is public or not.
This commit is contained in:
parent
ae7269d39d
commit
a03e5f95be
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ BOOLEAN btm_random_pseudo_to_identity_addr(BD_ADDR random_pseudo, UINT8 *p_stati
|
||||||
if (p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) {
|
if (p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) {
|
||||||
* p_static_addr_type = p_dev_rec->ble.static_addr_type;
|
* p_static_addr_type = p_dev_rec->ble.static_addr_type;
|
||||||
memcpy(random_pseudo, p_dev_rec->ble.static_addr, BD_ADDR_LEN);
|
memcpy(random_pseudo, p_dev_rec->ble.static_addr, BD_ADDR_LEN);
|
||||||
if (controller_get_interface()->supports_ble_privacy()) {
|
if (controller_get_interface()->supports_ble_privacy() && p_dev_rec->ble.ble_addr_type != BLE_ADDR_PUBLIC) {
|
||||||
*p_static_addr_type |= BLE_ADDR_TYPE_ID_BIT;
|
*p_static_addr_type |= BLE_ADDR_TYPE_ID_BIT;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue