]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Update stop_discovery to use HCI request
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 30 Apr 2013 18:29:33 +0000 (15:29 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 22 Jun 2013 23:23:51 +0000 (00:23 +0100)
commitb576e2ff3379381884585bea564849db92654012
tree99e02b894717a221de7f703c72cbb3eb877c5681
parent47bba2da7dab7932b1a27929a0a2e51d9d5d107d
Bluetooth: Update stop_discovery to use HCI request

This patch modifies the stop_discovery function so it uses the HCI
request framework.

The HCI request is built according to the current discovery state
(inquiry, LE scanning or name resolving) and a complete callback is
register to handle the command complete event for the stop discovery
command. This way, we move all stop_discovery mgmt handling code
spread in hci_event.c to a single place in mgmt.c.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c