mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
Fixed mnc encoding
According to 3GPP TS 24.008 section 10.5.5.36 PLMN identity of the CN operator Change-Id: I400435abfa8b67da886fc39c801e1abba39725bf
This commit is contained in:
@@ -413,7 +413,7 @@ def enc_plmn(mcc: Hexstr, mnc: Hexstr) -> Hexstr:
|
||||
if len(mnc) == 0:
|
||||
mnc = "FFF"
|
||||
elif len(mnc) == 1:
|
||||
mnc = "F0" + mnc
|
||||
mnc = "0" + mnc + "F"
|
||||
elif len(mnc) == 2:
|
||||
mnc += "F"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user