Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Increase AVDTP request timeout
@ 2011-03-08 13:18 Daniel Örstadius
  2011-03-10  9:06 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Örstadius @ 2011-03-08 13:18 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0001-Increase-AVDTP-request-timeout.patch --]
[-- Type: text/x-patch, Size: 921 bytes --]

From 4a2c3e973dd417d289bd87dd2fece8b0c42bcb52 Mon Sep 17 00:00:00 2001
From: Daniel Orstadius <daniel.orstadius@nokia.com>
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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-10  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-08 13:18 [PATCH] Increase AVDTP request timeout Daniel Örstadius
2011-03-10  9:06 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox