|
@@ -280,7 +280,6 @@ static void hci_conn_timeout(struct work_struct *work)
|
|
{
|
|
{
|
|
struct hci_conn *conn = container_of(work, struct hci_conn,
|
|
struct hci_conn *conn = container_of(work, struct hci_conn,
|
|
disc_work.work);
|
|
disc_work.work);
|
|
- struct hci_dev *hdev = conn->hdev;
|
|
|
|
__u8 reason;
|
|
__u8 reason;
|
|
|
|
|
|
BT_DBG("conn %p state %d", conn, conn->state);
|
|
BT_DBG("conn %p state %d", conn, conn->state);
|
|
@@ -288,8 +287,6 @@ static void hci_conn_timeout(struct work_struct *work)
|
|
if (atomic_read(&conn->refcnt))
|
|
if (atomic_read(&conn->refcnt))
|
|
return;
|
|
return;
|
|
|
|
|
|
- hci_dev_lock(hdev);
|
|
|
|
-
|
|
|
|
switch (conn->state) {
|
|
switch (conn->state) {
|
|
case BT_CONNECT:
|
|
case BT_CONNECT:
|
|
case BT_CONNECT2:
|
|
case BT_CONNECT2:
|
|
@@ -309,8 +306,6 @@ static void hci_conn_timeout(struct work_struct *work)
|
|
conn->state = BT_CLOSED;
|
|
conn->state = BT_CLOSED;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
-
|
|
|
|
- hci_dev_unlock(hdev);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/* Enter sniff mode */
|
|
/* Enter sniff mode */
|