Bluetooth: Disconnect ACL after 8sec when no service level connection.

Some Remote device disconnects service level connection but do not initiate
ACL disconnect hence ACL connection remains alive for 40s. Reducing timer
value to 8s as reconnection initated by remote device was rejected due to
existing ACL connection.

Change-Id: I26c2665bb9754ad08e3bc8d8a58f192c47c41764
CRs-Fixed: 337702
Signed-off-by: Rohit Singh <singhr@codeaurora.org>
This commit is contained in:
Rohit Singh 2012-02-21 17:47:17 +05:30 committed by Stephen Boyd
parent 120d95f5dd
commit 5649ab316c

View file

@ -629,7 +629,7 @@ static inline void hci_conn_put(struct hci_conn *conn)
if (conn->state == BT_CONNECTED) {
timeo = msecs_to_jiffies(conn->disc_timeout);
if (!conn->out)
timeo *= 20;
timeo *= 4;
} else
timeo = msecs_to_jiffies(10);
} else