Bluetooth: Fix fast connectable response sending
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 15 Mar 2013 22:07:05 +0000 (17:07 -0500)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 18 Mar 2013 17:02:06 +0000 (14:02 -0300)
commit33e38b3e13e313baedd7c56c38ad249f230171d2
tree7070d4527786b5bd158bf5f96ddb74bc7fd026c7
parent2b76f4539c6a41c3dd2e73f9ca7e03bcff6c8774
Bluetooth: Fix fast connectable response sending

The mgmt_set_fast_connectable response should be sent only when all
related HCI commands have completed. This patch fixes the issue by using
an async request and sending the response to user space throught the
complete callback of the request. The patch also fixes in the same go
the return parameters of the command which should be the current
settings.

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>
net/bluetooth/mgmt.c