|
@@ -483,6 +483,11 @@ struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst,
|
|
if (type == LE_LINK) {
|
|
if (type == LE_LINK) {
|
|
le = hci_conn_hash_lookup_ba(hdev, LE_LINK, dst);
|
|
le = hci_conn_hash_lookup_ba(hdev, LE_LINK, dst);
|
|
if (!le) {
|
|
if (!le) {
|
|
|
|
+ le = hci_conn_hash_lookup_state(hdev, LE_LINK,
|
|
|
|
+ BT_CONNECT);
|
|
|
|
+ if (le)
|
|
|
|
+ return ERR_PTR(-EBUSY);
|
|
|
|
+
|
|
le = hci_conn_add(hdev, LE_LINK, dst);
|
|
le = hci_conn_add(hdev, LE_LINK, dst);
|
|
if (!le)
|
|
if (!le)
|
|
return ERR_PTR(-ENOMEM);
|
|
return ERR_PTR(-ENOMEM);
|