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/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/23662 ) Change subject: utils.py: Add missing dec_plmn function. ...................................................................... utils.py: Add missing dec_plmn function. This function is being used e.g. for ADF.USIM/EF.FPLMN entries. The EF_PLMNsel class also already uses a function by this name, we just haven't had any actual implementation around. Change-Id: Iacb45c90bb6491ebb89a477a85ef1f3129b38788 --- M pySim/utils.py 1 file changed, 6 insertions(+), 0 deletions(-) Approvals: laforge: Looks good to me, approved; Verified diff --git a/pySim/utils.py b/pySim/utils.py index 8b23929..6a093fa 100644 --- a/pySim/utils.py +++ b/pySim/utils.py @@ -137,6 +137,12 @@ mnc += "F" # pad to 3 digits if needed return (mcc[1] + mcc[0]) + (mnc[2] + mcc[2]) + (mnc[1] + mnc[0]) +def dec_plmn(threehexbytes:Hexstr) -> dict: + res = {'mcc': 0, 'mnc': 0 } + res['mcc'] = dec_mcc_from_plmn(threehexbytes) + res['mnc'] = dec_mnc_from_plmn(threehexbytes) + return res + def dec_spn(ef): byte1 = int(ef[0:2]) hplmn_disp = (byte1&0x01 == 0x01) -- To view, visit https://gerrit.osmocom.org/c/pysim/+/23662 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: Iacb45c90bb6491ebb89a477a85ef1f3129b38788 Gerrit-Change-Number: 23662 Gerrit-PatchSet: 2 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210406/06af045a/attachment.htm>