From 4cb58b8f5f373f5717005a5216d1b4ee8802839c Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sat, 16 Jan 2010 15:59:29 -0800 Subject: [PATCH] zte: ignore SIM Build Main Menu requests (rh #551376) --- plugins/mm-modem-zte.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/mm-modem-zte.c b/plugins/mm-modem-zte.c index 24610738..92c23aeb 100644 --- a/plugins/mm-modem-zte.c +++ b/plugins/mm-modem-zte.c @@ -183,14 +183,22 @@ grab_port (MMModem *modem, mm_serial_port_add_unsolicited_msg_handler (MM_SERIAL_PORT (port), regex, NULL, NULL, NULL); g_regex_unref (regex); + /* Unsolicted operator display */ regex = g_regex_new ("\\r\\n\\+ZDONR: (.*)\\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); + /* Current network and service domain */ regex = g_regex_new ("\\r\\n\\+ZPASR: (.*)\\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); + /* SIM request to Build Main Menu */ + regex = g_regex_new ("\\r\\n\\+ZPSTM: (.*)\\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); + + /* SIM request to Rebuild Main Menu */ regex = g_regex_new ("\\r\\n\\+ZEND\\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);