r1827 - trunk/src/target/gsm/src/gsmd
laforge at sita.openmoko.org
laforge at sita.openmoko.org
Wed Apr 25 10:54:43 CEST 2007
Author: laforge
Date: 2007-04-25 10:54:42 +0200 (Wed, 25 Apr 2007)
New Revision: 1827
Modified:
trunk/src/target/gsm/src/gsmd/unsolicited.c
Log:
zero LAC and CI if +CREG is 0 / 2 (and not 1). (Closes: #454)
Modified: trunk/src/target/gsm/src/gsmd/unsolicited.c
===================================================================
--- trunk/src/target/gsm/src/gsmd/unsolicited.c 2007-04-24 19:54:08 UTC (rev 1826)
+++ trunk/src/target/gsm/src/gsmd/unsolicited.c 2007-04-25 08:54:42 UTC (rev 1827)
@@ -160,7 +160,8 @@
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);
}
More information about the commitlog
mailing list