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

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

Add ToLegacyHciMode am: 164f3fd7

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifb3668294989bca90b6183a948c9ecb7fcff39ee
parents 710154af 164f3fd7
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) {