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

This patch updates the Add Device mgmt command handler to use a
hci_request to wait for HCI command completion before notifying user
space of the mgmt command completion. To do this we need to add an extra
hci_request parameter to the hci_conn_params_set function. Since this
function has no other users besides mgmt.c it's moved there as a static
function.

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