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

Commit 0117f793 authored by Chris Manton's avatar Chris Manton
Browse files

gd: Add hci error code CONNECTION_FAILED_ESTABLISHMENT

Occurs when a connection ACL is requested to a given
device but there is already an existing ACL connection.

Bug: 145832107
Test: gd/cert/run --host
Tag: #refactor
Change-Id: I609374ba9376f2a1056971fc514d97615931c62a
parent b7ccae33
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -787,6 +787,7 @@ enum ErrorCode: 8 {
  LINK_LAYER_COLLISION = 0x23,
  ENCRYPTION_MODE_NOT_ACCEPTABLE = 0x25,
  CONTROLLER_BUSY = 0x3A,
  CONNECTION_FAILED_ESTABLISHMENT = 0x3E,
}

// Events that are defined with their respective commands
+3 −0
Original line number Diff line number Diff line
@@ -208,6 +208,9 @@ inline tHCI_STATUS ToLegacyHciErrorCode(hci::ErrorCode reason) {
      return HCI_ERR_ENCRY_MODE_NOT_ACCEPTABLE;
    case hci::ErrorCode::CONTROLLER_BUSY:
      return static_cast<tHCI_STATUS>(hci::ErrorCode::CONTROLLER_BUSY);
    case hci::ErrorCode::CONNECTION_FAILED_ESTABLISHMENT:
      return static_cast<tHCI_STATUS>(
          hci::ErrorCode::CONNECTION_FAILED_ESTABLISHMENT);
  }
}