mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-20 12:28:33 +03:00
Move parsing of HPLMNAcT to generic Card class
Change-Id: I46c863c118dcbef89455c34289ed25e5a342f35b
This commit is contained in:
@@ -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