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

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

Use acl data passing API

stack/l2cap/l2c_link::l2c_link_send_to_lower

Towards proper interfaces

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I0a31c891be3b1042d90fc17c3662d4e69b530648
parent 6a3e7b83
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1060,7 +1060,7 @@ static void l2c_link_send_to_lower_br_edr(tL2C_LCB* p_lcb, BT_HDR* p_buf) {

    p_lcb->sent_not_acked += num_segs;
  }
  bte_main_hci_send(p_buf, kDataPacketEventBrEdr);
  acl_send_data_packet(p_buf, kDataPacketEventBrEdr);
  L2CAP_TRACE_DEBUG(
      "TotalWin=%d,Hndl=0x%x,Quota=%d,Unack=%d,RRQuota=%d,RRUnack=%d",
      l2cb.controller_xmit_window, p_lcb->handle, p_lcb->link_xmit_quota,
@@ -1112,8 +1112,7 @@ static void l2c_link_send_to_lower_ble(tL2C_LCB* p_lcb, BT_HDR* p_buf) {

    p_lcb->sent_not_acked += num_segs;
  }
  bte_main_hci_send(p_buf, kDataPacketEventBle);

  acl_send_data_packet(p_buf, kDataPacketEventBle);
  L2CAP_TRACE_DEBUG(
      "TotalWin=%d,Hndl=0x%x,Quota=%d,Unack=%d,RRQuota=%d,RRUnack=%d",
      l2cb.controller_le_xmit_window, p_lcb->handle, p_lcb->link_xmit_quota,