From 3d178fafcf3e0fc0dbe852d0c6f2d2184f7afae7 Mon Sep 17 00:00:00 2001 From: Torgny Johansson Date: Sat, 19 Sep 2009 11:42:10 -0700 Subject: [PATCH] mbm: handle *EMWI unsolicited responses --- plugins/mm-modem-mbm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/mm-modem-mbm.c b/plugins/mm-modem-mbm.c index c9a69e5e..41c42293 100644 --- a/plugins/mm-modem-mbm.c +++ b/plugins/mm-modem-mbm.c @@ -730,6 +730,10 @@ grab_port (MMModem *modem, regex = g_regex_new ("\\r\\n\\ *ESTKSMENU: .* \\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); mm_serial_port_add_unsolicited_msg_handler (MM_SERIAL_PORT (port), regex, NULL, modem, NULL); g_regex_unref (regex); + + regex = g_regex_new ("\\r\\n\\*EMWI: (\\d),(\\d).*\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); + mm_serial_port_add_unsolicited_msg_handler (MM_SERIAL_PORT (port), regex, NULL, NULL, NULL); + g_regex_unref (regex); } return TRUE;