Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcb745df authored by Chris Manton's avatar Chris Manton
Browse files

Add btm_identity_addr_to_random_pseudo_from_address_with_type

Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Id825a84e4ffabc0f0d42a97410c0622643bb0516
parent f6cfcc36
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -273,6 +273,12 @@ bool btm_identity_addr_to_random_pseudo(RawAddress* bd_addr,
  return false;
}

bool btm_identity_addr_to_random_pseudo_from_address_with_type(
    tBLE_BD_ADDR* address_with_type, bool refresh) {
  return btm_identity_addr_to_random_pseudo(
      &(address_with_type->bda), &(address_with_type->type), refresh);
}

/*******************************************************************************
 *
 * Function         btm_random_pseudo_to_identity_addr
+2 −0
Original line number Diff line number Diff line
@@ -139,6 +139,8 @@ extern uint64_t btm_get_next_private_addrress_interval_ms();
extern bool btm_identity_addr_to_random_pseudo(RawAddress* bd_addr,
                                               uint8_t* p_addr_type,
                                               bool refresh);
extern bool btm_identity_addr_to_random_pseudo_from_address_with_type(
    tBLE_BD_ADDR* address_with_type, bool refresh);
extern bool btm_random_pseudo_to_identity_addr(RawAddress* random_pseudo,
                                               uint8_t* p_identity_addr_type);
extern void btm_ble_refresh_peer_resolvable_private_addr(