linux/include/net/bluetooth
Andre Guedes 023d50498d Bluetooth: Create hci_cancel_inquiry()
This patch adds a function to hci_core to cancel an ongoing inquiry.

According to the Bluetooth spec, the inquiry cancel command should
only be issued after the inquiry command has been issued, a command
status event has been received for the inquiry command, and before
the inquiry complete event occurs.

As HCI_INQUIRY flag is only set just after an inquiry command status
event occurs and it is cleared just after an inquiry complete event
occurs, the inquiry cancel command should be issued only if HCI_INQUIRY
flag is set.

Additionally, cancel inquiry related code from stop_discovery() were
replaced by a hci_cancel_inquiry() call.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-11-08 12:54:08 -02:00
..
bluetooth.h Bluetooth: Add BT_CHANNEL_POLICY socket option 2011-11-07 17:24:59 -02:00
hci_core.h Bluetooth: Create hci_cancel_inquiry() 2011-11-08 12:54:08 -02:00
hci.h Bluetooth: Define HCI reasons instead of magic number 2011-11-08 12:53:11 -02:00
l2cap.h Bluetooth: Add definitions for L2CAP fixed channels 2011-11-07 17:25:02 -02:00
mgmt.h Bluetooth: Fix mgmt interaction with userspace 2011-10-14 19:56:21 -03: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: Move SMP crypto functions to a workqueue 2011-09-21 12:58:12 -03:00