Change in osmo-ttcn3-hacks[master]: GPRS_Components: ensure cyclic RA in f_init_gprs_ms()

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
Sat Oct 31 21:20:12 UTC 2020


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


Change subject: GPRS_Components: ensure cyclic RA in f_init_gprs_ms()
......................................................................

GPRS_Components: ensure cyclic RA in f_init_gprs_ms()

Change-Id: I9896bb6bf1ceb592bae22139bf48c6aa7c0265bd
---
M pcu/GPRS_Components.ttcn
1 file changed, 10 insertions(+), 1 deletion(-)



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

diff --git a/pcu/GPRS_Components.ttcn b/pcu/GPRS_Components.ttcn
index f48eae1..d6abf6d 100644
--- a/pcu/GPRS_Components.ttcn
+++ b/pcu/GPRS_Components.ttcn
@@ -169,7 +169,7 @@
 	var uint4_t g_bs_cv_max := 4;
 }
 
-/* Generate a list of GprsMS (unique IMSI/TLLI) of the given size */
+/* Generate a list of GprsMS (unique IMSI/TLLI, cyclic RA) of the given size */
 function f_init_gprs_ms(integer num_ms := 1, template (value) GprsMS t_ms := t_GprsMS_def)
 runs on MS_BTS_IFACE_CT {
 	for (var integer i := 0; i < num_ms; i := i + 1 ) {
@@ -179,6 +179,15 @@
 		ms.imsi := f_gen_imsi(i + 1);
 		ms.tlli := int2oct(i + 1, 4);
 
+		/* Ensure different RA for siblings */
+		if (ms.ra == bit2int(chan_req_def)) {
+			/* 01111 { 0xx | x0x | xx0 } */
+			f_ms_use_ra(ms, ms.ra + (i mod 7));
+		} else if (ms.ra == bit2int(chan_req_sb)) {
+			/* 01110xxx */
+			f_ms_use_ra(ms, ms.ra + (i mod 8));
+		}
+
 		/* Append to the global list */
 		g_ms := g_ms & { ms };
 	}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21006
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: I9896bb6bf1ceb592bae22139bf48c6aa7c0265bd
Gerrit-Change-Number: 21006
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/20201031/9048c91c/attachment.htm>


More information about the gerrit-log mailing list