# HG changeset patch # User Mychaela Falconia # Date 1613146751 0 # Node ID d368051576d0ce3634741d9a653aaca4589119d3 # Parent 78f93e3c9ebf89d182680368ac1185f6c6113879 fc-simtool & fc-uicc-tool: add explicit atr command diff -r 78f93e3c9ebf -r d368051576d0 simtool/dispatch.c --- a/simtool/dispatch.c Fri Feb 12 16:14:53 2021 +0000 +++ b/simtool/dispatch.c Fri Feb 12 16:19:11 2021 +0000 @@ -50,6 +50,7 @@ extern int display_sim_resp_in_hex(); extern int good_exit(); +extern int retrieve_atr(); static struct cmdtab { char *cmd; @@ -58,6 +59,7 @@ int (*func)(); } cmdtab[] = { {"a38", 1, 1, cmd_a38}, + {"atr", 0, 0, retrieve_atr}, {"change-chv1", 2, 2, cmd_change_chv}, {"change-chv2", 2, 2, cmd_change_chv}, {"change-pin1", 2, 2, cmd_change_chv}, diff -r 78f93e3c9ebf -r d368051576d0 uicc/dispatch.c --- a/uicc/dispatch.c Fri Feb 12 16:14:53 2021 +0000 +++ b/uicc/dispatch.c Fri Feb 12 16:19:11 2021 +0000 @@ -24,6 +24,7 @@ extern int display_sim_resp_in_hex(); extern int good_exit(); +extern int retrieve_atr(); static struct cmdtab { char *cmd; @@ -31,6 +32,7 @@ int maxargs; int (*func)(); } cmdtab[] = { + {"atr", 0, 0, retrieve_atr}, {"dir", 0, 0, cmd_dir}, {"exec", 1, 1, cmd_exec}, {"exit", 0, 0, good_exit},