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:
farhadh 2023-07-19 15:43:13 +02:00 committed by laforge
parent 92b9356ed2
commit fec721fcb1
1 changed files with 1 additions and 1 deletions

View File

@ -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"