summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-02-04 00:36:48 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-02-04 00:36:48 -0800
commit4cd0693fdbcbf5ef2ddb2e0c772d0025bcca66ec (patch)
tree7abd3b675b7d86729220562147c2e27484cd3b7a
parent6d24b564981606d215f760a8e0003f5816b2a8fd (diff)
parenta07673f11d2ab8da2660802dcb5c927e542604d0 (diff)
downloadandroid_hardware_qcom_bt-4cd0693fdbcbf5ef2ddb2e0c772d0025bcca66ec.tar.gz
android_hardware_qcom_bt-4cd0693fdbcbf5ef2ddb2e0c772d0025bcca66ec.tar.bz2
android_hardware_qcom_bt-4cd0693fdbcbf5ef2ddb2e0c772d0025bcca66ec.zip
Merge "Revert "Handle cleanup on termination of wcnss client""
-rw-r--r--libbt-vendor/src/bt_vendor_qcom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbt-vendor/src/bt_vendor_qcom.c b/libbt-vendor/src/bt_vendor_qcom.c
index 7fc5536..6ac4abb 100644
--- a/libbt-vendor/src/bt_vendor_qcom.c
+++ b/libbt-vendor/src/bt_vendor_qcom.c
@@ -127,6 +127,7 @@ bool can_perform_action(char action) {
else if (value > 2) return false;
} else {
ALOGV("%s: off : value is: %d", __func__, value);
+ value--;
if (value == 0)
can_perform = true;
else if (value < 0) return false;