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

Commit ad208940 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add main/shim/helpers::ToAddressWithTypeFromLegacy" am: d546350d

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1478700

Change-Id: I66cfd4c5c4e84711ce31204365ac8a9bfab8d9ae
parents f36e7253 d546350d
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;