]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Add hci_do_le_scan()
authorAndre Guedes <andre.guedes@openbossa.org>
Fri, 3 Feb 2012 20:47:59 +0000 (17:47 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:34 +0000 (17:01 +0200)
commit7ba8b4be38e7c83b2b13333a82a0ecde921a7390
tree1ad9bb8b0eafed266538a2e238649149439ccc29
parent6fbe195dc41c4fae1fa7aca1a38c888de1d24e2d
Bluetooth: Add hci_do_le_scan()

This patch adds to hci_core the hci_do_le_scan function which
should be used to scan LE devices.

In order to enable LE scan, hci_do_le_scan() sends commands (Set
LE Scan Parameters and Set LE Scan Enable) to the controller and
waits for its results. If commands were executed successfully a
delayed work is scheduled to disable the ongoing scanning after
some amount of time. This function blocks.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c