From: Andre Guedes Date: Tue, 30 Apr 2013 18:29:32 +0000 (-0300) Subject: Bluetooth: Use HCI request in interleaved discovery X-Git-Tag: v3.11-rc1~64^2~78^2^2~23^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c87eaab01df271c81f6a68e3c28dbd44d348004;p=pandora-kernel.git 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 Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed