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

Commit 9af53bb2 authored by Myles Watson's avatar Myles Watson
Browse files

RootCanal: Remove LE packet delays

Bug: 202018502
Test: cert/run
Tag: #feature
Change-Id: I1a97a14da4305efe73410117e3e2e0b2acb6894c
parent bff45ba1
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);