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.
This commit is contained in:
Dan Williams
2017-04-17 11:59:12 -05:00
parent dedc1f15c7
commit 977d5ac6ce
+1 -1
View File
@@ -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;