diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-12 12:21:33 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-12 12:21:33 +0200 |
commit | 0a214cadf6a2f501309734226c95f105068ca47b (patch) | |
tree | 82b80e2eb474888a18592b7990c9d64247b284c4 | |
parent | bbee2fe0544748a96152ae2d5ecd30f6f418e58c (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mm-modem-huawei-gsm.c b/plugins/mm-modem-huawei-gsm.c index d5145e2f..88272130 100644 --- a/plugins/mm-modem-huawei-gsm.c +++ b/plugins/mm-modem-huawei-gsm.c @@ -791,6 +791,10 @@ grab_port (MMModem *modem, 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, modem, 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, modem, NULL); + g_regex_unref (regex); } out: |