Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ril] Calculate signal strength based on rsrp value correctly. JB#50995.
All the dBm values are converted to qdbm (multiply by 4) but rsrp which
results in incorrect signal strength representation on some devices.
  • Loading branch information
Aleksei Berman committed Aug 28, 2020
1 parent ed62d38 commit ed2f625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ofono/drivers/ril/ril_netreg.c
Expand Up @@ -503,7 +503,7 @@ static int ril_netreg_get_signal_strength(struct ril_netreg *nd,
signal.qdbm = -4 * tdscdma_dbm;
} else if (signal.lte == 99 && rsrp >= 44 && rsrp <= 140) {
/* RSRP range: 44 to 140 dBm per 3GPP TS 36.133 */
signal.qdbm = -rsrp;
signal.qdbm = -4 * rsrp;
}
}

Expand Down

0 comments on commit ed2f625

Please sign in to comment.