From: Johan Hedberg <johan.hedberg@gmail.com>
To: Sasikiran Maddula <Madula.Sasikiran@Atheros.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Bluez stack issue with sco after headset profile disconnect
Date: Mon, 14 Sep 2009 15:13:45 +0300 [thread overview]
Message-ID: <20090914121345.GA3276@jh-x301> (raw)
In-Reply-To: <4AAA55D0.1050505@Atheros.com>
Hi Sasikiran,
On Fri, Sep 11, 2009, Sasikiran Maddula wrote:
> I verified with different dongles in linux. The behavior is same in all
> the cases. Firstly we will connect the headset using headset profile. We
> will start skype call / some other sco connection. We will disconnect
> the headset service from the headset profile. hcitool con says sco
> connection is still available after disconnection successful. So, some
> body suggest me how to stop the sco connection when we disconnect the
> service.
You haven't mentioned which bluez and kernel versions you use but there
was a bug like this which got fixed. The fix was to call shutdown() before
close() for the SCO socket in bluetoothd (to force a disconnection even
though other processes, like skype, have copy of the socket), and add a
proper shutdown handler for SCO sockets on the kernel side. So you need
both the userspace fix (part of bluez since 4.42) as well as the kernel
fix. I'm not sure exactly which kernel version is needed but maybe Marcel
has an idea.
bluez patch:
http://git.kernel.org/?p=bluetooth/bluez.git;a=commitdiff;h=45873a73136b4c76353e445b8c6891b99dff89ce
kernel patch:
http://git.kernel.org/?p=linux/kernel/git/holtmann/bluetooth-testing.git;a=commitdiff;h=a0ed7b886953a1953d4aa6b3357c06096adb9cc7
Johan
next prev parent reply other threads:[~2009-09-14 12:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-11 13:51 Bluez stack issue with sco after headset profile disconnect Sasikiran Maddula
2009-09-14 12:13 ` Johan Hedberg [this message]
2009-09-15 5:54 ` Sasikiran Maddula
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=20090914121345.GA3276@jh-x301 \
--to=johan.hedberg@gmail.com \
--cc=Madula.Sasikiran@Atheros.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