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

Commit 164f3fd7 authored by Chris Manton's avatar Chris Manton
Browse files

Add ToLegacyHciMode

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I6bdaf4b9d73fc95bb02518086bc89c1673a3d3cf
parent 468dc01d
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) {