diff simtool/inval_rehab.c @ 126:7faec607500f

rehab-{imsi,loci} commands implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 20 Feb 2021 19:37:52 +0000
parents e5d534fa5924
children
line wrap: on
line diff
--- a/simtool/inval_rehab.c	Sat Feb 20 19:21:40 2021 +0000
+++ b/simtool/inval_rehab.c	Sat Feb 20 19:37:52 2021 +0000
@@ -77,3 +77,29 @@
 		return(rc);
 	return current_ef_rehab();
 }
+
+cmd_rehab_imsi()
+{
+	int rc;
+
+	rc = select_op(DF_GSM);
+	if (rc < 0)
+		return(rc);
+	rc = select_op(EF_IMSI);
+	if (rc < 0)
+		return(rc);
+	return current_ef_rehab();
+}
+
+cmd_rehab_loci()
+{
+	int rc;
+
+	rc = select_op(DF_GSM);
+	if (rc < 0)
+		return(rc);
+	rc = select_op(EF_LOCI);
+	if (rc < 0)
+		return(rc);
+	return current_ef_rehab();
+}