[MERGED] pysim[master]: Support writing SMSP for sysmoUSIM-SJS1

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Sep 1 07:57:01 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: Support writing SMSP for sysmoUSIM-SJS1
......................................................................


Support writing SMSP for sysmoUSIM-SJS1

Closes: OS#1989
Change-Id: I6cbf69be3d410c18a509b98a63cb69bab74a528a
---
M pySim/cards.py
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved; Verified



diff --git a/pySim/cards.py b/pySim/cards.py
index 925c5e6..9f678ab 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -459,6 +459,9 @@
 		# write EF.IMSI
 		data, sw = self._scc.update_binary('6f07', enc_imsi(p['imsi']))
 
+		# EF.SMSP
+		r = self._scc.select_file(['3f00', '7f10'])
+		data, sw = self._scc.update_record('6f42', 1, lpad(p['smsp'], 104), force_len=True)
 
 
 	def erase(self):

-- 
To view, visit https://gerrit.osmocom.org/3751
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6cbf69be3d410c18a509b98a63cb69bab74a528a
Gerrit-PatchSet: 2
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list