[RFC, PATCH] move time zone change reporting to the TI vendor plugin

Philipp Zabel philipp.zabel at gmail.com
Sat Feb 17 14:16:15 CET 2007


AT+CTZR is not supported by all GSM chipsets. Currently the
initialization doesn't finish if any of the common init commands return
ERROR, so I propose to move CRZR into the vendor plugin.

Index: gsm/src/gsmd/gsmd.c
===================================================================
--- gsm.orig/src/gsmd/gsmd.c	2007-02-17 13:59:00.000000000 +0100
+++ gsm/src/gsmd/gsmd.c	2007-02-17 13:59:24.000000000 +0100
@@ -76,8 +76,6 @@
 	rc |= gsmd_simplecmd(gsmd, "AT+CLIP=1");
 	/* use +COLP: to indicate COLP */
 	rc |= gsmd_simplecmd(gsmd, "AT+COLP=1");
-	/* use +CTZR: to report time zone changes */
-	rc |= gsmd_simplecmd(gsmd, "AT+CTZR=1");
 	/* power on the phone */
 	rc |= gsmd_simplecmd(gsmd, "AT+CFUN=1");
 
Index: gsm/src/gsmd/vendor_ti.c
===================================================================
--- gsm.orig/src/gsmd/vendor_ti.c	2007-02-17 13:58:40.000000000 +0100
+++ gsm/src/gsmd/vendor_ti.c	2007-02-17 14:00:10.000000000 +0100
@@ -208,6 +208,8 @@
 static int ticalypso_initsettings(struct gsmd *g)
 {
 	int rc;
+	/* use +CTZR: to report time zone changes */
+	rc |= gsmd_simplecmd(g, "AT+CTZR=1");
 	/* enable %CPRI: ciphering indications */
 	rc |= gsmd_simplecmd(g, "AT\%CPRI=1");
 	/* enable %CSQ: signal quality reports */





More information about the gsmd-devel mailing list