mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-26 23:38:32 +03:00
sysmoISIM-SJA2: Disable Service 95, 99, 115 in EF.UST in case ISIM is present
As per TS 31.102 version 15.2.0 Release 15, section 4.2.8, EFUST (USIM Service Table), Service n°95, n°99 and n°115 shall not be declared available if an ISIM application is present on the UICC. Change-Id: Id9709746de99585ad31c4e9659323484fda87b14
This commit is contained in:
committed by
herlesupreeth
parent
05b2807168
commit
44e046240e
@@ -1272,6 +1272,7 @@ class SysmoISIMSJA2(UsimCard, IsimCard):
|
|||||||
|
|
||||||
# After successfully programming EF.ePDGId and EF.ePDGSelection,
|
# After successfully programming EF.ePDGId and EF.ePDGSelection,
|
||||||
# Set service 106 and 107 as available in EF.UST
|
# Set service 106 and 107 as available in EF.UST
|
||||||
|
# Disable service 95, 99, 115 if ISIM application is present
|
||||||
if self.file_exists(EF_USIM_ADF_map['UST']):
|
if self.file_exists(EF_USIM_ADF_map['UST']):
|
||||||
if p.get('epdgSelection') and p.get('epdgid'):
|
if p.get('epdgSelection') and p.get('epdgid'):
|
||||||
sw = self.update_ust(106, 1)
|
sw = self.update_ust(106, 1)
|
||||||
@@ -1281,6 +1282,16 @@ class SysmoISIMSJA2(UsimCard, IsimCard):
|
|||||||
if sw != '9000':
|
if sw != '9000':
|
||||||
print("Programming UST failed with code %s"%sw)
|
print("Programming UST failed with code %s"%sw)
|
||||||
|
|
||||||
|
sw = self.update_ust(95, 0)
|
||||||
|
if sw != '9000':
|
||||||
|
print("Programming UST failed with code %s"%sw)
|
||||||
|
sw = self.update_ust(99, 0)
|
||||||
|
if sw != '9000':
|
||||||
|
print("Programming UST failed with code %s"%sw)
|
||||||
|
sw = self.update_ust(115, 0)
|
||||||
|
if sw != '9000':
|
||||||
|
print("Programming UST failed with code %s"%sw)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user