From: Andre Guedes Date: Thu, 1 Mar 2012 21:19:57 +0000 (-0300) Subject: Bluetooth: Don't force DISCOVERY_STOPPED state in inquiry_cache_flush X-Git-Tag: v3.4-rc1~177^2~112^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74fe619ef96466d562a1a13e7cbab783624ec2f3;p=pandora-kernel.git Bluetooth: Don't force DISCOVERY_STOPPED state in inquiry_cache_flush We are not supposed to force DISCOVERY_STOPPED in inquiry_cache_flush because we may break the discovery state machine. For instance, during interleaved discovery, when we are about to start inquiry, the state machine forcibly goes to DISCOVERY_STOPPED while it should stay in DISCOVERY_FINDING state. This problem results in unexpected behaviors such as sending two mgmt_discovering events to userspace (when only one event is expected) and Stop Discovery failures. Signed-off-by: Andre Guedes Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed