From 3d86a3e89a18ccd98b9f65b389f70ba19f100004 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 14 Oct 2009 13:47:21 -0700 Subject: gsm: don't issue CFUN=0 by default Let plugins do it when they know it's OK. --- src/mm-generic-gsm.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c index 3becf7f6..155c20cc 100644 --- a/src/mm-generic-gsm.c +++ b/src/mm-generic-gsm.c @@ -1928,7 +1928,14 @@ get_property (GObject *object, guint prop_id, g_value_set_string (value, "+CFUN=1"); break; case MM_GENERIC_GSM_PROP_POWER_DOWN_CMD: - g_value_set_string (value, "+CFUN=0"); + /* CFUN=0 is dangerous and often will shoot devices in the head (that's + * what it's supposed to do). So don't use CFUN=0 by default, but let + * specific plugins use it when they know it's safe to do so. For + * example, CFUN=0 will often make phones turn themselves off, but some + * dedicated devices (ex Sierra WWAN cards) will just turn off their + * radio but otherwise still work. + */ + g_value_set_string (value, ""); break; case MM_GENERIC_GSM_PROP_INIT_CMD: g_value_set_string (value, "Z E0 V1 X4 &C1 +CMEE=1"); -- cgit v1.2.3-70-g09d2