From: Johan Hedberg Date: Wed, 9 Jan 2013 13:29:33 +0000 (+0200) Subject: Bluetooth: Fix missing command complete event for mgmt_confirm_name X-Git-Tag: accepted/tizen/common/20141203.182822~2684^2~28^2^2~62^2~49^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e384662b1c1004e6b1e9d2c4979945a383c07b7d;p=platform%2Fkernel%2Flinux-arm64.git 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 Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index e5502a5..577f316 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);