This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
herlesupreeth gerrit-no-reply at lists.osmocom.orgherlesupreeth has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/21850 )
Change subject: sysmoISIM-SJA2: Add support for programming EF.ePDGSelection (ePDG Selection Information)
......................................................................
sysmoISIM-SJA2: Add support for programming EF.ePDGSelection (ePDG Selection Information)
If the EF.ePDGSelection is present, it is populated with a single entry with PLMN 1 set
to Home PLMN of USIM, ePDG FQDN format set to Operator Identifier FQDN and ePDG Priority value
set to 1.
Change-Id: I92f3f813afa41ae497ebc0dc2ca73da810f82364
---
M pySim/cards.py
M pysim-testdata/sysmoISIM-SJA2.ok
2 files changed, 14 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/50/21850/1
diff --git a/pySim/cards.py b/pySim/cards.py
index 6243d4a..cc3dbdb 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -284,6 +284,12 @@
else:
return (None, sw)
+ def update_ePDGSelection(self, mcc, mnc):
+ (res, sw) = self._scc.read_binary(EF_USIM_ADF_map['ePDGSelection'], length=None, offset=0)
+ if sw == '9000':
+ (res, sw) = self._scc.update_binary(EF_USIM_ADF_map['ePDGSelection'], enc_ePDGSelection(res, mcc, mnc))
+ return sw
+
def read_ust(self):
(res, sw) = self._scc.read_binary(EF_USIM_ADF_map['UST'])
if sw == '9000':
@@ -1195,6 +1201,13 @@
if sw != '9000':
print("Programming ePDGId failed with code %s"%sw)
+ # update EF.ePDGSelection in ADF.USIM
+ if self.file_exists(EF_USIM_ADF_map['ePDGSelection']):
+ if p.get('mcc') and p.get('mnc'):
+ sw = self.update_ePDGSelection(p['mcc'], p['mnc'])
+ if sw != '9000':
+ print("Programming ePDGSelection failed with code %s"%sw)
+
return
diff --git a/pysim-testdata/sysmoISIM-SJA2.ok b/pysim-testdata/sysmoISIM-SJA2.ok
index b6836e7..93df6d5 100644
--- a/pysim-testdata/sysmoISIM-SJA2.ok
+++ b/pysim-testdata/sysmoISIM-SJA2.ok
@@ -166,7 +166,7 @@
Not available
ePDGSelection:
- ffffffffffff # unused
+ 00f110000100 # MCC: 001 MNC: 001 ePDG Priority: 0001 ePDG FQDN format: Operator Identifier FQDN
ffffffffffff # unused
ffffffffffff # unused
ffffffffffff # unused
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/21850
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I92f3f813afa41ae497ebc0dc2ca73da810f82364
Gerrit-Change-Number: 21850
Gerrit-PatchSet: 1
Gerrit-Owner: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201223/e6e9a17b/attachment.htm>