summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-02-13 06:59:22 +0000
committererin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-02-13 06:59:22 +0000
commit1c587409828af6c310759c4574f3cb73b33f88c0 (patch)
tree4e475e1479047f53712d7055757b53c6655ea442
parentbf667e7e9c45b0b0c3787c1023c3b0f6de284cd8 (diff)
gsmd: remove dead imsi code and fix bug (Paulius Zaleckas)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4061 99fdad57-331a-0410-800a-d7fa5415bdb3
-rw-r--r--src/gsmd/usock.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gsmd/usock.c b/src/gsmd/usock.c
index c9f549d..426fa68 100644
--- a/src/gsmd/usock.c
+++ b/src/gsmd/usock.c
@@ -613,14 +613,6 @@ static int phone_powerdown_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp)
cmd->id, sizeof(ret), &ret);
}
-static int get_imsi_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp)
-{
- DEBUGP("resp: %s\n", resp);
-
- return gsmd_ucmd_submit(ctx, GSMD_MSG_PHONE, GSMD_PHONE_GET_IMSI,
- cmd->id, strlen(resp) + 1, resp);
-}
-
static int usock_rcv_phone(struct gsmd_user *gu, struct gsmd_msg_hdr *gph,
int len)
{
@@ -639,7 +631,7 @@ static int usock_rcv_phone(struct gsmd_user *gu, struct gsmd_msg_hdr *gph,
break;
case GSMD_PHONE_GET_IMSI:
return gsmd_ucmd_submit(gu, GSMD_MSG_PHONE, GSMD_PHONE_GET_IMSI,
- 0, strlen(gu->gsmd->imsi), gu->gsmd->imsi);
+ 0, strlen(gu->gsmd->imsi) + 1, gu->gsmd->imsi);
break;
default:
personal git repositories of Harald Welte. Your mileage may vary