mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-23 13:58:33 +03:00
ts_102_221: Fix decoding the 'num_of_rec' field
It is a 8bit integer, not a 16bit integer. See TS 102 221 11.1.1.4.3 Change-Id: I3e258547dad21a248650cfbc02e0576268d3b3fd
This commit is contained in:
@@ -103,7 +103,7 @@ class FileDescriptor(BER_TLV_IE, tag=0x82):
|
|||||||
'structure'/Enum(BitsInteger(3), no_info_given=0, transparent=1, linear_fixed=2, cyclic=6))
|
'structure'/Enum(BitsInteger(3), no_info_given=0, transparent=1, linear_fixed=2, cyclic=6))
|
||||||
)
|
)
|
||||||
_construct = Struct('file_descriptor_byte'/FDB, Const(b'\x21'),
|
_construct = Struct('file_descriptor_byte'/FDB, Const(b'\x21'),
|
||||||
'record_len'/COptional(Int16ub), 'num_of_rec'/COptional(Int16ub))
|
'record_len'/COptional(Int16ub), 'num_of_rec'/COptional(Int8ub))
|
||||||
|
|
||||||
# ETSI TS 102 221 11.1.1.4.4
|
# ETSI TS 102 221 11.1.1.4.4
|
||||||
class FileIdentifier(BER_TLV_IE, tag=0x83):
|
class FileIdentifier(BER_TLV_IE, tag=0x83):
|
||||||
|
|||||||
Reference in New Issue
Block a user