Bluetooth: Clear discovery filter before starting background scan
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2014 10:45:23 +0000 (11:45 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 5 Dec 2014 11:13:01 +0000 (13:13 +0200)
commitee3c3ca5ba2fdff10f3f71b4f9923807a0983564
tree8424d397b11f8543c978288a97e9da281019f589
parent22078800c337cf374d58b63a5b1f670d470e6dbf
Bluetooth: Clear discovery filter before starting background scan

Currently the discovery filter information are only cleared when the
actual discovery procedure has been stopped. To make sure that none
of the filters interfere with the background scanning and its device
found event reporting, clear the filter before starting background
scanning.

This means that the discovery filter is now cleared before either
Start Discovery, Start Service Discovery or background scanning.

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