[MERGED] osmo-ttcn3-hacks[master]: BTS_Tests: Fix SI L2 pseudo-length and rest octets

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Mar 12 14:30:09 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: BTS_Tests: Fix SI L2 pseudo-length and rest octets
......................................................................


BTS_Tests: Fix SI L2 pseudo-length and rest octets

Now the cell is actually recognized by phones

Change-Id: I76b5b178b6884241cfa9b86550aac4865419ef76
---
M bts/BTS_Tests.ttcn
1 file changed, 7 insertions(+), 7 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index e98a8ca..f4a5a48 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -149,8 +149,8 @@
 }
 
 /* Default SYSTEM INFORMATION 3 */
-template (value) SystemInformation ts_SI3_default := {
-	header := t_RrHeader(SYSTEM_INFORMATION_TYPE_3, 0),
+template SystemInformation ts_SI3_default := {
+	header := t_RrHeader(SYSTEM_INFORMATION_TYPE_3, 18),
 	payload := {
 		si3 := {
 			cell_id := 23,
@@ -174,13 +174,13 @@
 			},
 			cell_sel_par := ts_CellSelPar_default,
 			rach_control := ts_RachCtrl_default,
-			rest_octets := ''O
+			rest_octets := '2B2B2B2B'O
 		}
 	}
 }
 
-template (value) SystemInformation ts_SI2_default := {
-	header := t_RrHeader(SYSTEM_INFORMATION_TYPE_2, 0),
+template SystemInformation ts_SI2_default := {
+	header := t_RrHeader(SYSTEM_INFORMATION_TYPE_2, 22),
 	payload := {
 		si2 := {
 			bcch_freq_list := '00000000000000000000000000000000'O,
@@ -190,8 +190,8 @@
 	}
 }
 
-template (value) SystemInformation ts_SI4_default := {
-	header := t_RrHeader(SYSTEM_INFORMATION_TYPE_4, 0),
+template SystemInformation ts_SI4_default := {
+	header := t_RrHeader(SYSTEM_INFORMATION_TYPE_4, 12), /* no CBCH / restoct */
 	payload := {
 		si4 := {
 			lai := ts_LAI_default,

-- 
To view, visit https://gerrit.osmocom.org/7234
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I76b5b178b6884241cfa9b86550aac4865419ef76
Gerrit-PatchSet: 2
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list