From 5b9472db7a034c1cc5edde4430e6c6d4f8cce296 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 24 Jan 2023 17:26:59 +0100 Subject: [PATCH] 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 --- pySim/ts_51_011.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py index bb49f13b..a3531018 100644 --- a/pySim/ts_51_011.py +++ b/pySim/ts_51_011.py @@ -714,8 +714,8 @@ class EF_VGCSS(TransparentEF): 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):