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

Commit c4027cbc authored by Rahul Arya's avatar Rahul Arya Committed by Gerrit Code Review
Browse files

Merge "Drop packets in-flight after disconnection"

parents 46b23819 fbbfc675
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1826,6 +1826,11 @@ void LinkLayerController::IncomingAclPacket(
  uint16_t local_handle =
      connections_.GetHandleOnlyAddress(incoming.GetSourceAddress());

  if (local_handle == kReservedHandle) {
      LOG_INFO("Dropping packet since connection does not exist");
      return;
  }

  std::vector<uint8_t> payload_data(acl_view.GetPayload().begin(),
                                    acl_view.GetPayload().end());
  uint16_t acl_buffer_size = properties_.acl_data_packet_length;