]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix connecting devices during LE device discovery
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Jul 2014 09:45:53 +0000 (12:45 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 7 Jul 2014 09:58:38 +0000 (11:58 +0200)
commit3b52358a669da88e8f3a45bd5db760ca596ffcc7
tree2ce6df6b9c60c498afda93fd01a7a01d4ad3a7de
parenta84162b0d24f3258c234d4efd1f7da8d42945ec8
Bluetooth: Fix connecting devices during LE device discovery

If we have devices set as to be connected we should connect to them even
during normal discovery if we get a connectable advertising event. If we
also have HCI_CONNECTABLE set we should connect ADV_DIRECT_IND events
even to devices that we don't have in our pend_le_conns list. This patch
implements such behavior by passing the advertising report type to
check_pending_le_conn() and calls that function regardless of what type
of scanning we are doing.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c