Bluetooth: Track number of added devices with HCI_AUTO_CONN_REPORT
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 2 Jul 2014 19:42:00 +0000 (22:42 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:58 +0000 (17:42 +0200)
commit851efca8387e10a25ca259f7efcc47819b19bff9
tree91644ae618384fdec8b351be5b21998ed718ddaa
parent82a30cfcb85538b677817815939306d20d5b8e61
Bluetooth: Track number of added devices with HCI_AUTO_CONN_REPORT

To be able to make the right choice of whether to start passive scanning
or to send out a mgmt_device_found event we need to know if there are
any devices in the le_conn_params list with the auto_connect value set
to HCI_AUTO_CONN_REPORT. This patch adds a counter for this kind of
devices.

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