From: Vinicius Costa Gomes Date: Sat, 20 Aug 2011 00:06:52 +0000 (-0300) Subject: Bluetooth: Use the same timeouts for both ACL and LE links X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=454d48ff70c24930c6b0f9cb64f290fca2dfb271;p=mv-sheeva.git Bluetooth: Use the same timeouts for both ACL and LE links Signed-off-by: Vinicius Costa Gomes Signed-off-by: Gustavo F. Padovan --- diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 605829b2c63..88566f2e0a6 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -492,7 +492,7 @@ static inline void hci_conn_put(struct hci_conn *conn) { if (atomic_dec_and_test(&conn->refcnt)) { unsigned long timeo; - if (conn->type == ACL_LINK) { + if (conn->type == ACL_LINK || conn->type == LE_LINK) { del_timer(&conn->idle_timer); if (conn->state == BT_CONNECTED) { timeo = msecs_to_jiffies(conn->disc_timeout);