<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19996">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BSC_Tests/hopping: also verify handling of ARFCN 0 in MA<br><br>According to 3GPP TS 44.018, table 10.5.2.21.1 "Mobile Allocation<br>information element", in the cell allocation frequency list the<br>absolute RF channel numbers are placed in increasing order of ARFCN,<br>except that ARFCN 0, if included in the set, is put in the last<br>position in the list.<br><br>Let's verify that the IUT handles this corner case correctly.<br><br>Change-Id: I3afadfde03f6ea766c0756a181ef129e4b05c383<br>Related: SYS#4868, OS#4545<br>---<br>M bsc/BSC_Tests.ttcn<br>1 file changed, 16 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/96/19996/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn</span><br><span>index f16fab4..08baaf2 100644</span><br><span>--- a/bsc/BSC_Tests.ttcn</span><br><span>+++ b/bsc/BSC_Tests.ttcn</span><br><span>@@ -6837,6 +6837,11 @@</span><br><span>                         fhp[tn].ma := fhp[tn].ma & { i * step };</span><br><span>                 }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+         /* NOTE: ARFCN 0 goes to the end of the MA list */</span><br><span style="color: hsl(120, 100%, 40%);">+            if (step mod 2 > 0) { /* pseudo-random decision */</span><br><span style="color: hsl(120, 100%, 40%);">+                 fhp[tn].ma := fhp[tn].ma & { 0 };</span><br><span style="color: hsl(120, 100%, 40%);">+         }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>          fhp[tn].enabled := true;</span><br><span>     }</span><br><span> </span><br><span>@@ -6905,7 +6910,7 @@</span><br><span>        }</span><br><span> </span><br><span>        /* Finally, compose the Mobile Allocation bit-mask */</span><br><span style="color: hsl(0, 100%, 40%);">-   for (var integer i := 0; i < lengthof(full_mask); i := i + 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+    for (var integer i := 1; i < lengthof(full_mask); i := i + 1) {</span><br><span>           if (full_mask[i] != '1'B)</span><br><span>                    { continue; }</span><br><span> </span><br><span>@@ -6917,6 +6922,16 @@</span><br><span>           }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* ARFCN 0 (if present) is put in the last position in the list */</span><br><span style="color: hsl(120, 100%, 40%);">+    if (full_mask[0] == '1'B) {</span><br><span style="color: hsl(120, 100%, 40%);">+           /* FIXME: ma_mask := ma_mask & slot_mask[0]; // triggers a bug in TITAN */</span><br><span style="color: hsl(120, 100%, 40%);">+                if (slot_mask[0] == '1'B) {</span><br><span style="color: hsl(120, 100%, 40%);">+                   ma_mask := ma_mask & '1'B;</span><br><span style="color: hsl(120, 100%, 40%);">+                } else {</span><br><span style="color: hsl(120, 100%, 40%);">+                      ma_mask := ma_mask & '0'B;</span><br><span style="color: hsl(120, 100%, 40%);">+                }</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  /* Ensure that ma_mask is octet-aligned */</span><br><span>   var integer ma_mask_len := (lengthof(ma_mask) + 8 - 1) / 8;</span><br><span>  ma_mask := f_pad_bit(ma_mask, ma_mask_len * 8, '0'B);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19996">change 19996</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/+/19996"/><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: I3afadfde03f6ea766c0756a181ef129e4b05c383 </div>
<div style="display:none"> Gerrit-Change-Number: 19996 </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>