summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg2013-01-09 14:29:33 +0100
committerGustavo Padovan2013-01-10 09:08:10 +0100
commite384662b1c1004e6b1e9d2c4979945a383c07b7d (patch)
tree614a717ac37b8a51007671e5bd5d1c6f3e031233 /net/bluetooth/mgmt.c
parentBluetooth: mgmt: Avoid using magic number in status code (diff)
downloadkernel-qcow2-linux-e384662b1c1004e6b1e9d2c4979945a383c07b7d.tar.gz
kernel-qcow2-linux-e384662b1c1004e6b1e9d2c4979945a383c07b7d.tar.xz
kernel-qcow2-linux-e384662b1c1004e6b1e9d2c4979945a383c07b7d.zip
Bluetooth: Fix missing command complete event for mgmt_confirm_name
All management commands are expected to indicate successful completion through a command complete event however the confirm name command was missing it. This patch add the sending of the missing event. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index e5502a56365b..577f316d87ad 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -2493,7 +2493,8 @@ static int confirm_name(struct sock *sk, struct hci_dev *hdev, void *data,
hci_inquiry_cache_update_resolve(hdev, e);
}
- err = 0;
+ err = cmd_complete(sk, hdev->id, MGMT_OP_CONFIRM_NAME, 0, &cp->addr,
+ sizeof(cp->addr));
failed:
hci_dev_unlock(hdev);