aboutsummaryrefslogtreecommitdiffstats
path: root/utils/osmo-sim-test.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-03-21 13:40:28 +0100
committerHarald Welte <laforge@osmocom.org>2020-03-21 16:31:17 +0100
commit58d173ade11d9d5fa7865edc4277450ff5794f52 (patch)
tree45a1cd8cde4c4e81a03458266992c650f90fdfec /utils/osmo-sim-test.c
parent429adecfd8e817b1d3d4eb9590ee0e351696bad9 (diff)
osmo-sim-test: Also [attempt to] dump DF.GSM on USIM cards
an USIM application can very well exist on a UICC without supporting classic DF.GSM access. However, most commonly, both are found on cards. Change-Id: I6180a3f81a7d3006e8ece4302c2433db2588bfaa
Diffstat (limited to 'utils/osmo-sim-test.c')
-rw-r--r--utils/osmo-sim-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/osmo-sim-test.c b/utils/osmo-sim-test.c
index e71d0ef1..6cf36a6a 100644
--- a/utils/osmo-sim-test.c
+++ b/utils/osmo-sim-test.c
@@ -341,7 +341,7 @@ static int osim_uicc_scan_apps(struct osim_chan_hdl *st)
extern struct osim_card_profile *osim_cprof_sim(void *ctx);
-extern struct osim_card_profile *osim_cprof_uicc(void *ctx);
+extern struct osim_card_profile *osim_cprof_uicc(void *ctx, bool have_df_gsm);
static int dump_file(struct osim_chan_hdl *chan, const char *short_name, uint16_t fid)
{
@@ -652,7 +652,7 @@ int main(int argc, char **argv)
rc = osim_uicc_scan_apps(chan);
if (rc >= 0) {
- chan->card->prof = osim_cprof_uicc(chan->card);
+ chan->card->prof = osim_cprof_uicc(chan->card, true);
chan->cwd = chan->card->prof->mf;
} else if (rc == -0x6e00) {
/* CLA not supported: must be classic SIM, not USIM */