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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user