aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-shell.py
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-10-20 10:14:18 +0200
committerHarald Welte <laforge@osmocom.org>2021-10-21 10:05:47 +0200
commit2a33ad2c49ea03660f0a21fcaabf791214aa4a4e (patch)
tree110a5197001be85cc9f427a60016d99b02ac9d9e /pySim-shell.py
parent76667644ea5927edc8831111c68ae1fd7fd24a59 (diff)
pySim-shell: Add support for GSM-R SIM Cards with DF.EIRENE
GSM-R SIM cards have an additional directory (DF.EIRENE) with a number of files. This is all specified in the following document: UIC Reference P38 T 9001 5.0 "FFFIS for GSM-R SIM Cards" Change-Id: I4034d09292a08d277d4abcbed9a0ec2808daaacb
Diffstat (limited to 'pySim-shell.py')
-rwxr-xr-xpySim-shell.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pySim-shell.py b/pySim-shell.py
index ca47fb3..4cf32a4 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -49,6 +49,7 @@ from pySim.ts_51_011 import CardProfileSIM, DF_TELECOM, DF_GSM
from pySim.ts_102_221 import CardProfileUICC
from pySim.ts_31_102 import CardApplicationUSIM
from pySim.ts_31_103 import CardApplicationISIM
+from pySim.gsm_r import DF_EIRENE
# we need to import this module so that the SysmocomSJA2 sub-class of
# CardModel is created, which will add the ATR-based matching and
@@ -90,6 +91,7 @@ def init_card(sl):
# FIXME: do this dynamically
rs.mf.add_file(DF_TELECOM())
rs.mf.add_file(DF_GSM())
+ rs.mf.add_file(DF_EIRENE())
CardModel.apply_matching_models(scc, rs)