mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 16:54:38 +08:00
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:
parent
f881e165ec
commit
62041e0a4d
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user