FM: Remove sync code for SINR And RSSI
SINR And RSSI command synchronization is already handled at fm service level.
Change-Id: Ica47ef5b743608d12a3377829885ae124698ef06
diff --git a/fmapp2/src/com/caf/fmradio/FMStats.java b/fmapp2/src/com/caf/fmradio/FMStats.java
index cee1b85..7ea1299 100644
--- a/fmapp2/src/com/caf/fmradio/FMStats.java
+++ b/fmapp2/src/com/caf/fmradio/FMStats.java
@@ -466,10 +466,7 @@
if (lastCmdSent == CMD_STNPARAM_SINR)
nSINR = msg.arg1;
}
- synchronized (obj) {
- obj.notify();
- }
- lastCmdSent = 0;
+ lastCmdSent = 0;
break;
case GET_STATION_DBG_PARAM:
status = msg.arg2;
@@ -3269,22 +3266,13 @@
if((null != mService)) {
try {
if (isCherokeeChip) {
+ lastCmdSent = CMD_STNPARAM_RSSI;
ret = mService.getRssi();
if (ret != 0) {
Log.e(LOGTAG, "getrssi cmd failed: ret = " + ret);
+ lastCmdSent = 0;
return null;
}
- lastCmdSent = CMD_STNPARAM_RSSI;
- Log.e(LOGTAG, "wait for response of mService.getRssi");
- synchronized (obj) {
- try {
- obj.wait();
- } catch (InterruptedException e) {
- Log.e(LOGTAG, "getRSSI:THREAD interrupted");
- e.printStackTrace();
- return null;
- }
- }
} else {
nRssi = mService.getRssi();
}
@@ -3333,18 +3321,8 @@
if(isTransportLayerSMD() || isRomeChip() || isCherokeeChip) {
try {
if (isCherokeeChip) {
- mService.getSINR();
lastCmdSent = CMD_STNPARAM_SINR;
- Log.e(LOGTAG, "wait for response of mService.getSINR");
- synchronized (obj) {
- try {
- obj.wait();
- } catch (InterruptedException e) {
- Log.e(LOGTAG, "getSINR:THREAD interrupted");
- e.printStackTrace();
- return null;
- }
- }
+ mService.getSINR();
} else {
nSINR = mService.getSINR();
}