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

Commit be92eceb authored by Hansong Zhang's avatar Hansong Zhang Committed by Automerger Merge Worker
Browse files

p_nocp_cb is never set am: 58478530

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1414292

Change-Id: I832da1cabfc563c25404361f995c164493208242
parents eab7a9bd 58478530
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -390,9 +390,7 @@ typedef struct t_l2c_linkcb {

  uint8_t peer_chnl_mask[L2CAP_FIXED_CHNL_ARRAY_SIZE];

  uint16_t idle_timeout_sv; /* Save current Idle timeout */
  uint8_t acl_priority;     /* L2C_PRIORITY_NORMAL or L2C_PRIORITY_HIGH */
  tL2CA_NOCP_CB* p_nocp_cb; /* Num Cmpl pkts callback */

  tL2C_CCB* p_fixed_ccbs[L2CAP_NUM_FIXED_CHNLS];

+0 −7
Original line number Diff line number Diff line
@@ -1150,13 +1150,6 @@ void l2c_link_process_num_completed_pkts(uint8_t* p, uint8_t evt_len) {

    p_lcb = l2cu_find_lcb_by_handle(handle);

    /* Callback for number of completed packet event    */
    /* Originally designed for [3DSG]                   */
    if ((p_lcb != NULL) && (p_lcb->p_nocp_cb)) {
      L2CAP_TRACE_DEBUG("L2CAP - calling NoCP callback");
      (*p_lcb->p_nocp_cb)(p_lcb->remote_bd_addr);
    }

    if (p_lcb) {
      if (p_lcb && (p_lcb->transport == BT_TRANSPORT_LE))
        l2cb.controller_le_xmit_window += num_sent;