linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Peter Hurley <peter@hurleysoftware.com>
Cc: linux-bluetooth <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH BlueZ v2] Increase timeout before initiating AVDTP connection
Date: Mon, 22 Aug 2011 10:54:57 +0300	[thread overview]
Message-ID: <20110822075456.GC31673@dell> (raw)
In-Reply-To: <1313161215.2254.6.camel@THOR>

Hi Peter,

On Fri, Aug 12, 2011, Peter Hurley wrote:
> AVDTP_CONNECT_TIMEOUT controls the delay between HSP/HFP
> connection establishment and AVDTP signal channel establishment.
> The original value of 1 sec. is too short to avoid racing for AVDTP
> connection establishment (eg., if the device continues to configure
> the HFP service level connection with add'l AT cmds).
> 
> Some devices have broken AVDTP implementations that just cannot
> handle the race conditions that arise if both devices are attempting
> stream establishment at the same time. However, these conditions arise
> only when the remote device is the ACL initiator (and in practice, the
> RFCOMM initiator as well).  This fix bumps out the timeout value only
> when the headset has initiated the link.
> ---
> 
> v2: Follow established naming convention
> 
>  audio/device.c  |    9 ++++++++-
>  audio/headset.c |   17 +++++++++++++++++
>  audio/headset.h |    4 ++++
>  audio/manager.c |    1 +
>  4 files changed, 30 insertions(+), 1 deletions(-)

The patch has been applied, but could you please make sure you send
clean patches in the future. Now I got this from git:

/home/jh/src/bluez/.git/rebase-apply/patch:19: trailing whitespace.
#define AVDTP_CONNECT_TIMEOUT_BOOST 1
/home/jh/src/bluez/.git/rebase-apply/patch:27: trailing whitespace.
	guint timeout = AVDTP_CONNECT_TIMEOUT;
/home/jh/src/bluez/.git/rebase-apply/patch:36: trailing whitespace.
	/* if the headset is the HSP/HFP RFCOMM initiator, give the headset
/home/jh/src/bluez/.git/rebase-apply/patch:37: trailing whitespace.
	   time to initiate AVDTP signalling (and avoid further racing) */
/home/jh/src/bluez/.git/rebase-apply/patch:38: trailing whitespace.
	if (dev->headset && headset_get_rfcomm_initiator(dev))
warning: squelched 25 whitespace errors
warning: 1 line applied after fixing whitespace errors.

Johan

      parent reply	other threads:[~2011-08-22  7:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-12 15:00 [PATCH BlueZ v2] Increase timeout before initiating AVDTP connection Peter Hurley
2011-08-14 19:57 ` Luiz Augusto von Dentz
2011-08-15  1:06   ` Peter Hurley
2011-08-15  8:21     ` Luiz Augusto von Dentz
2011-08-15  9:42       ` Luiz Augusto von Dentz
2011-08-15 10:40         ` Peter Hurley
2011-08-15 11:22       ` Peter Hurley
2011-08-15 12:00         ` Luiz Augusto von Dentz
2011-12-01 13:26           ` GAVDP & GOEP Version sachin.athanikar
2011-08-22  7:54 ` Johan Hedberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110822075456.GC31673@dell \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=peter@hurleysoftware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).