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

Commit 3bb87198 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...

Merge "Add shim role helper main/shim/helpers::ToLegacyRole" am: 6b3c34a1 am: 5b29217e am: 32e31dc1

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

Change-Id: I7ea95f1049c1c15f6c7bbafc0533356fdc378876
parents b62401f8 32e31dc1
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: