Bluetooth: Use cmd_complete callback for authentication mgmt commands
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 5 Dec 2014 11:36:03 +0000 (13:36 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2014 11:46:09 +0000 (12:46 +0100)
commit7776d1d8051469e61c8784076921ee16c1093ba1
tree953bc69e7b40bae0f5785d3720333f6e2d0e31f1
parentf5818c2241247c0a5f967e41e952682b10db6fd6
Bluetooth: Use cmd_complete callback for authentication mgmt commands

This patch converts the user confirmation & PIN code mgmt commands to
take advantage of the new cmd_complete callback for pending mgmt
commands. The patch also adds a new generic addr_cmd_complete() helper
function to be used with commands that send a mgmt_addr_info response
based on a mgmt_addr_info in the beginning of the command parameters.

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