Bluetooth: Add error return value to hci_req_sync callback
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 11 Nov 2015 06:11:25 +0000 (08:11 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Nov 2015 16:50:30 +0000 (17:50 +0100)
commita1d01db1202ee6795c0a665b43896293ad4e2a77
tree6819b41eac718e063be46d8dee6aa860486f2b20
parent591752afbcc8179979296698cae698541d2e5431
Bluetooth: Add error return value to hci_req_sync callback

In some circumstances it may be useful to abort the request through
checks done in the request callback. To make the feature possible this
patch changes the return value of the request callback from void to
int and aborts the request if a non-zero value is returned.

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