* Bluez stack issue with sco after headset profile disconnect
@ 2009-09-11 13:51 Sasikiran Maddula
2009-09-14 12:13 ` Johan Hedberg
0 siblings, 1 reply; 3+ messages in thread
From: Sasikiran Maddula @ 2009-09-11 13:51 UTC (permalink / raw)
To: linux-bluetooth
Hi,
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.
Thanks,
Sasikiran.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bluez stack issue with sco after headset profile disconnect
2009-09-11 13:51 Bluez stack issue with sco after headset profile disconnect Sasikiran Maddula
@ 2009-09-14 12:13 ` Johan Hedberg
2009-09-15 5:54 ` Sasikiran Maddula
0 siblings, 1 reply; 3+ messages in thread
From: Johan Hedberg @ 2009-09-14 12:13 UTC (permalink / raw)
To: Sasikiran Maddula; +Cc: linux-bluetooth
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bluez stack issue with sco after headset profile disconnect
2009-09-14 12:13 ` Johan Hedberg
@ 2009-09-15 5:54 ` Sasikiran Maddula
0 siblings, 0 replies; 3+ messages in thread
From: Sasikiran Maddula @ 2009-09-15 5:54 UTC (permalink / raw)
To: johan.hedberg; +Cc: linux-bluetooth, Marcel Holtmann
Hi Johan,
Thanks for your suggestion. Will try with the buez version 4.42 or later.
Hi Marcel,
Could you please suggest me the kernel version that has the fix for the
skype sco issue even after disconnection in bluetooth. I tried with the
2.6.28. Do you want me to try with 2.6.31?
Thanks,
Sasikiran.
Johan Hedberg wrote:
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-15 5:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-11 13:51 Bluez stack issue with sco after headset profile disconnect Sasikiran Maddula
2009-09-14 12:13 ` Johan Hedberg
2009-09-15 5:54 ` Sasikiran Maddula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox