Bluetooth: Use async request for LE enable/disable
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 25 Sep 2013 10:26:08 +0000 (13:26 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 25 Sep 2013 17:30:11 +0000 (14:30 -0300)
commit416a4ae56b7a37407ca1155805c05b638f845778
tree9b60cfe6d885c8095281a2e3c23ff2aabdfc1cdb
parentbd99abdd5b876406c34b872956b3237e18613566
Bluetooth: Use async request for LE enable/disable

This patch updates the code to use an asynchronous request for handling
the enabling and disabling of LE support. This refactoring is necessary
as a preparation for adding advertising support, since when LE is
disabled we should also disable advertising, and the cleanest way to do
this is to perform the two respective HCI commands in the same
asynchronous request.

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>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c