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

Commit 508ba6d6 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Add ToLegacyHciMode am: 164f3fd7 am: d8aee121

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib1e7b51bf4727a5b3f1065a22ef899cebafa87f5
parents 1e602906 d8aee121
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
#include "osi/include/allocator.h"
#include "stack/include/bt_types.h"
#include "stack/include/hci_error_code.h"
#include "stack/include/hcidefs.h"
#include "types/ble_address_with_type.h"

namespace bluetooth {
@@ -216,6 +217,10 @@ inline tHCI_STATUS ToLegacyHciErrorCode(hci::ErrorCode reason) {
  }
}

inline tHCI_MODE ToLegacyHciMode(hci::Mode mode) {
  return static_cast<tHCI_MODE>(mode);
}

namespace debug {

inline void DumpBtHdr(const BT_HDR* p_buf, const char* token) {