|
@@ -1223,6 +1223,9 @@ static void l2cap_le_connect(struct l2cap_chan *chan)
|
|
struct l2cap_conn *conn = chan->conn;
|
|
struct l2cap_conn *conn = chan->conn;
|
|
struct l2cap_le_conn_req req;
|
|
struct l2cap_le_conn_req req;
|
|
|
|
|
|
|
|
+ if (test_and_set_bit(FLAG_LE_CONN_REQ_SENT, &chan->flags))
|
|
|
|
+ return;
|
|
|
|
+
|
|
req.psm = chan->psm;
|
|
req.psm = chan->psm;
|
|
req.scid = cpu_to_le16(chan->scid);
|
|
req.scid = cpu_to_le16(chan->scid);
|
|
req.mtu = cpu_to_le16(chan->imtu);
|
|
req.mtu = cpu_to_le16(chan->imtu);
|