summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-03-10 22:08:06 +0000
committerlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-03-10 22:08:06 +0000
commitdc0249fe1a5bba609f4f57bcc91c556f6745b008 (patch)
tree5ec12226d03476583059375339f006b51cfd495d
parent3026b93e266558671bd361b6c07546f8174974bc (diff)
* add CTZV stub
* dont escape % sign in non-format strings git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1317 99fdad57-331a-0410-800a-d7fa5415bdb3
-rw-r--r--src/gsmd/vendor_ti.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/gsmd/vendor_ti.c b/src/gsmd/vendor_ti.c
index 0cc0783..9371e1b 100644
--- a/src/gsmd/vendor_ti.c
+++ b/src/gsmd/vendor_ti.c
@@ -143,6 +143,13 @@ static int cpri_parse(char *buf, int len, const char *param, struct gsmd *gsmd)
return 0;
}
+static int ctzv_parse(char *buf, int len, const char *param, struct gsmd *gsmd)
+{
+ /* FIXME: decide what to do with it. send as event to clients? or keep
+ * locally? Offer option to sync system RTC? */
+ return 0;
+}
+
/* Call Progress Information */
static int cpi_parse(char *buf, int len, const char *param, struct gsmd *gsmd)
{
@@ -223,16 +230,16 @@ out_free_io:
}
static const struct gsmd_unsolicit ticalypso_unsolicit[] = {
- { "\%CSQ", &csq_parse }, /* Signal Quality */
- { "\%CPRI", &cpri_parse }, /* Ciphering Indication */
- { "\%CPI", &cpi_parse }, /* Call Progress Information */
+ { "%CSQ", &csq_parse }, /* Signal Quality */
+ { "%CPRI", &cpri_parse }, /* Ciphering Indication */
+ { "%CPI", &cpi_parse }, /* Call Progress Information */
+ { "%CTZV", &ctzv_parse }, /* network time and data */
/* FIXME: parse all the below and generate the respective events */
/* %CPROAM: CPHS Home Country Roaming Indicator */
/* %CPVWI: CPHS Voice Message Waiting */
/* %CGREG: reports extended information about GPRS registration state */
- /* %CTZV: reports network time and date information */
/* %CNIV: reports network name information */
/* %CPKY: Press Key */
/* %CMGRS: Message Retransmission Service */
personal git repositories of Harald Welte. Your mileage may vary