From 1c587409828af6c310759c4574f3cb73b33f88c0 Mon Sep 17 00:00:00 2001 From: erin_yueh Date: Wed, 13 Feb 2008 06:59:22 +0000 Subject: 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 --- src/gsmd/usock.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/gsmd') 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: -- cgit v1.2.3