Linux bluetooth development
 help / color / mirror / Atom feed
From: Felipe Ferreri Tonello <eu@felipetonello.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re: BUG: btd_profile's accept not been called from second connection and on
Date: Fri, 4 Dec 2015 11:30:33 +0000	[thread overview]
Message-ID: <56617959.9040206@felipetonello.com> (raw)
In-Reply-To: <5660D251.1070106@felipetonello.com>

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



On 12/03/2015 11:37 PM, Felipe Ferreri Tonello wrote:
> Hi,
> 
> So the accept function callback from btd_profile is only been called on
> the first time bluetoothd runs. It never gets called after a
> disconnection and reconnection.
> 
> I did git bisect and found the commit that caused it:
> 4522ac85dd6dc1db4d49507330b4abc3bbaf4e6c
> 
> But that commit doesn't actually caused the bug. I debugged a little
> more and found that from the second connection on the service->state is
> BTD_SERVICE_STATE_CONNECTING instead of BTD_SERVICE_STATE_DISCONNECTED
> (which is the state when first connecting), thus causing the
> btd_profile's accept function not to be called in service_accept().
> 
> I didn't have time to debug more so I wanted to shout here if anyone has
> any idea on why this is happening and how to fix it.

I will two patches that fixes this bug.

Felipe

[-- Attachment #2: 0x92698E6A.asc --]
[-- Type: application/pgp-keys, Size: 7195 bytes --]

  reply	other threads:[~2015-12-04 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-03 23:37 BUG: btd_profile's accept not been called from second connection and on Felipe Ferreri Tonello
2015-12-04 11:30 ` Felipe Ferreri Tonello [this message]
2015-12-04 11:48   ` Luiz Augusto von Dentz

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=56617959.9040206@felipetonello.com \
    --to=eu@felipetonello.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /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