Bluetooth: Fix UUID/class mgmt command response synchronization
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 15 Mar 2013 22:06:55 +0000 (17:06 -0500)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 18 Mar 2013 17:02:01 +0000 (14:02 -0300)
commit92da609750e75d5f46e809fd42e0cace61f6f4d5
tree763dbb315b5f5ed6b479bbea19e2e4016af137d5
parent0cab9c80ffc5006bf0f6922d805a7540e4949877
Bluetooth: Fix UUID/class mgmt command response synchronization

We should only return a mgmt command complete once all HCI commands to a
mgmt_set_dev_class or mgmt_add/remove_uuid command have completed. This
patch fixes the issue by having a proper async request complete callback
for these actions and responding to user space in the callback.

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