diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index eed4be0c90d..0dcbad2d8a7 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c @@ -120,12 +120,6 @@ static void l2cap_chan_alloc_cid(struct bt_conn *conn, return; } - /* Try matching dcid first */ - if (!bt_l2cap_lookup_rx_cid(conn, chan->rx.cid)) { - chan->rx.cid = chan->tx.cid; - return; - } - /* TODO: Check conn type before assigning cid */ for (cid = L2CAP_LE_DYN_CID_START; cid <= L2CAP_LE_DYN_CID_END; cid++) { if (!bt_l2cap_lookup_rx_cid(conn, cid)) {