summaryrefslogtreecommitdiff
path: root/src/gsmd/usock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gsmd/usock.c')
-rw-r--r--src/gsmd/usock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gsmd/usock.c b/src/gsmd/usock.c
index 18c6662..0164c1c 100644
--- a/src/gsmd/usock.c
+++ b/src/gsmd/usock.c
@@ -638,7 +638,8 @@ static int usock_rcv_phone(struct gsmd_user *gu, struct gsmd_msg_hdr *gph,
gu->gsmd->dev_state.on = 0;
break;
case GSMD_PHONE_GET_IMSI:
- cmd = atcmd_fill("AT+CIMI", 7 + 1, &get_imsi_cb, gu, 0, NULL);
+ return gsmd_ucmd_submit(gu, GSMD_MSG_PHONE, GSMD_PHONE_GET_IMSI,
+ 0, strlen(gu->gsmd->imsi), gu->gsmd->imsi);
break;
default:
personal git repositories of Harald Welte. Your mileage may vary