Diff between 5f12d7a3da6869bb25154d594c5d9503b33cbe6c and a528bdce68981d4093fa179d24f749457576c1b5
Changed Files
| File | Additions | Deletions | Status |
| emulator/bthost.c | +1 | -1 | modified |
Full Patch
diff --git a/emulator/bthost.c b/emulator/bthost.c
index 1394fca..1fd9ef9 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -1226,7 +1226,7 @@ static bool l2cap_conn_req(struct bthost *bthost, struct btconn *conn,
cb_data = bthost_find_l2cap_cb_by_psm(bthost, psm);
if (cb_data)
- rsp.dcid = cpu_to_le16(conn->next_cid++);
+ rsp.dcid = rsp.scid;
else
rsp.result = cpu_to_le16(0x0002); /* PSM Not Supported */