Linux bluetooth development
 help / color / mirror / Atom feed
* [RFC v3 0/2] Disconnect reason in Kernel API
@ 2012-08-08  7:42 Mikel Astiz
  2012-08-08  7:42 ` [RFC v3 1/2] Bluetooth: Add more HCI error codes Mikel Astiz
  2012-08-08  7:42 ` [RFC v3 2/2] Bluetooth: mgmt: Add device disconnect reason Mikel Astiz
  0 siblings, 2 replies; 6+ messages in thread
From: Mikel Astiz @ 2012-08-08  7:42 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Mikel Astiz

From: Mikel Astiz <mikel.astiz@bmw-carit.de>

This patchset (split now in two patches) extends the management API to expose the disconnect reason in the device disconnection event.

The original motivation was to distinguish the timeout case from the rest, thus the first versions of the patch provided only this information.

v3 extends the original approach to also determine which side (local host or remote) initiated the ACL disconnection. This is IMO not very useful and misleading, but has still been considered interesting by the subsystem maintainers.

In order to test these patches, the old userland patch ("[RFC BlueZ v1]: mgmt-api: Add reason to device disconnect event") can be used, in terms of log traces, even though it needs the corresponding update.

>From original patch:

During the BlueZ meeting in Brazil it was proposed to add two more values to this enum: "Connection terminated by local host" and "Connection terminated by remote host". However, after some testing, it seems the result can be quite misleading. Therefore and given that there are no known use-cases that need this information (local vs remote disconnection), these two values have been dropped.

Mikel Astiz (2):
  Bluetooth: Add more HCI error codes
  Bluetooth: mgmt: Add device disconnect reason

 include/net/bluetooth/hci.h      |    3 +++
 include/net/bluetooth/hci_core.h |    2 +-
 include/net/bluetooth/mgmt.h     |    8 ++++++++
 net/bluetooth/hci_event.c        |   24 +++++++++++++++++++++---
 net/bluetooth/mgmt.c             |    9 +++++----
 5 files changed, 38 insertions(+), 8 deletions(-)

-- 
1.7.7.6


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-09  7:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-08  7:42 [RFC v3 0/2] Disconnect reason in Kernel API Mikel Astiz
2012-08-08  7:42 ` [RFC v3 1/2] Bluetooth: Add more HCI error codes Mikel Astiz
2012-08-08 13:48   ` Marcel Holtmann
2012-08-08  7:42 ` [RFC v3 2/2] Bluetooth: mgmt: Add device disconnect reason Mikel Astiz
2012-08-08 13:52   ` Marcel Holtmann
2012-08-09  7:43     ` Mikel Astiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox