aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-12 12:21:33 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-07-12 12:26:01 +0200
commit9f6b6d62e21db48c11f28336c82c70de577301fe (patch)
treee43dfbad3d219cf9b0024a10b5e0ebf557936007
parent14dec9f060c56b8bf064a80f09e272aff862edfb (diff)
huawei: ignore unsolicited ^CSNR messages
They seem to give the raw value of the SNR, but we already do signal quality reporting using ^RSSI, so not useful.
-rw-r--r--plugins/mm-modem-huawei-gsm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mm-modem-huawei-gsm.c b/plugins/mm-modem-huawei-gsm.c
index bdd2e9a9..f321d54e 100644
--- a/plugins/mm-modem-huawei-gsm.c
+++ b/plugins/mm-modem-huawei-gsm.c
@@ -817,6 +817,10 @@ port_grabbed (MMGenericGsm *gsm,
regex = g_regex_new ("\\r\\n\\^BOOT:.+\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port), regex, NULL, gsm, NULL);
g_regex_unref (regex);
+
+ regex = g_regex_new ("\\r\\n\\^CSNR:.+\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
+ mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port), regex, NULL, gsm, NULL);
+ g_regex_unref (regex);
}
}