Farhad H. P. Shirvan has uploaded this change for review.

View Change

Fixed `mnc` encoding

According to 3GPP TS 24.008 section 10.5.5.36 PLMN identity of the CN operator

Change-Id: I400435abfa8b67da886fc39c801e1abba39725bf
---
M pySim/utils.py
1 file changed, 12 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/35/33835/1
diff --git a/pySim/utils.py b/pySim/utils.py
index c25560c..735468e 100644
--- a/pySim/utils.py
+++ b/pySim/utils.py
@@ -413,7 +413,7 @@
if len(mnc) == 0:
mnc = "FFF"
elif len(mnc) == 1:
- mnc = "F0" + mnc
+ mnc = "0" + mnc + "F"
elif len(mnc) == 2:
mnc += "F"


To view, visit change 33835. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I400435abfa8b67da886fc39c801e1abba39725bf
Gerrit-Change-Number: 33835
Gerrit-PatchSet: 1
Gerrit-Owner: Farhad H. P. Shirvan <farhad.21.7@gmail.com>
Gerrit-MessageType: newchange