summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorerin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-12-10 06:36:38 +0000
committererin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-12-10 06:36:38 +0000
commitccfdb913d1a78e349c1ceabcfa392c086c454178 (patch)
tree570bf7b768f423ababd196b7939904feb1ff7f1a /src/util
parent41c5469e5688149d38eb86d7b7d589c19a674fa1 (diff)
gsmd: Bug 1082 - PIN Status Missing (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3621 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src/util')
-rw-r--r--src/util/shell.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/shell.c b/src/util/shell.c
index 12914d8..34f7e12 100644
--- a/src/util/shell.c
+++ b/src/util/shell.c
@@ -356,6 +356,10 @@ static int phone_msghandler(struct lgsm_handle *lh, struct gsmd_msg_hdr *gmh)
payload = (char *)gmh + sizeof(*gmh);
printf("imsi <%s>\n", payload);
break;
+ case GSMD_PIN_GET_STATUS:
+ payload = (char *)gmh + sizeof(*gmh);
+ printf("%s\n", payload);
+ break;
case GSMD_PHONE_POWERUP:
if (*intresult)
printf("Modem power-up failed: %i\n", *intresult);
@@ -470,6 +474,7 @@ static int shell_help(void)
"\tsC\tSMS Set Service Centre (sC=number)\n"
"\tim\tGet imsi\n"
"\tcs\tGet Call status\n"
+ "\tgp\tGet PIN status\n"
"\tq\tQuit\n"
);
}
@@ -761,6 +766,10 @@ int shell_main(struct lgsm_handle *lgsmh, int sync)
printf("List current call status\n");
lgsm_voice_get_status(lgsmh);
pending_responses ++;
+ } else if ( !strncmp(buf, "gp", 2)) {
+ printf("Get PIN status\n");
+ lgsm_pin_status(lgsmh);
+ pending_responses ++;
} else {
printf("Unknown command `%s'\n", buf);
}
personal git repositories of Harald Welte. Your mileage may vary