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

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

gd: Add hci error code CONNECTION_FAILED_ESTABLISHMENT am: 0117f793 am: e6c8ef92 am: 2b9fddca

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

Change-Id: I26cf0853f169e350d0b0a2025bb80da35e58108e
parents 7dae26e7 2b9fddca
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);
  }
}