[network-manager-applet] gsm: ignore SIM-PUK2 unlock required



commit 55f0bc19b388a59f132f43b446347d6421fe4c10
Author: Dan Williams <dcbw redhat com>
Date:   Tue Mar 16 17:16:54 2010 -0700

    gsm: ignore SIM-PUK2 unlock required
    
    It's only required for various dialing bits which we don't care
    about.  The device is functional without sending the SIM-PUK2.

 src/applet-device-gsm.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/applet-device-gsm.c b/src/applet-device-gsm.c
index 73917b0..d02a19e 100644
--- a/src/applet-device-gsm.c
+++ b/src/applet-device-gsm.c
@@ -1207,8 +1207,13 @@ parse_unlock_required (GValue *value)
 
 	/* Empty string means NULL */
 	new_val = g_value_get_string (value);
-	if (new_val && strlen (new_val))
-		return g_strdup (new_val);
+	if (new_val && strlen (new_val)) {
+		/* PUK2 only required for various dialing things that we don't care
+		 * about; it doesn't inhibit normal operation.
+		 */
+		if (strcmp (new_val, "sim-puk2") != 0)
+			return g_strdup (new_val);
+	}
 
 	return NULL;
 }



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