Bluetooth: Allow mgmt_device_found events for kernel-side scanning
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 2 Jul 2014 19:42:01 +0000 (22:42 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:59 +0000 (17:42 +0200)
commit75ce208cc44938195f57c55f81c8e4447dd492fb
tree16611f77ddf97435c8b3bb36a44b06012e689262
parent851efca8387e10a25ca259f7efcc47819b19bff9
Bluetooth: Allow mgmt_device_found events for kernel-side scanning

When the kernel is doing LE scanning because of one or more devices
added with action 0x00 through the Add Device command we do want to let
mgmt_device_found() to proceed with sending an event. This kind of
devices are tracked with hdev->pend_le_reports, so check this value
before bailing out from the function.

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