<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/14159">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">l1sap: Correctly count RACH slots in calc_exprd_rach_frames()<br><br>We used a bogus multiplication factor of four when computing the number<br>of expired RACH slots.  While there are four RACH slots per block (i.e.<br>4 times more RACH received than normal MAC blocks), that multiplier<br>doesn't apply here:  We are calling this function per *frame* and not<br>per *block*.  So the maximum number of RACH slots per *frame* is (in<br>most suual cases with a single CCCH) at maximum 1. Only some obscure<br>configurations with multiple CCCHs in a single cell would render higher<br>values.  In any case, *blocks* never even enter this equation.<br><br>This wrong multiplier resulted in rather weird RACH load reports to the<br>BSC.<br><br>Related: OS#3750<br>Change-Id: I6b14fd6e7819f9164fb4a09b432a9f419e3b6e5c<br>---<br>M src/common/l1sap.c<br>1 file changed, 1 insertion(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/l1sap.c b/src/common/l1sap.c</span><br><span>index f31d822..d9ffdb8 100644</span><br><span>--- a/src/common/l1sap.c</span><br><span>+++ b/src/common/l1sap.c</span><br><span>@@ -484,10 +484,7 @@</span><br><span>                    rach_frames_expired = 1;</span><br><span>     }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   /* Each Frame has room for 4 RACH slots, since RACH</span><br><span style="color: hsl(0, 100%, 40%);">-      * slots are short enough to fit into a single radio</span><br><span style="color: hsl(0, 100%, 40%);">-     * burst, so we need to multiply the final result by 4 */</span><br><span style="color: hsl(0, 100%, 40%);">-       return rach_frames_expired * 4;</span><br><span style="color: hsl(120, 100%, 40%);">+       return rach_frames_expired;</span><br><span> }</span><br><span> </span><br><span> /* time information received from bts model */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/14159">change 14159</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/14159"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I6b14fd6e7819f9164fb4a09b432a9f419e3b6e5c </div>
<div style="display:none"> Gerrit-Change-Number: 14159 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>