[PATCH] mm-generic-gsm.c: non-fatal CFUN=1
- From: Valmantas Palikša <walmis gmail com>
- To: networkmanager-list gnome org
- Subject: [PATCH] mm-generic-gsm.c: non-fatal CFUN=1
- Date: Sat, 17 Oct 2009 11:23:11 +0300
If CFUN=1 returns an ERROR don't abort the Enable() process.
diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c
index b63e0ba..e781889 100644
--- a/src/mm-generic-gsm.c
+++ b/src/mm-generic-gsm.c
@@ -339,6 +339,16 @@ enable_done (MMSerialPort *port,
}
static void
+power_up_done (MMSerialPort *port,
+ GString *response,
+ GError *error,
+ gpointer user_data)
+{
+ /* non-fatal, ignore errors */
+ enable_done(port, NULL, NULL, user_data);
+}
+
+static void
init_done (MMSerialPort *port,
GString *response,
GError *error,
@@ -363,7 +373,7 @@ init_done (MMSerialPort *port,
g_object_get (G_OBJECT (info->modem), MM_GENERIC_GSM_POWER_UP_CMD, &cmd, NULL);
if (cmd && strlen (cmd))
- mm_serial_port_queue_command (port, cmd, 5, enable_done, user_data);
+ mm_serial_port_queue_command (port, cmd, 5, power_up_done, user_data);
else
enable_done (port, NULL, NULL, user_data);
g_free (cmd);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]