[PATCH] ModemManager: gsm: Correctly set registration status when disabling



Pretty much like it says; without this, the circuit-switched status isn't set back to UNKNOWN at disable time, which messes with the value returned by gsm_reg_status().
Pesky integer types all being the same.....

    - Nathan

From ea36f0d7554a4c6a6ce3e9bb487c4c687cbd9798 Mon Sep 17 00:00:00 2001
From: Nathan Williams <njw chromium org>
Date: Wed, 18 May 2011 20:37:49 -0400
Subject: [PATCH] gsm: Correctly set registration status when disabling.

Change-Id: I0629706985f273832ac3662acb260388d0e6ed83
---
 src/mm-generic-gsm.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c
index 58454da..1fa7235 100644
--- a/src/mm-generic-gsm.c
+++ b/src/mm-generic-gsm.c
@@ -1594,14 +1594,12 @@ disable_done (MMAtSerialPort *port,
 
         /* Clear out circuit-switched registration info... */
         reg_info_updated (self,
-                          MM_GENERIC_GSM_REG_TYPE_CS,
-                          TRUE, MM_MODEM_GSM_NETWORK_REG_STATUS_UNKNOWN,
+                          TRUE, MM_GENERIC_GSM_REG_TYPE_CS, MM_MODEM_GSM_NETWORK_REG_STATUS_UNKNOWN,
                           TRUE, NULL,
                           TRUE, NULL);
         /* ...and packet-switched registration info */
         reg_info_updated (self,
-                          MM_GENERIC_GSM_REG_TYPE_PS,
-                          TRUE, MM_MODEM_GSM_NETWORK_REG_STATUS_UNKNOWN,
+                          TRUE, MM_GENERIC_GSM_REG_TYPE_PS, MM_MODEM_GSM_NETWORK_REG_STATUS_UNKNOWN,
                           TRUE, NULL,
                           TRUE, NULL);
     }
-- 
1.7.3.1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]