Change in osmo-ttcn3-hacks[master]: BSC_Tests/hopping: also verify handling of ARFCN 0 in MA

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Sun Sep 6 08:53:30 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19996 )


Change subject: BSC_Tests/hopping: also verify handling of ARFCN 0 in MA
......................................................................

BSC_Tests/hopping: also verify handling of ARFCN 0 in MA

According to 3GPP TS 44.018, table 10.5.2.21.1 "Mobile Allocation
information element", in the cell allocation frequency list the
absolute RF channel numbers are placed in increasing order of ARFCN,
except that ARFCN 0, if included in the set, is put in the last
position in the list.

Let's verify that the IUT handles this corner case correctly.

Change-Id: I3afadfde03f6ea766c0756a181ef129e4b05c383
Related: SYS#4868, OS#4545
---
M bsc/BSC_Tests.ttcn
1 file changed, 16 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/96/19996/1

diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index f16fab4..08baaf2 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -6837,6 +6837,11 @@
 			fhp[tn].ma := fhp[tn].ma & { i * step };
 		}
 
+		/* NOTE: ARFCN 0 goes to the end of the MA list */
+		if (step mod 2 > 0) { /* pseudo-random decision */
+			fhp[tn].ma := fhp[tn].ma & { 0 };
+		}
+
 		fhp[tn].enabled := true;
 	}
 
@@ -6905,7 +6910,7 @@
 	}
 
 	/* Finally, compose the Mobile Allocation bit-mask */
-	for (var integer i := 0; i < lengthof(full_mask); i := i + 1) {
+	for (var integer i := 1; i < lengthof(full_mask); i := i + 1) {
 		if (full_mask[i] != '1'B)
 			{ continue; }
 
@@ -6917,6 +6922,16 @@
 		}
 	}
 
+	/* ARFCN 0 (if present) is put in the last position in the list */
+	if (full_mask[0] == '1'B) {
+		/* FIXME: ma_mask := ma_mask & slot_mask[0]; // triggers a bug in TITAN */
+		if (slot_mask[0] == '1'B) {
+			ma_mask := ma_mask & '1'B;
+		} else {
+			ma_mask := ma_mask & '0'B;
+		}
+	}
+
 	/* Ensure that ma_mask is octet-aligned */
 	var integer ma_mask_len := (lengthof(ma_mask) + 8 - 1) / 8;
 	ma_mask := f_pad_bit(ma_mask, ma_mask_len * 8, '0'B);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19996
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I3afadfde03f6ea766c0756a181ef129e4b05c383
Gerrit-Change-Number: 19996
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200906/8c493371/attachment.htm>


More information about the gerrit-log mailing list