2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 10:44:14 +08:00
linux-next/net/bluetooth
Andre Guedes 89352e7d3a Bluetooth: Periodic Inquiry and Discovery
By using periodic inquiry command we're not able to detect correctly
when the controller has started inquiry.

Today we have this workaround in inquiry result event handler
to set the HCI_INQUIRY flag when it sees the first inquiry result
event. This workaround isn't enough because the device may be
performing an inquiry but the HCI_INQUIRY flag is not set. For
instance, if there is no device in range, no inquiry result event
is generated, consequently, the HCI_INQUIRY flags isn't set when
it should so.

We rely on HCI_INQUIRY flag to implement the discovery procedure
properly. So, as we aren't able to clear/set the HCI_INQUIRY flag
in a reliable manner, periodic inquiry events shouldn't change
the HCI_INQUIRY flag.

Thus, due to that issue and in order to keep compatibility with
userspace, periodic inquiry events shouldn't send mgmt discovering
events.

In future, we might track if periodic inquiry is enabled or not.
By tracking this state we'll be able to do some improvements in
Discovery such as failing MGMT_OP_START_DISCOVERY command in case
periodic inquiry is on. We can also send no mgmt_device_found
event if periodic inquiry is on.

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: Periodic Inquiry and Discovery 2011-11-08 12:54:08 -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