aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-08-17 17:41:43 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-09-08 13:07:53 -0400
commitb3ff670a44cc34c01e78900c42255511e4f232e6 (patch)
tree2d03c53e48695d191ac9a3730bcef1003e81c5da /net
parent6c388d32ec1b9fcc2f2404fb5e9b3b0096be5de9 (diff)
Bluetooth: Set disc_timeout to 0 when calling hci_chan_del
The hci_chan_del() function is used in scenarios where we've decided we want to get rid of the underlying baseband link. It makes therefore sense to force the disc_timeout to 0 so that the disconnection routines are immediately scheduled. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_conn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 7815826a48e4..cb04a4e3c829 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -1316,6 +1316,9 @@ void hci_chan_del(struct hci_chan *chan)
1316 1316
1317 synchronize_rcu(); 1317 synchronize_rcu();
1318 1318
1319 /* Force the connection to be immediately dropped */
1320 conn->disc_timeout = 0;
1321
1319 hci_conn_drop(conn); 1322 hci_conn_drop(conn);
1320 hci_conn_put(conn); 1323 hci_conn_put(conn);
1321 1324