diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-01-08 15:17:18 +0100 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-01-11 14:43:16 +0000 |
commit | 6d9309b8a4a31417781124dbb11627ea8824c7e6 (patch) | |
tree | 2904cc81c08e57ea5275cde8db0026336111d0d1 | |
parent | 7159dbbce61029f42307d13a3e61e2dc576f0b30 (diff) |
Fix f_enc_mcc_mnc() to return a properly encoded MCC/MNC triple octet.
With help from Daniel Willmann.
Change-Id: I99a5317e425d15acd463aa94c683676cacd54e0b
Related: OS#2754
-rw-r--r-- | library/BSSMAP_Templates.ttcn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/BSSMAP_Templates.ttcn b/library/BSSMAP_Templates.ttcn index cb6dde8c..f4522636 100644 --- a/library/BSSMAP_Templates.ttcn +++ b/library/BSSMAP_Templates.ttcn @@ -648,7 +648,7 @@ template BSSMAP_FIELD_CellIdentificationList ts_BSSMAP_CIL_noCell := { } private function f_enc_mcc_mnc(GsmMcc mcc, GsmMnc mnc) return OCT3 { - return hex2oct(mcc[1] & mcc[0] & mnc[0] & mnc[2] & mnc[1]); + return hex2oct(mcc[1] & mcc[0] & mnc[2] & mcc[2] & mnc[1] & mnc[0]); } template BSSMAP_FIELD_CellIdentification_CGI ts_BSSMAP_CI_CGI(GsmMcc mcc, GsmMnc mnc, GsmLac lac, GsmCellId ci) := { |