From 977d5ac6cef77893d81b9a6326d09e2c00d2a875 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 24 Aug 2016 10:56:19 -0500 Subject: [PATCH] broadband-modem-novatel: $NWRSSI can report lower values than -115 My E725 reported 125 once; that's a valid dBm and MM shouldn't report an error when parsing it. --- plugins/novatel/mm-broadband-modem-novatel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/novatel/mm-broadband-modem-novatel.c b/plugins/novatel/mm-broadband-modem-novatel.c index c431e717..88f0c36d 100644 --- a/plugins/novatel/mm-broadband-modem-novatel.c +++ b/plugins/novatel/mm-broadband-modem-novatel.c @@ -780,7 +780,7 @@ get_one_quality (const gchar *reply, /* Some cards appear to use RX0/RX1 and output RSSI in negative dBm */ if (dbm < 0) success = TRUE; - } else if (isdigit (*temp) && (dbm > 0) && (dbm < 115)) { + } else if (isdigit (*temp) && (dbm > 0) && (dbm <= 125)) { /* S720 appears to use "1x RSSI" and print RSSI in dBm without '-' */ dbm *= -1; success = TRUE;