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

Commit bc4411a9 authored by Chris Manton's avatar Chris Manton
Browse files

stack::l2cap [11/19] L2CA_SendFixedChnlData

Bug: 339732512
Test: m .
Flag: EXEMPT, Logging Change

Change-Id: Ifc42252843fe4b899e997877ee69b2d491b8c5ee
parent af23d445
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -116,7 +116,11 @@ void AclArbiter::SendPacketToPeer(uint8_t tcb_idx,
    std::copy(buffer.begin(), buffer.end(), p);
    std::copy(buffer.begin(), buffer.end(), p);
    p_buf->offset = L2CAP_MIN_OFFSET;
    p_buf->offset = L2CAP_MIN_OFFSET;
    p_buf->len = buffer.size();
    p_buf->len = buffer.size();
    L2CA_SendFixedChnlData(L2CAP_ATT_CID, p_tcb->peer_bda, p_buf);
    if (L2CA_SendFixedChnlData(L2CAP_ATT_CID, p_tcb->peer_bda, p_buf) !=
        L2CAP_DW_SUCCESS) {
      log::warn("Unable to send L2CAP data peer:{} fixed_cid:{} len:{}",
                p_tcb->peer_bda, L2CAP_ATT_CID, p_buf->len);
    }
  } else {
  } else {
    log::error("Dropping packet since connection no longer exists");
    log::error("Dropping packet since connection no longer exists");
  }
  }