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

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

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

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

Change-Id: I4bca7382033da6d69a9dcd7e799bdcb5f88440c3
parents 190e8924 ad208940
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;