Bluetooth: Update mgmt powered HCI commands to use async requests
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 15 Mar 2013 22:06:52 +0000 (17:06 -0500)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 18 Mar 2013 17:01:59 +0000 (14:01 -0300)
commit890ea8988f7d17453515122041adb0e1acdb6025
treea024dfdd2c6aeab5d9db31807d02240c766cddd9
parent70da624376b8ba8d0db83eb817a7bc140778a26f
Bluetooth: Update mgmt powered HCI commands to use async requests

This patch updates sending of HCI commands related to mgmt_set_powered
(e.g. class, name and EIR data) to be sent using asynchronous requests.
This is necessary since it's the only (well, at least the cleanest) way
to keep the power on procedure synchronized and let user space know it
has completed only when all HCI commands are completed (this actual fix
is coming in a subsequent patch).

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