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.
This commit is contained in:
Marcin Kraglak 2014-01-13 11:36:33 +01:00 committed by Johan Hedberg
parent f881e165ec
commit 62041e0a4d

View File

@ -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));