Merge "Fix Order of Operations for Converting RSSI to ASU"
This commit is contained in:
@@ -119,7 +119,7 @@ public abstract class CellSignalStrength {
|
|||||||
/** @hide */
|
/** @hide */
|
||||||
protected static final int getAsuFromRssiDbm(int dbm) {
|
protected static final int getAsuFromRssiDbm(int dbm) {
|
||||||
if (dbm == CellInfo.UNAVAILABLE) return 99;
|
if (dbm == CellInfo.UNAVAILABLE) return 99;
|
||||||
return (dbm / 2) + 113;
|
return (dbm + 113) / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Range for RSCP in ASU (0-96, 255) as defined in TS 27.007 8.69
|
// Range for RSCP in ASU (0-96, 255) as defined in TS 27.007 8.69
|
||||||
|
|||||||
Reference in New Issue
Block a user