pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40113?usp=email )
Change subject: Fix MNC decoding in f_dec_mcc_mnc() ......................................................................
Fix MNC decoding in f_dec_mcc_mnc()
This API is so far only used in MSC_Tests.ttcn f_sgs_perform_lu(), but will be used in more testsuites in follow-up commits.
Change-Id: I9db37d0dc9abbbefd57af4f0e2b91bf8a918d4e9 --- M library/GSM_Types.ttcn 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: laforge: Looks good to me, but someone else must approve pespin: Looks good to me, approved fixeria: Looks good to me, but someone else must approve Jenkins Builder: Verified
diff --git a/library/GSM_Types.ttcn b/library/GSM_Types.ttcn index 64581e5..6d3e170 100644 --- a/library/GSM_Types.ttcn +++ b/library/GSM_Types.ttcn @@ -504,7 +504,7 @@ var hexstring hs := oct2hex(mcc_mnc); mcc := hs[1] & hs[0] & hs[3]; mnc := hs[5] & hs[4]; - if (hs[2] == 'F'H) { + if (hs[2] != 'F'H) { mnc := mnc & hs[2]; } }