huawei: ignore ^ECCLIST unsolicited messages
These messages list the emergency numbers reported by the network, we don't use them yet. E.g.: ^ECCLIST: 112,911\r\n
This commit is contained in:
@@ -117,6 +117,7 @@ struct _MMBroadbandModemHuaweiPrivate {
|
||||
GRegex *rfswitch_regex;
|
||||
GRegex *position_regex;
|
||||
GRegex *posend_regex;
|
||||
GRegex *ecclist_regex;
|
||||
|
||||
FeatureSupport ndisdup_support;
|
||||
FeatureSupport rfswitch_support;
|
||||
@@ -4057,6 +4058,10 @@ set_ignored_unsolicited_events_handlers (MMBroadbandModemHuawei *self)
|
||||
port,
|
||||
self->priv->posend_regex,
|
||||
NULL, NULL, NULL);
|
||||
mm_port_serial_at_add_unsolicited_msg_handler (
|
||||
port,
|
||||
self->priv->ecclist_regex,
|
||||
NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
g_list_free_full (ports, (GDestroyNotify)g_object_unref);
|
||||
@@ -4173,6 +4178,8 @@ mm_broadband_modem_huawei_init (MMBroadbandModemHuawei *self)
|
||||
G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
|
||||
self->priv->posend_regex = g_regex_new ("\\r\\n\\^POSEND:.+\\r\\n",
|
||||
G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
|
||||
self->priv->ecclist_regex = g_regex_new ("\\r\\n\\^ECCLIST:.+\\r\\n",
|
||||
G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
|
||||
|
||||
/* Voice related regex
|
||||
* <CR><LF>^ORIG: <call_x>,<call_type><CR><LF>
|
||||
@@ -4240,6 +4247,7 @@ finalize (GObject *object)
|
||||
g_regex_unref (self->priv->rfswitch_regex);
|
||||
g_regex_unref (self->priv->position_regex);
|
||||
g_regex_unref (self->priv->posend_regex);
|
||||
g_regex_unref (self->priv->ecclist_regex);
|
||||
g_regex_unref (self->priv->orig_regex);
|
||||
g_regex_unref (self->priv->conf_regex);
|
||||
g_regex_unref (self->priv->conn_regex);
|
||||
|
||||
Reference in New Issue
Block a user