linux/include/net/bluetooth
Marcel Holtmann 4b9e7e7516 Bluetooth: Fix issue with ADV_IND reports and auto-connection handling
When adding remote devices to the kernel using the Add Device management
command, these devices are explicitly allowed to connect. This kind of
incoming connections are possible even when the controller itself is
not connectable.

For BR/EDR this distinction is pretty simple since there is only one
type of incoming connections. With LE this is not that simple anymore
since there are ADV_IND and ADV_DIRECT_IND advertising events.

The ADV_DIRECT_IND advertising events are send for incoming (slave
initiated) connections only. And this is the only thing the kernel
should allow when adding devices using action 0x01. This meaning
of incoming connections is coming from BR/EDR and needs to be
mapped to LE the same way.

Supporting the auto-connection of devices using ADV_IND advertising
events is an important feature as well. However it does not map to
incoming connections. So introduce a new action 0x02 that allows
the kernel to connect to devices using ADV_DIRECT_IND and in addition
ADV_IND advertising reports.

This difference is represented by the new HCI_AUTO_CONN_DIRECT value
for only connecting to ADV_DIRECT_IND. For connection to ADV_IND and
ADV_DIRECT_IND the old value HCI_AUTO_CONN_ALWAYS is used.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2014-07-24 00:37:23 +03:00
..
bluetooth.h Bluetooth: Shrink size of struct l2cap_ctrl fields 2014-07-03 17:42:41 +02:00
hci.h Bluetooth: Get MWS transport configuration of the controller 2014-07-23 20:34:08 +03:00
hci_core.h Bluetooth: Fix issue with ADV_IND reports and auto-connection handling 2014-07-24 00:37:23 +03:00
hci_mon.h Bluetooth: Fix coding style in all .h files 2012-03-07 00:04:25 -03:00
hci_sock.h Bluetooth: Move HCI socket definitions into its own header file 2014-07-11 13:53:04 +03:00
l2cap.h Bluetooth: Pass initiator/acceptor information to hci_conn_security() 2014-07-17 14:39:39 +02:00
mgmt.h Bluetooth: Add support for changing the public device address 2014-07-06 13:42:20 +03:00
rfcomm.h Bluetooth: Convert RFCOMM spinlocks into mutexes 2014-05-05 19:25:06 -07:00
sco.h Bluetooth: Move SCO timeout constants into net/bluetooth/sco.c 2014-07-11 13:58:58 +03:00