summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorerin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-01-02 08:37:09 +0000
committererin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-01-02 08:37:09 +0000
commit6cf14fb22b3bb03822fd0b09d633913fc3ecea64 (patch)
tree93cd7a194f1b8571d919ac7c632906cc43f7a743 /src
parenta38a88c8f168f93f2c9d257607e5289d3b485874 (diff)
gsmd: remove AT%CPHS from vendor_ti.c (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3759 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src')
-rw-r--r--src/gsmd/vendor_ti.c42
1 files changed, 1 insertions, 41 deletions
diff --git a/src/gsmd/vendor_ti.c b/src/gsmd/vendor_ti.c
index 6a633a6..e34cbaf 100644
--- a/src/gsmd/vendor_ti.c
+++ b/src/gsmd/vendor_ti.c
@@ -206,39 +206,6 @@ static const struct gsmd_unsolicit ticalypso_unsolicit[] = {
/* %CGEV: reports GPRS network events */
};
-static int cpmb_detect_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp)
-{
- struct gsmd *g = ctx;
- struct gsm_extrsp *er;
- int rc;
- char atcmd_buf[20];
-
- if (strncmp(resp, "%CPMB: ", 7))
- return -EINVAL;
- resp += 7;
-
- er = extrsp_parse(cmd, resp);
- if (!er)
- return -ENOMEM;
-
- extrsp_dump(er);
-
- if (er->num_tokens == 5 &&
- er->tokens[2].type == GSMD_ECMD_RTT_STRING &&
- er->tokens[3].type == GSMD_ECMD_RTT_NUMERIC &&
- er->tokens[4].type == GSMD_ECMD_RTT_STRING) {
- snprintf(atcmd_buf, sizeof(atcmd_buf), "AT+CSVM=1,\"%s\",%d",
- er->tokens[2].u.string, er->tokens[3].u.numeric);
- rc = gsmd_simplecmd(g, atcmd_buf);
- } else {
- rc = -EINVAL;
- }
-
- talloc_free(er);
-
- return rc;
-}
-
static int cpi_detect_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp)
{
struct gsmd *g = ctx;
@@ -252,11 +219,6 @@ static int cpi_detect_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp)
if (!er)
return -EINVAL;
- /* retrieve voicemail number */
- cmd = atcmd_fill("AT%CPMB=1", 10, &cpmb_detect_cb, g, 0, NULL);
- if (cmd)
- atcmd_submit(g, cmd);
-
if (extrsp_supports(er, 0, 3))
return gsmd_simplecmd(g, "AT%CPI=3");
else if (extrsp_supports(er, 0, 2))
@@ -291,9 +253,7 @@ static int ticalypso_initsettings(struct gsmd *g)
rc |= gsmd_simplecmd(g, "AT%CSQ=1");
/* send unsolicited commands at any time */
rc |= gsmd_simplecmd(g, "AT%CUNS=0");
- /* enable %CPHS: Initialise CPHS Functionalities */
- rc |= gsmd_simplecmd(g, "AT%CPHS=1");
-
+
/* enable %CPI: call progress indication */
cmd = atcmd_fill("AT%CPI=?", 9, &cpi_detect_cb, g, 0, NULL);
if (cmd)
personal git repositories of Harald Welte. Your mileage may vary