From: Mikel Astiz <mikel.astiz.oss@gmail.com>
To: Anderson Lizardo <anderson.lizardo@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org, Mikel Astiz <mikel.astiz@bmw-carit.de>
Subject: Re: [RFC v0] Bluetooth: mgmt: Add device disconnect reason
Date: Tue, 15 May 2012 17:03:07 +0200 [thread overview]
Message-ID: <CANT-zCVAD0H7akcDZSeNaPjJ3u9Vbw9BEKm-A08Rva9M7ACCSw@mail.gmail.com> (raw)
In-Reply-To: <CAJdJm_MVPxMp9QG9_CBmGn0YeMc_Hbhiipy+brSXsqjMzFuRjA@mail.gmail.com>
Hi Lizardo,
On Tue, May 15, 2012 at 4:15 PM, Anderson Lizardo
<anderson.lizardo@openbossa.org> wrote:
> Hi Mikel,
>
> On Mon, May 14, 2012 at 11:34 AM, Mikel Astiz <mikel.astiz.oss@gmail.com> wrote:
>> From: Mikel Astiz <mikel.astiz@bmw-carit.de>
>>
>> MGMT_EV_DEVICE_DISCONNECTED should expose the disconnection reason to
>> userland.
>
> There is "getsockopt(sock, SOL_SOCKET, SO_ERROR, &sk_err, &len)". Why
> is it not enough?
Could you please be more specific? Which socket type exposes this
disconnect reason?
That would be the second approach explained in the cover-letter
(userspace part), but AFAIK it's not been set by the Kernel right now.
We would probably have to set the option for all RFCOMM, L2CAP and SCO
sockets associated to the ACL link.
Cheers,
Mikel
next prev parent reply other threads:[~2012-05-15 15:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-14 15:34 [RFC v0] Bluetooth: mgmt: Add device disconnect reason Mikel Astiz
2012-05-15 14:15 ` Anderson Lizardo
2012-05-15 15:03 ` Mikel Astiz [this message]
2012-05-15 15:24 ` Anderson Lizardo
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=CANT-zCVAD0H7akcDZSeNaPjJ3u9Vbw9BEKm-A08Rva9M7ACCSw@mail.gmail.com \
--to=mikel.astiz.oss@gmail.com \
--cc=anderson.lizardo@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=mikel.astiz@bmw-carit.de \
/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).