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

Commit 32e31dc1 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 am: 5b29217e

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

Change-Id: I6fd5ecf7a48c40368ca991407adde68e30e96ec4
parents 72848673 5b29217e
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: