Move reading of ePDG Id to generic USIM class

Change-Id: I716acb994430db3d4e56fea072f8dc2cebeaba84
This commit is contained in:
herlesupreeth authored and laforge committed 2020-10-03 07:36:58 +00:00
1 parent 5d0a30c19c
commit f8232db327
5 files changed
+13 -9

No files matched your search

+7
View File
@@ -264,6 +264,13 @@ class UsimCard(Card):
data, sw = self._scc.update_binary(EF_USIM_ADF_map['EHPLMN'], ehplmn)
return sw
def read_epdgid(self):
(res, sw) = self._scc.read_binary(EF_USIM_ADF_map['ePDGId'])
if sw == '9000':
return (dec_epdgid(res), sw)
else:
return (None, sw)
def update_epdgid(self, epdgid):
epdgid_tlv = enc_epdgid(epdgid)
data, sw = self._scc.update_binary(