diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2016-08-29 00:31:57 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2016-09-19 14:19:34 -0400 |
commit | 9db5c62951871c33e4443fe433e234419cf574d2 (patch) | |
tree | ad94fb36c861b5d7e480862a3afc182dac1829d0 /net/bluetooth | |
parent | 56f787c5024de7829f8cccce7569feb520829baf (diff) |
Bluetooth: Use command status event for Set IO Capability errors
In case of failure, the Set IO Capability command is suppose to return
command status and not command complete.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 0c83dd36b7e3..47efdb4a669a 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -2513,8 +2513,8 @@ static int set_io_capability(struct sock *sk, struct hci_dev *hdev, void *data, | |||
2513 | BT_DBG(""); | 2513 | BT_DBG(""); |
2514 | 2514 | ||
2515 | if (cp->io_capability > SMP_IO_KEYBOARD_DISPLAY) | 2515 | if (cp->io_capability > SMP_IO_KEYBOARD_DISPLAY) |
2516 | return mgmt_cmd_complete(sk, hdev->id, MGMT_OP_SET_IO_CAPABILITY, | 2516 | return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_IO_CAPABILITY, |
2517 | MGMT_STATUS_INVALID_PARAMS, NULL, 0); | 2517 | MGMT_STATUS_INVALID_PARAMS); |
2518 | 2518 | ||
2519 | hci_dev_lock(hdev); | 2519 | hci_dev_lock(hdev); |
2520 | 2520 | ||