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/+/17660 ) Change subject: Move parsing of PLMNsel to generic Card class ...................................................................... Move parsing of PLMNsel to generic Card class Change-Id: I0a683c479cd41ccc6a93c23434c73793cb5dc186 --- M pySim-read.py M pySim/cards.py 2 files changed, 8 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/60/17660/1 diff --git a/pySim-read.py b/pySim-read.py index cd566e0..d8165d1 100755 --- a/pySim-read.py +++ b/pySim-read.py @@ -153,7 +153,7 @@ # EF.PLMNsel try: - (res, sw) = scc.read_binary(EF['PLMNsel']) + (res, sw) = card.read_plmnsel() if sw == '9000': print("PLMNsel: %s" % (res)) else: diff --git a/pySim/cards.py b/pySim/cards.py index e858270..96c0a76 100644 --- a/pySim/cards.py +++ b/pySim/cards.py @@ -108,6 +108,13 @@ data, sw = self._scc.update_binary(EF['PLMNwAcT'], content + 'ffffff0000' * (size // 5 - 1)) return sw + def read_plmnsel(self): + (res, sw) = self._scc.read_binary(EF['PLMNsel']) + if sw == '9000': + return (res, sw) + else: + return (None, sw) + def update_plmnsel(self, mcc, mnc): data = self._scc.read_binary(EF['PLMNsel'], length=None, offset=0) size = len(data[0]) // 2 -- To view, visit https://gerrit.osmocom.org/c/pysim/+/17660 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I0a683c479cd41ccc6a93c23434c73793cb5dc186 Gerrit-Change-Number: 17660 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/20200330/5dfefc4d/attachment.htm>