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

Commit 06628bb4 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Do not warn on unknown ACL credits

If credits are returned for LE ISO connection, we get log spam about
unknown ACL connection.

Tag: #feature
Bug: 150670922
Test: send/receive ISO packets, observe adb logs
Change-Id: I8b16ed7a5af164ddfdc71e3ddbaf21bfee5def6a
parent 2b2c6400
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -215,7 +215,6 @@ std::unique_ptr<AclBuilder> RoundRobinScheduler::handle_enqueue_next_fragment()
void RoundRobinScheduler::incoming_acl_credits(uint16_t handle, uint16_t credits) {
  auto acl_queue_handler = acl_queue_handlers_.find(handle);
  if (acl_queue_handler == acl_queue_handlers_.end()) {
    LOG_INFO("Dropping %hx received credits to unknown connection 0x%0hx", credits, handle);
    return;
  }

+0 −1
Original line number Diff line number Diff line
@@ -1258,7 +1258,6 @@ void l2c_link_process_num_completed_pkts(uint8_t* p, uint8_t evt_len) {
void l2c_packets_completed(uint16_t handle, uint16_t num_sent) {
  tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle);
  if (p_lcb == nullptr) {
    LOG_WARN("Received l2c packets completed for unknown ACL");
    return;
  }
  p_lcb->update_outstanding_packets(num_sent);