From 8f223f45f9e0c81fc9267b830c7c05b9aa731f2a Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 1 Feb 2011 22:52:34 -0600 Subject: [PATCH] zte: fix handling of Icera simple connect process Yay for GInterface. --- plugins/mm-modem-zte.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/mm-modem-zte.c b/plugins/mm-modem-zte.c index c447c58f..e5446c2f 100644 --- a/plugins/mm-modem-zte.c +++ b/plugins/mm-modem-zte.c @@ -547,12 +547,13 @@ simple_connect (MMModemSimple *simple, MMModemFn callback, gpointer user_data) { - MMModemZtePrivate *priv = MM_MODEM_ZTE_GET_PRIVATE (simple); + MMModemZte *self = MM_MODEM_ZTE (simple); + MMModemZtePrivate *priv = MM_MODEM_ZTE_GET_PRIVATE (self); MMCallbackInfo *info = (MMCallbackInfo *) user_data; MMModemSimple *parent_iface; if (priv->is_icera) - mm_modem_icera_simple_connect (MM_MODEM_ICERA (simple), properties); + mm_modem_icera_simple_connect (MM_MODEM_ICERA (self), properties); parent_iface = g_type_interface_peek_parent (MM_MODEM_SIMPLE_GET_INTERFACE (simple)); parent_iface->connect (MM_MODEM_SIMPLE (simple), properties, callback, info);