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

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

Merge "Add shim role helper main/shim/helpers::ToLegacyRole" am: 6b3c34a1

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

Change-Id: I75bf6c746da5de1ecafb4e5ba61a9414c2b2f49c
parents 455ea349 6b3c34a1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -116,6 +116,10 @@ inline BT_HDR* MakeLegacyBtHdrPacket(
  return buffer;
}

inline uint8_t ToLegacyRole(hci::Role role) {
  return static_cast<uint8_t>(role);
}

inline tHCI_STATUS ToLegacyHciErrorCode(hci::ErrorCode reason) {
  switch (reason) {
    case hci::ErrorCode::SUCCESS: