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.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21002 ) Change subject: GPRS_Components: allow arbitrary number of GprsMS instances ...................................................................... GPRS_Components: allow arbitrary number of GprsMS instances Change-Id: Ia118d58fafa50547f109c68829aa869785e0dc9c --- M pcu/GPRS_Components.ttcn 1 file changed, 9 insertions(+), 5 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/02/21002/1 diff --git a/pcu/GPRS_Components.ttcn b/pcu/GPRS_Components.ttcn index 3778b2f..c860af5 100644 --- a/pcu/GPRS_Components.ttcn +++ b/pcu/GPRS_Components.ttcn @@ -162,17 +162,21 @@ /* Connection to the BTS component (one for now) */ port RAW_PCU_MSG_PT BTS; - /* Support only 8 ms for now */ - var GprsMS g_ms[8]; + /* Mobile station(s) involved in a testing scenario */ + var GprsMSArray g_ms := { }; /* Value at which Countdown Procedure starts. Announced by network (GPRS Cell Options as per TS 04.60 Chapter 12.24) */ var uint4_t g_bs_cv_max := 4; } -function f_init_gprs_ms(integer num_ms := 1, template (value) GprsMS ms_params := t_GprsMS_def) runs on MS_BTS_IFACE_CT -{ +/* Generate a list of GprsMS 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 ) { - g_ms[i] := valueof(ms_params); + var GprsMS ms := valueof(t_ms); + + /* Append to the global list */ + g_ms := g_ms & { ms }; } } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21002 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: Ia118d58fafa50547f109c68829aa869785e0dc9c Gerrit-Change-Number: 21002 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/bbf9fec6/attachment.htm>