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

Commit f4d0ad75 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "RootCanal: Remove LE packet delays" am: 00f12868

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1892719

Change-Id: If9234884dbe42d20c1830e3860ae8c567451f5a2
parents 0cec1be0 00f12868
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ void LinkLayerController::SendLeLinkLayerPacket(
    std::unique_ptr<model::packets::LinkLayerPacketBuilder> packet) {
  std::shared_ptr<model::packets::LinkLayerPacketBuilder> shared_packet =
      std::move(packet);
  ScheduleTask(milliseconds(50), [this, shared_packet]() {
  ScheduleTask(milliseconds(1), [this, shared_packet]() {
    send_to_remote_(shared_packet, Phy::Type::LOW_ENERGY);
  });
}
@@ -60,7 +60,7 @@ void LinkLayerController::SendLinkLayerPacket(
    std::unique_ptr<model::packets::LinkLayerPacketBuilder> packet) {
  std::shared_ptr<model::packets::LinkLayerPacketBuilder> shared_packet =
      std::move(packet);
  ScheduleTask(milliseconds(50), [this, shared_packet]() {
  ScheduleTask(milliseconds(1), [this, shared_packet]() {
    send_to_remote_(shared_packet, Phy::Type::BR_EDR);
  });
}
@@ -2903,7 +2903,7 @@ ErrorCode LinkLayerController::LeRemoteConnectionParameterRequestReply(
    return ErrorCode::INVALID_HCI_COMMAND_PARAMETERS;
  }

  ScheduleTask(milliseconds(25), [this, connection_handle, interval_min,
  ScheduleTask(milliseconds(5), [this, connection_handle, interval_min,
                                 interval_max, latency, timeout]() {
    LeConnectionUpdateComplete(connection_handle, interval_min, interval_max,
                               latency, timeout);