linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gustavo Padovan <gustavo@padovan.org>
To: Mikel Astiz <mikel.astiz.oss@gmail.com>
Cc: linux-bluetooth@vger.kernel.org, Mikel Astiz <mikel.astiz@bmw-carit.de>
Subject: Re: [RFC v4 3/3] Bluetooth: mgmt: Add device disconnect reason
Date: Wed, 15 Aug 2012 01:32:47 -0300	[thread overview]
Message-ID: <20120815043247.GF3344@joana> (raw)
In-Reply-To: <1344498750-2698-4-git-send-email-mikel.astiz.oss@gmail.com>

Hi Mikel,

* Mikel Astiz <mikel.astiz.oss@gmail.com> [2012-08-09 09:52:30 +0200]:

> From: Mikel Astiz <mikel.astiz@bmw-carit.de>
> 
> MGMT_EV_DEVICE_DISCONNECTED will now expose the disconnection reason to
> userland, distinguishing four possible values:
> 
> 	0x00	Reason not known or unspecified
> 	0x01	Connection timeout
> 	0x02	Connection terminated by local host
> 	0x03	Connection terminated by remote host
> 
> Note that the local/remote distinction just determines which side
> terminated the low-level connection, regardless of the disconnection of
> the higher-level profiles.
> 
> This can sometimes be misleading and thus must be used with care. For
> example, some hardware combinations would report a locally initiated
> disconnection even if the user turned Bluetooth off in the remote side.
> 
> Signed-off-by: Mikel Astiz <mikel.astiz@bmw-carit.de>
> ---
>  include/net/bluetooth/hci_core.h |    2 +-
>  include/net/bluetooth/mgmt.h     |    9 +++++++++
>  net/bluetooth/hci_event.c        |   26 +++++++++++++++++++++++---
>  net/bluetooth/mgmt.c             |    9 +++++----
>  4 files changed, 38 insertions(+), 8 deletions(-)

All 3 patches have been applied to bluetooth-next. Thanks.

	Gustavo

      parent reply	other threads:[~2012-08-15  4:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09  7:52 [RFC v4 0/3] Disconnect reason in Kernel API Mikel Astiz
2012-08-09  7:52 ` [RFC v4 1/3] Bluetooth: Add more HCI error codes Mikel Astiz
2012-08-09  7:52 ` [RFC v4 2/3] Bluetooth: Fix minor coding style in hci_event.c Mikel Astiz
2012-08-09 15:50   ` Marcel Holtmann
2012-08-09  7:52 ` [RFC v4 3/3] Bluetooth: mgmt: Add device disconnect reason Mikel Astiz
2012-08-09 15:54   ` Marcel Holtmann
2012-08-15  4:32   ` Gustavo Padovan [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=20120815043247.GF3344@joana \
    --to=gustavo@padovan.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=mikel.astiz.oss@gmail.com \
    --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).