cards: all UICC should use sel_ctrl="0400" and SIM "0000"

Hence move this from the derived classes into the respective base
classes SimCardBase and UiccCardBase

Change-Id: Iad197c2b560c5ea05c54a122144361de5742aafd
This commit is contained in:
Harald Welte
2023-07-10 22:25:58 +02:00
parent 775ab01a2b
commit 659d7c11ca
2 changed files with 2 additions and 6 deletions

View File

@@ -86,6 +86,7 @@ class SimCardBase(CardBase):
def __init__(self, scc: LinkBase):
super(SimCardBase, self).__init__(scc)
self._scc.cla_byte = "A0"
self._scc.sel_ctrl = "0000"
def probe(self) -> bool:
df_gsm = DF_GSM()
@@ -98,6 +99,7 @@ class UiccCardBase(SimCardBase):
def __init__(self, scc: LinkBase):
super(UiccCardBase, self).__init__(scc)
self._scc.cla_byte = "00"
self._scc.sel_ctrl = "0004" # request an FCP
# See also: ETSI TS 102 221, Table 9.3
self._adm_chv_num = 0xA0

View File

@@ -893,7 +893,6 @@ class SysmoUSIMSJS1(UsimCard):
def __init__(self, ssc):
super(SysmoUSIMSJS1, self).__init__(ssc)
self._scc.sel_ctrl = "0004" # request an FCP
@classmethod
def autodetect(kls, scc):
@@ -1205,7 +1204,6 @@ class WavemobileSim(UsimCard):
def __init__(self, ssc):
super(WavemobileSim, self).__init__(ssc)
self._adm_chv_num = 0x0A
self._scc.sel_ctrl = "0004" # request an FCP
@classmethod
def autodetect(kls, scc):
@@ -1297,10 +1295,6 @@ class SysmoISIMSJA2(UsimCard, IsimCard):
name = 'sysmoISIM-SJA2'
def __init__(self, ssc):
super(SysmoISIMSJA2, self).__init__(ssc)
self._scc.sel_ctrl = "0004" # request an FCP
@classmethod
def autodetect(kls, scc):
try: