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

Commit 679e6e10 authored by Chris Manton's avatar Chris Manton
Browse files

Add hci role text

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: acts -tc BleCocTest
Test: ble paired 2 phones
Change-Id: I713403023a53905821e39ad9a8251bab9a8779ca
parent 572b0ac0
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -848,6 +848,16 @@ enum : uint8_t {
  HCI_ROLE_UNKNOWN = 0xff,
};
typedef uint8_t hci_role_t;
inline std::string RoleText(hci_role_t role) {
  switch (role) {
    case HCI_ROLE_MASTER:
      return std::string("master");
    case HCI_ROLE_SLAVE:
      return std::string("slave");
    default:
      return std::string("unknown");
  }
}

/* HCI mode defenitions */
#define HCI_MODE_ACTIVE 0x00