Re: [PATCH] Bluetooth: Add opcode parameter to hci_req_complete_t callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marcel,

On Sun, Jan 11, 2015, Marcel Holtmann wrote:
> When hci_req_run() calls its provided complete function and one of the
> HCI commands in the sequence fails, then provide the opcode of failing
> command. In case of success HCI_OP_NOP is provided since all commands
> completed.
> 
> This patch fixes the prototype of hci_req_complete_t and all its users.
> 
> Signed-off-by: Marcel Holtmann <marcel@xxxxxxxxxxxx>
> ---
>  include/net/bluetooth/bluetooth.h |  2 +-
>  net/bluetooth/hci_conn.c          |  2 +-
>  net/bluetooth/hci_core.c          |  9 ++++----
>  net/bluetooth/hci_request.c       |  3 ++-
>  net/bluetooth/mgmt.c              | 44 ++++++++++++++++++++++-----------------
>  5 files changed, 34 insertions(+), 26 deletions(-)

Applied to bluetooth-next. Thanks.

Would it make sense to also change the return value of the callback from
void to bool. That way the callback could let the request handling code
know whether to proceed even after a single command failure or to abort
the request.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux