changeset 141:0b8a936f4542

fc-uicc-tool: need to select MF before DF_TELECOM
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 04 Feb 2021 05:04:12 +0000
parents 062141ce5755
children 74c5dc7408e9
files uicc/pbcommon.c uicc/telsum.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/uicc/pbcommon.c	Thu Feb 04 05:01:30 2021 +0000
+++ b/uicc/pbcommon.c	Thu Feb 04 05:04:12 2021 +0000
@@ -44,6 +44,9 @@
 			reqname);
 		return(-1);
 	}
+	rc = select_op(FILEID_MF);
+	if (rc < 0)
+		return(rc);
 	rc = select_op(DF_TELECOM);
 	if (rc < 0)
 		return(rc);
--- a/uicc/telsum.c	Thu Feb 04 05:01:30 2021 +0000
+++ b/uicc/telsum.c	Thu Feb 04 05:04:12 2021 +0000
@@ -65,6 +65,9 @@
 {
 	int rc;
 
+	rc = select_op(FILEID_MF);
+	if (rc < 0)
+		return(rc);
 	rc = select_op(DF_TELECOM);
 	if (rc < 0)
 		return(rc);