From 5fee08036be75fd3393940d6d914627c2d567722 Mon Sep 17 00:00:00 2001 From: erin_yueh Date: Sat, 26 Jan 2008 18:40:25 +0000 Subject: gsmd: query network registration 2nd try (Erin Yueh) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3965 99fdad57-331a-0410-800a-d7fa5415bdb3 --- include/gsmd/usock.h | 2 +- src/gsmd/usock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h index cfff571..21ab54e 100644 --- a/include/gsmd/usock.h +++ b/include/gsmd/usock.h @@ -162,7 +162,7 @@ enum gsmd_msg_network { GSMD_NETWORK_PREF_DEL = 12, GSMD_NETWORK_PREF_ADD = 13, GSMD_NETWORK_PREF_SPACE = 14, - GSMD_NETWORK_QUERY_REG = 15, + GSMD_NETWORK_QUERY_REG = 15, }; enum gsmd_msg_sms { diff --git a/src/gsmd/usock.c b/src/gsmd/usock.c index b6f42dd..0faef65 100644 --- a/src/gsmd/usock.c +++ b/src/gsmd/usock.c @@ -674,7 +674,7 @@ static int network_query_reg_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp) if (strncmp(resp, "+CREG: ", 7)) return -EINVAL; - resp += 7; + er = extrsp_parse(gsmd_tallocs, resp); if(!er) return -ENOMEM; -- cgit v1.2.3