cards: All derived of SimCardBase use CLA=A0; all UiccCardBase use CLA=00
Change-Id: Id61b549f68410631529349ee62b08a102f609405
diff --git a/pySim/cards.py b/pySim/cards.py
index 3acc7aa..d720413 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -83,6 +83,10 @@
any higher-layer processing."""
name = 'SIM'
+ def __init__(self, scc: LinkBase):
+ super(SimCardBase, self).__init__(scc)
+ self._scc.cla_byte = "A0"
+
def probe(self) -> bool:
df_gsm = DF_GSM()
return self.file_exists(df_gsm.fid)
@@ -93,7 +97,8 @@
def __init__(self, ssc: LinkBase):
super(UiccCardBase, self).__init__(ssc)
- # See also: ETSI TS 102 221, Table 9.3
+ self._scc.cla_byte = "00"
+ # See also: ETSI TS 102 221, Table 9.3
self._adm_chv_num = 0xA0
def probe(self) -> bool: