summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/sco.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-07-11 06:19:44 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-07-11 13:58:58 +0300
commit068d69e5bbd85291aa8ad0d81062f047609a173c (patch)
tree2d8f07bf4b75d6806871bc23e1ccc0646d8056b3 /net/bluetooth/sco.c
parent6190ae7a184bf488aeb051a5713aa57b07d4c59b (diff)
downloadop-kernel-dev-068d69e5bbd85291aa8ad0d81062f047609a173c.zip
op-kernel-dev-068d69e5bbd85291aa8ad0d81062f047609a173c.tar.gz
Bluetooth: Move SCO timeout constants into net/bluetooth/sco.c
There is no external user of the SCO timeout constants and thus move them into net/bluetooth/sco.c where they are actuallu used. In addition just remove SCO_CONN_IDLE_TIMEOUT since it is unused. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/sco.c')
-rw-r--r--net/bluetooth/sco.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c
index 9868ec7..e6c7b63 100644
--- a/net/bluetooth/sco.c
+++ b/net/bluetooth/sco.c
@@ -72,6 +72,9 @@ struct sco_pinfo {
};
/* ---- SCO timers ---- */
+#define SCO_CONN_TIMEOUT (HZ * 40)
+#define SCO_DISCONN_TIMEOUT (HZ * 2)
+
static void sco_sock_timeout(unsigned long arg)
{
struct sock *sk = (struct sock *) arg;
OpenPOWER on IntegriCloud