<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21006">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">GPRS_Components: ensure cyclic RA in f_init_gprs_ms()<br><br>Change-Id: I9896bb6bf1ceb592bae22139bf48c6aa7c0265bd<br>---<br>M pcu/GPRS_Components.ttcn<br>1 file changed, 10 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/06/21006/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pcu/GPRS_Components.ttcn b/pcu/GPRS_Components.ttcn</span><br><span>index f48eae1..d6abf6d 100644</span><br><span>--- a/pcu/GPRS_Components.ttcn</span><br><span>+++ b/pcu/GPRS_Components.ttcn</span><br><span>@@ -169,7 +169,7 @@</span><br><span>        var uint4_t g_bs_cv_max := 4;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-/* Generate a list of GprsMS (unique IMSI/TLLI) of the given size */</span><br><span style="color: hsl(120, 100%, 40%);">+/* Generate a list of GprsMS (unique IMSI/TLLI, cyclic RA) of the given size */</span><br><span> function f_init_gprs_ms(integer num_ms := 1, template (value) GprsMS t_ms := t_GprsMS_def)</span><br><span> runs on MS_BTS_IFACE_CT {</span><br><span>       for (var integer i := 0; i < num_ms; i := i + 1 ) {</span><br><span>@@ -179,6 +179,15 @@</span><br><span>                ms.imsi := f_gen_imsi(i + 1);</span><br><span>                ms.tlli := int2oct(i + 1, 4);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+             /* Ensure different RA for siblings */</span><br><span style="color: hsl(120, 100%, 40%);">+                if (ms.ra == bit2int(chan_req_def)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                 /* 01111 { 0xx | x0x | xx0 } */</span><br><span style="color: hsl(120, 100%, 40%);">+                       f_ms_use_ra(ms, ms.ra + (i mod 7));</span><br><span style="color: hsl(120, 100%, 40%);">+           } else if (ms.ra == bit2int(chan_req_sb)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                   /* 01110xxx */</span><br><span style="color: hsl(120, 100%, 40%);">+                        f_ms_use_ra(ms, ms.ra + (i mod 8));</span><br><span style="color: hsl(120, 100%, 40%);">+           }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>          /* Append to the global list */</span><br><span>              g_ms := g_ms & { ms };</span><br><span>   }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21006">change 21006</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21006"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I9896bb6bf1ceb592bae22139bf48c6aa7c0265bd </div>
<div style="display:none"> Gerrit-Change-Number: 21006 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>