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

Commit 255e02f8 authored by Chris Manton's avatar Chris Manton
Browse files

Add main/shim/helpers::ToAddressWithTypeFromLegacy

Bug: 171568335
Test: CtsVerifier insecure client/server priority
Tag: #refactor

Change-Id: I0832728d579930bf39cda0df4602f661bbfeca2f
parent 698b89cf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -68,6 +68,12 @@ inline hci::AddressWithType ToAddressWithType(const RawAddress& legacy_address,
  return hci::AddressWithType{address, type};
}

inline hci::AddressWithType ToAddressWithTypeFromLegacy(
    const tBLE_BD_ADDR& legacy_address_with_type) {
  return ToAddressWithType(legacy_address_with_type.bda,
                           legacy_address_with_type.type);
}

inline tBLE_BD_ADDR ToLegacyAddressWithType(
    const hci::AddressWithType& address_with_type) {
  tBLE_BD_ADDR legacy_address_with_type;