summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-01-26 18:40:25 +0000
committererin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-01-26 18:40:25 +0000
commit5fee08036be75fd3393940d6d914627c2d567722 (patch)
tree73560c45891ea1293d4160b6893f972de7e76cac
parentc0bd00541a3edba795361b504c896a388376d898 (diff)
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
-rw-r--r--include/gsmd/usock.h2
-rw-r--r--src/gsmd/usock.c2
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;
personal git repositories of Harald Welte. Your mileage may vary