diff options
| author | Johan Hedberg <johan.hedberg@intel.com> | 2015-11-11 01:11:19 -0500 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2015-11-19 11:50:29 -0500 |
| commit | 4ebeee2dff9815619be6ff9a845d33716f48468c (patch) | |
| tree | d8ba8497c1a04a6566f27426ba14bf95c4eb5cb9 /include/net/bluetooth | |
| parent | 51d7a94d56f842a6bd752c11de2f80f2cbc4a507 (diff) | |
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>
Diffstat (limited to 'include/net/bluetooth')
| -rw-r--r-- | include/net/bluetooth/hci.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 0205b80cc90b..cc2216727655 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
| @@ -452,7 +452,8 @@ enum { | |||
| 452 | #define HCI_ERROR_REMOTE_POWER_OFF 0x15 | 452 | #define HCI_ERROR_REMOTE_POWER_OFF 0x15 |
| 453 | #define HCI_ERROR_LOCAL_HOST_TERM 0x16 | 453 | #define HCI_ERROR_LOCAL_HOST_TERM 0x16 |
| 454 | #define HCI_ERROR_PAIRING_NOT_ALLOWED 0x18 | 454 | #define HCI_ERROR_PAIRING_NOT_ALLOWED 0x18 |
| 455 | #define HCI_ERROR_INVALID_LL_PARAMS 0x1E | 455 | #define HCI_ERROR_INVALID_LL_PARAMS 0x1e |
| 456 | #define HCI_ERROR_UNSPECIFIED 0x1f | ||
| 456 | #define HCI_ERROR_ADVERTISING_TIMEOUT 0x3c | 457 | #define HCI_ERROR_ADVERTISING_TIMEOUT 0x3c |
| 457 | 458 | ||
| 458 | /* Flow control modes */ | 459 | /* Flow control modes */ |
