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

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

l2c: stack did not sent L2CAP_COMMAND_REJECT_RSP when local cid is wrong

Send L2CAP_COMMAND_REJECT_RSP upon disconnect request with invalid local cid
received.
Test: PTS test L2CAP/ECFC/BV-30-C pass

Change-Id: I78924c25637f563de0d122d0814d36f6d1e24cc0
parent 002d3b6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1041,7 +1041,7 @@ void l2cble_process_sig_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) {
          l2c_csm_execute(p_ccb, L2CEVT_L2CAP_DISCONNECT_REQ, NULL);
        }
      } else
        l2cu_send_peer_disc_rsp(p_lcb, id, lcid, rcid);
        l2cu_send_peer_cmd_reject(p_lcb, L2CAP_CMD_REJ_INVALID_CID, id, 0, 0);

      break;