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-09 11:30:02 +0200
commitc603ab385baf5050fdbd47af9bdf9d46d407b1ab (patch)
tree31b0c9abcda098cd634b865b80e18b7d119ea1ce
parentb1b0ff50d86e240d2c1d6aa2f19272ce000a5704 (diff)
mbimcli,atds: fix thresholds in LTE SNR processing
The encoded LTE SNR value is between 0 and 35, not up to 97.
-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"