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

Commit 8aa3d7f1 authored by Jeongik Cha's avatar Jeongik Cha Committed by Automerger Merge Worker
Browse files

Send response as combined form am: 36b07485 am: 8c6b4ce5

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7bfe7daa2b69725acf9b34af0aacef93d27c44ba
parents 147b5b25 8c6b4ce5
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -127,15 +127,7 @@ void HciSocketDevice::SendHci(
    return;
  }
  uint8_t type = static_cast<uint8_t>(packet_type);
  int bytes_written;
  bytes_written = write(socket_file_descriptor_, &type, sizeof(type));
  if (bytes_written != sizeof(type)) {
    LOG_WARN("bytes_written %d != sizeof(type)", bytes_written);
  }
  bytes_written = write(socket_file_descriptor_, packet->data(), packet->size());
  if (static_cast<size_t>(bytes_written) != packet->size()) {
    LOG_WARN("bytes_written %d != packet->size", bytes_written);
  }
  h4_.Send(type, packet->data(), packet->size());
}

void HciSocketDevice::RegisterCloseCallback(std::function<void()> close_callback) {