summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/gsmd/gsmd.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..914caf1
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,3 @@
+2007-05-16 Mickey Lauer <mickey@openmoko.org>
+
+* gsmd.c (gsmd_initsettings): always power off gsm to have a sane starting point
diff --git a/src/gsmd/gsmd.c b/src/gsmd/gsmd.c
index e2ecaa7..62eb2e0 100644
--- a/src/gsmd/gsmd.c
+++ b/src/gsmd/gsmd.c
@@ -76,8 +76,8 @@ int gsmd_initsettings(struct gsmd *gsmd)
rc |= gsmd_simplecmd(gsmd, "AT+CLIP=1");
/* use +COLP: to indicate COLP */
rc |= gsmd_simplecmd(gsmd, "AT+COLP=1");
- /* power on the phone */
- rc |= gsmd_simplecmd(gsmd, "AT+CFUN=1");
+ /* power off the phone */
+ rc |= gsmd_simplecmd(gsmd, "AT+CFUN=0");
/* configure message format as PDU mode*/
/* FIXME: TEXT mode support!! */
rc |= gsmd_simplecmd(gsmd, "AT+CMGF=0");
personal git repositories of Harald Welte. Your mileage may vary