]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Don't let background scanning interfering with discovery
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Jul 2014 10:24:59 +0000 (13:24 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 7 Jul 2014 10:36:39 +0000 (12:36 +0200)
commit26fd43b2506ea93745150277ca5eaef28d95cff7
treec1d981152a491ad211762b41e61196693258c40a
parentcef41de8b4d423762f7bddda4b0d76e02ae2b9ab
Bluetooth: Don't let background scanning interfering with discovery

If we have an active discovery going on we shouldn't do any changes to
LE scanning when hci_update_background_scan() is called (a call which
can happen for many different reasons). This patch fixes the issue by
returning from the function if the discovery state is anything else
except DISCOVERY_STOPPED.

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