laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/31064 )
Change subject: ts_51_011: Fix bit-order in EF.VGCSS and EF.VBSS ......................................................................
ts_51_011: Fix bit-order in EF.VGCSS and EF.VBSS
Those files contain a bit-mask of active group IDs stored at the respective positions in EV.VGCS and EF.VBS. However, the bit-order of each byte is reversed.
Change-Id: I77674c23823aae71c9504b1a85cd75266edadc6f Related: OS#5784 --- M pySim/ts_51_011.py 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/64/31064/1
diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py index d16ea72..c4dbf77 100644 --- a/pySim/ts_51_011.py +++ b/pySim/ts_51_011.py @@ -714,8 +714,8 @@ def __init__(self, fid='6fb2', sfid=None, name='EF.VGCSS', size=(7, 7), desc='Voice Group Call Service Status', **kwargs): super().__init__(fid, sfid=sfid, name=name, desc=desc, size=size, **kwargs) - self._construct = BitStruct( - 'flags'/Bit[50], Padding(6, pattern=b'\xff')) + self._construct = BitsSwapped(BitStruct( + 'flags'/Bit[50], Padding(6, pattern=b'\xff')))
# TS 51.011 Section 10.3.24 class EF_eMLPP(TransparentEF):