From 62041e0a4d36c7bd958039913447e25666235a2e Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Mon, 13 Jan 2014 11:36:33 +0100 Subject: [PATCH] emulator/bthost: Fix sending L2CAP config req Send L2CAP config request with correct dcid field. It worked well only if scid and dcid of L2CAP connection were the same. --- emulator/bthost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emulator/bthost.c b/emulator/bthost.c index 5afc11ee5..d18ca49d9 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -974,7 +974,7 @@ static bool l2cap_conn_req(struct bthost *bthost, struct btconn *conn, le16_to_cpu(psm)); memset(&conf_req, 0, sizeof(conf_req)); - conf_req.dcid = rsp.dcid; + conf_req.dcid = rsp.scid; l2cap_sig_send(bthost, conn, BT_L2CAP_PDU_CONFIG_REQ, 0, &conf_req, sizeof(conf_req)); -- 2.47.3