summaryrefslogtreecommitdiffstats
path: root/src/org
diff options
context:
space:
mode:
authorKiran Kelageri <kelageri@codeaurora.org>2015-06-23 16:57:08 -0700
committerKiran Kelageri <kirankelageri@codeaurora.org>2015-06-23 17:33:19 -0700
commitb0d46e80100efda619c27d77ca9f8c0a3a4a0917 (patch)
tree5ded96af4709eb0f7ae1396d22a3fd5347363bb6 /src/org
parent3df4af83460215dfce7ce921c46d541fb4dc3c73 (diff)
downloadandroid_packages_apps_BluetoothExt-b0d46e80100efda619c27d77ca9f8c0a3a4a0917.tar.gz
android_packages_apps_BluetoothExt-b0d46e80100efda619c27d77ca9f8c0a3a4a0917.tar.bz2
android_packages_apps_BluetoothExt-b0d46e80100efda619c27d77ca9f8c0a3a4a0917.zip
Bluetooth-Wipower: Fix for missing PAE.
Power disable command is sent before sending enable command such that FW could reset OWI state. Change-Id: I505b3ca1281ebc2e9915f04ea7d623cdab5b6211
Diffstat (limited to 'src/org')
-rw-r--r--src/org/codeaurora/bluetooth/a4wp/A4wpService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/codeaurora/bluetooth/a4wp/A4wpService.java b/src/org/codeaurora/bluetooth/a4wp/A4wpService.java
index 0f849b4..aba7945 100644
--- a/src/org/codeaurora/bluetooth/a4wp/A4wpService.java
+++ b/src/org/codeaurora/bluetooth/a4wp/A4wpService.java
@@ -203,6 +203,7 @@ public class A4wpService extends Service
Log.v(LOGTAG, "initiateDisconnection:" + " dropping Connection");
mDiscInitiated = true;
mBluetoothGattServer.cancelConnection(mDevice);
+ mWipowerManager.enablePowerApply(false, false, false);
if (mChargeComplete == true) {
mWipowerManager.enablePowerApply(true, true, true);
} else {
@@ -219,6 +220,7 @@ public class A4wpService extends Service
public void onWbcEventUpdate(int what, int arg1, int arg2) {
Log.v(LOGTAG, "onWbcEventUpdate rcvd: " + what + ", " + arg1 + ", " + arg2);
if ((what == WbcTypes.WBC_EVENT_TYPE_CHARGING_REQUIRED_STATUS)){
+ mWipowerManager.enablePowerApply(false, false, false);
if ((arg1 == WbcTypes.WBC_BATTERY_STATUS_CHARGING_NOT_REQUIRED)){
// this will set charge complete bit in pru alert
// eventally leading to a possible disconnect from ptu
@@ -779,6 +781,7 @@ public class A4wpService extends Service
mWipowerManager.enableAlertNotification(false);
mEnablePruAlerts = false;
mWipowerManager.stopCharging();
+ mWipowerManager.enablePowerApply(false, false, false);
if (mChargeComplete != true) {
mWipowerManager.enablePowerApply(true, true, false);
} else {