summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2014-09-08 11:11:43 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-09-09 15:51:47 +0200
commit2ae50d8d3aaf7154f72b44331b71f15799cdc1bb (patch)
tree4cb038f50d7228c5033b51de8abc63d908808965 /net/bluetooth
parentBluetooth: Fix issue with USB suspend in btusb driver (diff)
downloadlinux-2ae50d8d3aaf7154f72b44331b71f15799cdc1bb.tar.xz
linux-2ae50d8d3aaf7154f72b44331b71f15799cdc1bb.zip
Bluetooth: 6lowpan: Increase the connection timeout value
Use the default connection timeout value defined in l2cap.h because the current timeout was too short and most of the time the connection attempts timed out. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Cc: stable@vger.kernel.org # 3.17.x
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/6lowpan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index 35ebe79c87b0..5532e6e804f0 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -890,7 +890,7 @@ static void chan_resume_cb(struct l2cap_chan *chan)
static long chan_get_sndtimeo_cb(struct l2cap_chan *chan)
{
- return msecs_to_jiffies(1000);
+ return L2CAP_CONN_TIMEOUT;
}
static const struct l2cap_ops bt_6lowpan_chan_ops = {