linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v4 0/3] Disconnect reason in Kernel API
@ 2012-08-09  7:52 Mikel Astiz
  2012-08-09  7:52 ` [RFC v4 1/3] Bluetooth: Add more HCI error codes Mikel Astiz
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mikel Astiz @ 2012-08-09  7:52 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Mikel Astiz

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

This patchset extends the management API to expose the low-level disconnect reason.

v4 integrates the feedback from Marcel, mainly:
- Fix minor coding style issue (patch v4 2/3)
- Remove references to "ACL" in mgmt terminology
- Add MGMT_DEV_DISCONN_UNKNOWN
- Add helper function to translate from HCI error codes to mgmt reason

Updated userland patch to be used for testing purposes will be submitted soon.

>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 (3):
  Bluetooth: Add more HCI error codes
  Bluetooth: Fix minor coding style in hci_event.c
  Bluetooth: mgmt: Add device disconnect reason

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

-- 
1.7.7.6


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

end of thread, other threads:[~2012-08-15  4:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).