diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2011-12-08 20:16:43 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2011-12-08 20:16:43 +0100 |
commit | 607ce2a029793278746f3f4ec54233daa8dc99b1 (patch) | |
tree | 559eb189b0480fb4126771aeb12ab883fd860807 /pySim/cards.py | |
parent | 1a914439b85665571fc9cb61de39e3e68b456c1f (diff) |
Fix computation of SMSP from a SMSC number
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'pySim/cards.py')
-rw-r--r-- | pySim/cards.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pySim/cards.py b/pySim/cards.py index af83e78..cc7be17 100644 --- a/pySim/cards.py +++ b/pySim/cards.py @@ -240,9 +240,7 @@ class FakeMagicSim(Card): self._e_iccid(p['iccid']) + # 10b ICCID self._e_imsi(p['imsi']) + # 9b IMSI_len + id_type(9) + IMSI p['ki'] + # 16b Ki - 24*'f' + 'fd' + 24*'f' + # 25b (unknown ...) - rpad(p['smsp'], 20) + # 10b SMSP (padded with ff if needed) - 10*'f' # 5b (unknown ...) + rpad(p['smsp'], 80) # 40b SMSP (padded with ff if needed) ) self._scc.update_record('000c', 1, entry) |