mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 02:48:34 +03:00
ts_51_011, utils: fix Access Technology Identifier coding
When the Access Technology Identifier encoder sets the bits for E-UTRAN it does not respect that bit "100" is also a valid bit combination that encodes E-UTRAN WB-S1 and E-UTRAN NB-S1. Lets encode this bit combination if the user is just specifying "E-UTRAN" without further spefication of WB or NB. The decoder only looks at bit 14 and decodes "1xx" always to "E-UTRAN". This is not specific enough. Lets make sure that the decoder is complementary to the encoder. Change-Id: Ibfe8883a05f9ad6988d8e212cb9a598229954296 Related: OS#4963
This commit is contained in:
@@ -707,6 +707,8 @@ class EF_xPLMNwAcT(TransRecEF):
|
||||
if 'cdma2000 1xRTT' in in_list:
|
||||
u16 |= 0x0010
|
||||
# E-UTRAN
|
||||
if 'E-UTRAN' in in_list:
|
||||
u16 |= 0x4000
|
||||
if 'E-UTRAN WB-S1' in in_list:
|
||||
u16 |= 0x6000
|
||||
if 'E-UTRAN NB-S1' in in_list:
|
||||
|
||||
Reference in New Issue
Block a user