[PATCH] [ModemManager] Report errors from the GSM Register operation
- From: Eric Shienbrood <ers google com>
- To: networkmanager-list gnome org
- Subject: [PATCH] [ModemManager] Report errors from the GSM Register operation
- Date: Mon, 8 Aug 2011 18:10:05 -0400
Register was appearing to succeed even when it failed.
From 124157f2f9142739a1fe325c9063f272b664f2ab Mon Sep 17 00:00:00 2001
From: Eric Shienbrood <ers google com>
Date: Mon, 8 Aug 2011 18:01:27 -0400
Subject: [PATCH] gsm: pass GSM Register errors up to caller
---
src/mm-generic-gsm.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c
index c41ecf9..7266575 100644
--- a/src/mm-generic-gsm.c
+++ b/src/mm-generic-gsm.c
@@ -3044,6 +3044,8 @@ register_done (MMAtSerialPort *port,
if (priv->pending_reg_info) {
g_warn_if_fail (info == priv->pending_reg_info);
+ if (error)
+ info->error = g_error_copy(error);
/* Don't use cached registration state here since it could be up to
* 30 seconds old. Get fresh registration state.
--
1.7.3.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]