linux/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
..
bnep Bluetooth: replace list_for_each with list_for_each_entry whenever possible 2011-11-07 17:24:46 -02:00
cmtp Bluetooth: replace list_for_each with list_for_each_entry whenever possible 2011-11-07 17:24:46 -02:00
hidp Bluetooth: Fix hidp_get_connection() 2011-11-07 17:24:55 -02:00
rfcomm Bluetooth: rfcomm: Fix sleep in invalid context in rfcomm_security_cfm 2011-11-07 17:24:49 -02:00
af_bluetooth.c Bluetooth: Handle fragmented skbs in bt_sock_stream_recvmsg() 2011-09-27 18:16:07 -03:00
hci_conn.c Bluetooth: Define HCI reasons instead of magic number 2011-11-08 12:53:11 -02:00
hci_core.c Bluetooth: Create hci_cancel_inquiry() 2011-11-08 12:54:08 -02:00
hci_event.c Bluetooth: Define HCI reasons instead of magic number 2011-11-08 12:53:11 -02:00
hci_sock.c Bluetooth: Add mgmt events for blacklisting 2011-09-21 12:59:15 -03:00
hci_sysfs.c Bluetooth: replace list_for_each with list_for_each_entry whenever possible 2011-11-07 17:24:46 -02:00
Kconfig bluetooth: uses crypto interfaces, select CRYPTO 2011-06-27 15:09:39 -04:00
l2cap_core.c Bluetooth: EFS: parse L2CAP config response 2011-11-08 12:53:57 -02:00
l2cap_sock.c Bluetooth: Add channel policy to getsockopt/setsockopt 2011-11-07 17:25:00 -02:00
lib.c Bluetooth: Add bt_printk 2011-06-30 19:17:12 -03:00
Makefile Bluetooth: Implement the first SMP commands 2011-06-13 15:11:55 -03:00
mgmt.c Bluetooth: Create hci_cancel_inquiry() 2011-11-08 12:54:08 -02:00
sco.c Bluetooth: sco: Fix lost wakeups waiting to accept socket 2011-08-11 19:50:26 -03:00
smp.c Bluetooth: prioritizing data over HCI 2011-11-07 17:24:56 -02:00