From: Johan Hedberg Date: Mon, 7 Jul 2014 10:24:59 +0000 (+0300) Subject: Bluetooth: Don't let background scanning interfering with discovery X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~87^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae23ada43d7d644e563a23d4c2cd2aa828be1431;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed