[PATCH] Increase AVDTP request timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From 4a2c3e973dd417d289bd87dd2fece8b0c42bcb52 Mon Sep 17 00:00:00 2001
From: Daniel Orstadius <daniel.orstadius@xxxxxxxxx>
Date: Tue, 8 Mar 2011 14:33:55 +0200
Subject: [PATCH] Increase AVDTP request timeout

At least one headset with both A2DP and PBAP sends delayed responses
to AVDTP requests when it is doing PBAP queries (typically at the
beginning of the connection).

Increasing the timer by two seconds to give the headset more time to
reply, to avoid aborting the AVDTP connection.
---
 audio/avdtp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/audio/avdtp.c b/audio/avdtp.c
index 6ba9794..83b1aa2 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -85,7 +85,7 @@
 #define AVDTP_MSG_TYPE_ACCEPT			0x02
 #define AVDTP_MSG_TYPE_REJECT			0x03
 
-#define REQ_TIMEOUT 4
+#define REQ_TIMEOUT 6
 #define ABORT_TIMEOUT 2
 #define DISCONNECT_TIMEOUT 1
 #define STREAM_TIMEOUT 20
-- 
1.6.0.4


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux