summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-01-09 15:29:33 +0200
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2013-01-10 06:08:10 -0200
commite384662b1c1004e6b1e9d2c4979945a383c07b7d (patch)
tree614a717ac37b8a51007671e5bd5d1c6f3e031233 /net
parenta6785be2f76e2c39b3008820e7bfef8f5fd838bc (diff)
downloadblackbird-op-linux-e384662b1c1004e6b1e9d2c4979945a383c07b7d.tar.gz
blackbird-op-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')
-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);
OpenPOWER on IntegriCloud