diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-01-11 22:50:44 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-01-12 10:16:31 +0100 |
commit | 1904a853fae40ee61bed7c231fc5bd2158984441 (patch) | |
tree | 04fd8e5a1cc1cf1814602d861f51ca8ece192308 /net/bluetooth/hci_conn.c | |
parent | ieee802154: 6lowpan: fix Makefile entry (diff) | |
download | linux-1904a853fae40ee61bed7c231fc5bd2158984441.tar.xz linux-1904a853fae40ee61bed7c231fc5bd2158984441.zip |
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>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 75240aaca101..2e724e0b75b9 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -633,7 +633,7 @@ void hci_le_conn_failed(struct hci_conn *conn, u8 status) mgmt_reenable_advertising(hdev); } -static void create_le_conn_complete(struct hci_dev *hdev, u8 status) +static void create_le_conn_complete(struct hci_dev *hdev, u8 status, u16 opcode) { struct hci_conn *conn; |