From 3e4602533888f8491f355b4b11a868897139d420 Mon Sep 17 00:00:00 2001 From: laforge Date: Wed, 28 Mar 2007 00:21:15 +0000 Subject: fix GSM signal strength parsing (Closes: 291) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1520 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/vendor_ti.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gsmd') diff --git a/src/gsmd/vendor_ti.c b/src/gsmd/vendor_ti.c index 9371e1b..049433e 100644 --- a/src/gsmd/vendor_ti.c +++ b/src/gsmd/vendor_ti.c @@ -81,7 +81,7 @@ static int csq_parse(char *buf, int len, const char *param, aux = (struct gsmd_evt_auxdata *) ucmd->buf; - tok = strtok(buf, ","); + tok = strtok(param, ","); if (!tok) goto out_free_io; @@ -93,7 +93,6 @@ static int csq_parse(char *buf, int len, const char *param, aux->u.signal.sigq.ber = atoi(tok); - DEBUGP("sending EVT_SIGNAL\n"); usock_evt_send(gsmd, ucmd, GSMD_EVT_SIGNAL); return 0; -- cgit v1.2.3