Bluetooth: Make hci_le_scan use HCI transaction

This patch changes hci_le_scan helper so it uses the HCI transaction
framework to enable LE scanning. The LE scanning disable timeout
was removed from the helper and it is now handled by mgmt start_
discovery code.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Bluetooth: Remove LE scan work

This patch removes the LE scan work and all code related to it. We
now use the HCI transaction framework to enable LE scanning. The
LE scan work is no longer needed.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Bluetooth: Merge LE-only and interleaved cases

This patch merges the LE-only and interleaved discovery type cases.
Since hci_le_scan helper uses the hci transaction framework, those
cases are pretty much the same now.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Bluetooth: Remove timeout handling from hci_cancel_le_scan

Since LE scanning timeout is not handled by LE scanning helpers
anymore, we should handle it in stop_discovery instead of
hci_cancel_le_scan.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Bluetooth: Use helper in LE scan disable function

This patch changes LE scan disable work function so it uses hci_cancel_
le_scan helper instead of sending HCI command to disable LE scanning.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Bluetooth: Change LE scanning timeout macros

Define LE scanning timeout macros in jiffies just like others timeout
macros do.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Bluetooth: Add LE scan type macros

This patch adds macros for active and passive LE scan type values. It
also removes the LE_SCAN_TYPE macro since it is not used anymore.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Bluetooth: Handle start discovery failure in le_scan_complete

This patch moves start discovery failure handling to le_scan_
complete callback. It also removes the LE Set Scan Parameter
HCI event handler since it becomes empty.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>