mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-07 12:46:18 +03:00
Move parsing of HPLMNAcT to generic Card class
Change-Id: I46c863c118dcbef89455c34289ed25e5a342f35b
This commit is contained in:
1 parent
1757b263bf
commit
a850a47981
2 files changed
+9
-2
No files matched your search
@@ -66,6 +66,13 @@ class Card(object):
|
||||
data, sw = self._scc.update_binary(EF['ACC'], lpad(acc, 4))
|
||||
return sw
|
||||
|
||||
def read_hplmn_act(self):
|
||||
(res, sw) = self._scc.read_binary(EF['HPLMNAcT'])
|
||||
if sw == '9000':
|
||||
return (format_xplmn_w_act(res), sw)
|
||||
else:
|
||||
return (None, sw)
|
||||
|
||||
def update_hplmn_act(self, mcc, mnc, access_tech='FFFF'):
|
||||
"""
|
||||
Update Home PLMN with access technology bit-field
|
||||
|
||||
Reference in new issue
Block a user