alistair23-linux/include/net/bluetooth
Andre Guedes 28b75a8948 Bluetooth: Add hci_le_scan()
We are not supposed to block in start_discovery() because
start_discovery code is running in write() syscall context
and this would block the write operation on the mgmt socket.
This way, we cannot directly call hci_do_le_scan() to scan
LE devices in start_discovery(). To overcome this issue a
derefered work (hdev->le_scan) was created so we can properly
call hci_do_le_scan().

The helper function hci_le_scan() simply set LE scan parameters
and queue hdev->le_scan work. The work is queued on system_long_wq
since it can sleep for a few seconds in the worst case (timeout).

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>
2012-02-13 17:01:34 +02:00
..
bluetooth.h Bluetooth: silence lockdep warning 2012-02-13 17:01:29 +02:00
hci.h Bluetooth: Clean up structures left unused 2012-02-13 17:01:33 +02:00
hci_core.h Bluetooth: Add hci_le_scan() 2012-02-13 17:01:34 +02:00
l2cap.h Bluetooth: Remove usage of __cancel_delayed_work() 2012-02-13 17:01:30 +02:00
mgmt.h Bluetooth: mgmt: Implement Cancel Pair Device command 2012-02-13 17:01:32 +02:00
rfcomm.h Bluetooth: rfcomm: Fix sleep in invalid context in rfcomm_security_cfm 2011-11-07 17:24:49 -02:00
sco.h Bluetooth: clean up legal text 2010-12-01 21:04:43 -02:00
smp.h Bluetooth: Rename smp_key_size to enc_key_size 2012-02-13 17:01:30 +02:00