diff options
author | Dan Williams <dcbw@redhat.com> | 2016-08-24 10:56:19 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2017-04-17 11:59:12 -0500 |
commit | 977d5ac6cef77893d81b9a6326d09e2c00d2a875 (patch) | |
tree | e7c13b0bd2c3b4ad6fcfcbd86dedfa5e885da027 /plugins | |
parent | dedc1f15c78e64002827581aef7df72a98c55759 (diff) |
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.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/novatel/mm-broadband-modem-novatel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |