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:
parent
81b4ffbf93
commit
4e29c31512
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue