Bluetooth: Add HCI status return parameter to hci_req_sync()
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 11 Nov 2015 06:11:19 +0000 (08:11 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Nov 2015 16:50:29 +0000 (17:50 +0100)
commit4ebeee2dff9815619be6ff9a845d33716f48468c
treed8ba8497c1a04a6566f27426ba14bf95c4eb5cb9
parent51d7a94d56f842a6bd752c11de2f80f2cbc4a507
Bluetooth: Add HCI status return parameter to hci_req_sync()

In some cases it may be important to get the exact HCI status rather
than the converted HCI-to-errno value. Add an optional return
parameter to the hci_req_sync() API to allow for this. Since there are
no good HCI translation candidates for cancelation and timeout, use
the "unknown" status code for those cases.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
net/bluetooth/hci_core.c
net/bluetooth/hci_request.c
net/bluetooth/hci_request.h