Bluetooth: Temporarily stop background scanning on discovery
authorAndre Guedes <andre.guedes@openbossa.org>
Wed, 26 Feb 2014 23:21:50 +0000 (20:21 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 27 Feb 2014 03:41:35 +0000 (19:41 -0800)
commitc54c3860e3dbaa68128dbb288b2806dd86c230cc
treede991b8e59c8aa5463a2793e5d62ac788e753e7f
parentcef952ce760a1113207b277af65a6ea2644a1b4a
Bluetooth: Temporarily stop background scanning on discovery

If the user sends a mgmt start discovery command while the background
scanning is running, we should temporarily stop it. Once the discovery
finishes, we start the background scanning again.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c