Bluetooth: Fix Remove Device to wait for HCI before sending cmd_complete
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 19 Dec 2014 20:26:01 +0000 (22:26 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 19 Dec 2014 21:06:37 +0000 (22:06 +0100)
commit51ef3ebe7bcc212f4cbbeac48bda26ee90a6edbe
tree24fde32c04a44dc15045e62c05c17925cd7275f0
parent2cf22218b00f46f93b39a9355b830e9e8e4fd077
Bluetooth: Fix Remove Device to wait for HCI before sending cmd_complete

This patch updates the Remove Device mgmt command handler to use a
hci_request to wait for HCI command completion before notifying user
space of the mgmt command completion. This way we ensure that once the
mgmt command returns all HCI commands triggered by it have also
completed.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c