Bluetooth: L2CAP: Fix not calling disconnect callback

Destination CID identifies the channel endpoint on the device
sending the response. So in disconnection response DCID matches
CID used for TX.

Change-Id: Id42d61536bcc208e868ac889c738e7c40bcf5a9a
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2016-01-28 17:06:36 +01:00 committed by Anas Nashif
commit 4e29c31512

View file

@ -704,7 +704,7 @@ static void le_disconn_rsp(struct bt_l2cap *l2cap, uint8_t ident,
BT_DBG("dcid 0x%04x scid 0x%04x", dcid, scid);
chan = l2cap_remove_tx_cid(conn, scid);
chan = l2cap_remove_tx_cid(conn, dcid);
if (!chan) {
return;
}