From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> When using bthost_add_l2cap_server the caller expect that both scid and dcid are the same since the callback only take one value. --- emulator/bthost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html