From a4b4951f076bd3a8e5cab2ee0b36b7c23dc93fd3 Mon Sep 17 00:00:00 2001 From: laforge Date: Wed, 25 Apr 2007 08:54:42 +0000 Subject: zero LAC and CI if +CREG is 0 / 2 (and not 1). (Closes: #454) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1827 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/unsolicited.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gsmd') diff --git a/src/gsmd/unsolicited.c b/src/gsmd/unsolicited.c index c355c71..251f4ed 100644 --- a/src/gsmd/unsolicited.c +++ b/src/gsmd/unsolicited.c @@ -160,7 +160,8 @@ static int creg_parse(char *buf, int len, const char *param, if (!comma) return -EINVAL; aux->u.netreg.ci = strtoul(comma+2, NULL, 16); - } + } else + aux->u.netreg.lac = aux->u.netreg.ci = 0; return usock_evt_send(gsmd, ucmd, GSMD_EVT_NETREG); } -- cgit v1.2.3