herlesupreeth has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/21867 )
Change subject: sysmoISIM-SJA2: Fill unused bytes of Home ePDGId with 'f' ...................................................................... sysmoISIM-SJA2: Fill unused bytes of Home ePDGId with 'f' Change-Id: Ia0464f230afcb0f37465d3ed0dfd8f417b53b0c3 --- M pySim/cards.py 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/67/21867/1 diff --git a/pySim/cards.py b/pySim/cards.py index 9236e4e..60a0f38 100644 --- a/pySim/cards.py +++ b/pySim/cards.py @@ -274,7 +274,8 @@ return (None, sw) def update_epdgid(self, epdgid): - epdgid_tlv = enc_addr_tlv(epdgid) + size = self._scc.binary_size(EF_USIM_ADF_map['ePDGId']) * 2 + epdgid_tlv = rpad(enc_addr_tlv(epdgid), size) data, sw = self._scc.update_binary( EF_USIM_ADF_map['ePDGId'], epdgid_tlv) return sw -- To view, visit https://gerrit.osmocom.org/c/pysim/+/21867 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: Ia0464f230afcb0f37465d3ed0dfd8f417b53b0c3 Gerrit-Change-Number: 21867 Gerrit-PatchSet: 1 Gerrit-Owner: herlesupreeth <herlesupre...@gmail.com> Gerrit-MessageType: newchange