aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/novatel/mm-broadband-modem-novatel.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/novatel/mm-broadband-modem-novatel.c b/plugins/novatel/mm-broadband-modem-novatel.c
index 8c115ee8..d05e649b 100644
--- a/plugins/novatel/mm-broadband-modem-novatel.c
+++ b/plugins/novatel/mm-broadband-modem-novatel.c
@@ -767,10 +767,8 @@ get_one_quality (const gchar *reply,
}
}
- if (success) {
- dbm = CLAMP (dbm, -113, -51);
- quality = 100 - ((dbm + 51) * 100 / (-113 + 51));
- }
+ if (success)
+ quality = MM_RSSI_TO_QUALITY (dbm);
g_free (temp);
return quality;