]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Use HCI request in interleaved discovery
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 30 Apr 2013 18:29:32 +0000 (15:29 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 29 May 2013 21:43:39 +0000 (18:43 -0300)
commit925c8700cf8f4b952970dd823c62e9b8dc2e10ba
treea0ea5dcab8062d5cb19c14140c034aafd2eaf4dc
parentc21a22c9b6c63eb625de93a6be548d3309b855ab
Bluetooth: Use HCI request in interleaved discovery

In order to have a better HCI error handling in interleaved discovery
functionality, we should use the HCI request framework.

This patch updates le_scan_disable_work function so it uses the
HCI request framework instead of the hci_send_cmd helper. A complete
callback is registered (le_scan_disable_work_complete function) so we
are able to trigger the inquiry procedure (if we are running the
interleaved discovery) or to stop the discovery procedure (if we are
running LE-only discovery).

This patch also removes the extra logic in hci_cc_le_set_scan_enable
to trigger the inquiry procedure and the mgmt_interleaved_discovery
function since they become useless.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c