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

Commit d7ac9a07 authored by Kilsung Yu's avatar Kilsung Yu Committed by Chris Manton
Browse files

l2cap: Fix l2cu_reject_ble_connection

    pending_ecoc_conn_cnt should be passed as 3rd argument for l2cu_reject_credit_based_conn_req
    Test: Verified with PTS cases (L2CAP/ECFC/BV-11-C)

Change-Id: Ifced0387fb13c3190f3c2227c07ce62876eee849
parent c8130dee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2947,7 +2947,7 @@ void l2cu_reject_ble_connection(tL2C_CCB* p_ccb, uint8_t rem_id,
                                uint16_t result) {
  if (p_ccb->ecoc)
    l2cu_reject_credit_based_conn_req(
        p_ccb->p_lcb, rem_id, p_ccb->p_lcb->pending_ecoc_reconfig_cnt, result);
        p_ccb->p_lcb, rem_id, p_ccb->p_lcb->pending_ecoc_conn_cnt, result);
  else
    l2cu_reject_ble_coc_connection(p_ccb->p_lcb, rem_id, result);
}