<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20100">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BTS_Tests: simplify MA length calculation in f_resolve_fh_params()<br><br>Change-Id: I13f1d45162b520eff0d2e9823604fda85b71970b<br>Related: SYS#4868, OS#4708<br>---<br>M bts/BTS_Tests.ttcn<br>1 file changed, 1 insertion(+), 3 deletions(-)<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/00/20100/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn</span><br><span>index 58b2213..ac781f6 100644</span><br><span>--- a/bts/BTS_Tests.ttcn</span><br><span>+++ b/bts/BTS_Tests.ttcn</span><br><span>@@ -547,9 +547,7 @@</span><br><span> </span><br><span>          if (ispresent(pars.maio_hsn)) {</span><br><span>                      /* Prepare the Mobile Allocation bitmask (length & padding) */</span><br><span style="color: hsl(0, 100%, 40%);">-                      pars.ma_map.len := mp_transceiver_num / 8;</span><br><span style="color: hsl(0, 100%, 40%);">-                      if (mp_transceiver_num mod 8 > 0)</span><br><span style="color: hsl(0, 100%, 40%);">-                            { pars.ma_map.len := pars.ma_map.len + 1; }</span><br><span style="color: hsl(120, 100%, 40%);">+                   pars.ma_map.len := (mp_transceiver_num + 8 - 1) / 8; /* in bytes */</span><br><span>                  pars.ma_map.ma := f_pad_bit('0'B, pars.ma_map.len * 8, '0'B);</span><br><span> </span><br><span>                    /* Compose the actual Mobile Allocation and the bitmask */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20100">change 20100</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/+/20100"/><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: I13f1d45162b520eff0d2e9823604fda85b71970b </div>
<div style="display:none"> Gerrit-Change-Number: 20100 </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>