]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add opcode parameter to hci_req_complete_t callback
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 11 Jan 2015 21:50:44 +0000 (13:50 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 12 Jan 2015 09:16:31 +0000 (11:16 +0200)
commit1e303a988c147df6ad30b5ebf74a718d95fcb181
tree04fd8e5a1cc1cf1814602d861f51ca8ece192308
parent79800a4054e85e3c56911a6beeca9df730cebda5
Bluetooth: Add opcode parameter to hci_req_complete_t callback

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@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/bluetooth.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_core.c
net/bluetooth/hci_request.c
net/bluetooth/mgmt.c