summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-08-09 11:30:02 +0200
committerAleksander Morgado <aleksander@aleksander.es>2018-08-12 14:26:16 +0200
commit1bc377035aee48b467788b8b08e1ae323cc1dc44 (patch)
tree6315686e706c18fa08de1a9d7423607b288634f9
parent61b5e2a089dd87257e6b4a87018570fff48f4f2f (diff)
mbimcli,atds: fix thresholds in LTE SNR processing
The encoded LTE SNR value is between 0 and 35, not up to 97. (cherry picked from commit c603ab385baf5050fdbd47af9bdf9d46d407b1ab)
-rw-r--r--src/mbimcli/mbimcli-atds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbimcli/mbimcli-atds.c b/src/mbimcli/mbimcli-atds.c
index 446b757..88f718c 100644
--- a/src/mbimcli/mbimcli-atds.c
+++ b/src/mbimcli/mbimcli-atds.c
@@ -214,9 +214,9 @@ query_signal_ready (MbimDevice *device,
if (rssnr == 0)
rssnr_str = g_strdup_printf ("< -5 dB");
- else if (rssnr < 97)
+ else if (rssnr < 35)
rssnr_str = g_strdup_printf ("%d dB", -5 + rssnr);
- else if (rssnr == 97)
+ else if (rssnr == 35)
rssnr_str = g_strdup_printf (">= 30 dB");
g_print ("[%s] Signal info retrieved:\n"