diff options
author | Dan Williams <dcbw@redhat.com> | 2010-03-06 10:28:11 -0800 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-03-06 10:28:11 -0800 |
commit | 54c1d069eb688f60cc721fb435953dfaebcfa6d7 (patch) | |
tree | 03253e963d96e1dfba83b54a323251f70e7473bb /plugins/mm-modem-mbm.c | |
parent | 31fb97919cd7d95d1f9b23bd0c2428d8a19dc3e4 (diff) |
gsm: rework registration handling
First, generically handle registration polling if the device does
not support unsolicited registration. Second, using the new
creg/cgreg parsing functions from mm-modem-helpers.c, handle
CREG=2 unsolicited registration replies to capture the GSM LAC/CI
for the location information API.
Because of these changes we can simplify the registration polling
during connection as well by using the common registration parsing
code and the cached registration state.
Diffstat (limited to 'plugins/mm-modem-mbm.c')
-rw-r--r-- | plugins/mm-modem-mbm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/mm-modem-mbm.c b/plugins/mm-modem-mbm.c index eb98990c..417457f7 100644 --- a/plugins/mm-modem-mbm.c +++ b/plugins/mm-modem-mbm.c @@ -747,8 +747,6 @@ grab_port (MMModem *modem, if (port && MM_IS_SERIAL_PORT (port) && (ptype == MM_PORT_TYPE_PRIMARY)) { GRegex *regex; - mm_generic_gsm_set_unsolicited_registration (MM_GENERIC_GSM (modem), TRUE); - regex = g_regex_new ("\\r\\n\\*EMRDY: \\d\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); mm_serial_port_add_unsolicited_msg_handler (MM_SERIAL_PORT (port), regex, mbm_emrdy_received, modem, NULL); g_regex_unref (regex); |