<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/20841">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sched_lchan_tchf: count measurements for FACCH/F only once<br><br>When the FACCH is generated (while in SPEECH mode), there is also a<br>fake speech indication handed up to l1sap.c. We must make sure that only<br>one of the two indications carry a measurement value, so lets invalidate<br>the measurement values (RSSI in particular) for the generated TCH<br>indication.<br><br>Change-Id: Ie3f2e620ba2a2ab2fecdbae627ef01c6128fce0b<br>Related: OS#4799<br>---<br>M src/osmo-bts-trx/sched_lchan_tchf.c<br>1 file changed, 11 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/41/20841/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-trx/sched_lchan_tchf.c b/src/osmo-bts-trx/sched_lchan_tchf.c</span><br><span>index 9c5bfc2..14625c1 100644</span><br><span>--- a/src/osmo-bts-trx/sched_lchan_tchf.c</span><br><span>+++ b/src/osmo-bts-trx/sched_lchan_tchf.c</span><br><span>@@ -241,6 +241,17 @@</span><br><span>                      meas_avg.rssi, meas_avg.toa256,</span><br><span>                      meas_avg.ci_cb, ber10k,</span><br><span>                      PRES_INFO_UNKNOWN);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+         /* If we are in SPEECH mode we will generate a fake TCH</span><br><span style="color: hsl(120, 100%, 40%);">+                * indication as well. This indication is needed by the higher</span><br><span style="color: hsl(120, 100%, 40%);">+                 * layers, however we already have reported the measurement</span><br><span style="color: hsl(120, 100%, 40%);">+            * result for the current block together with the FACCH.</span><br><span style="color: hsl(120, 100%, 40%);">+               * To avoid reporting the same measurement result with the fake</span><br><span style="color: hsl(120, 100%, 40%);">+                * TCH indication again we zero out the current data we just</span><br><span style="color: hsl(120, 100%, 40%);">+           * sent. This will invalidate the measurement, in particular</span><br><span style="color: hsl(120, 100%, 40%);">+           * meas_avg.rssi. */</span><br><span style="color: hsl(120, 100%, 40%);">+          memset(&meas_avg, 0, sizeof(meas_avg));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> bfi:</span><br><span>                if (rsl_cmode == RSL_CMOD_SPD_SPEECH) {</span><br><span>                      /* indicate bad frame */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/20841">change 20841</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-bts/+/20841"/><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-Change-Id: Ie3f2e620ba2a2ab2fecdbae627ef01c6128fce0b </div>
<div style="display:none"> Gerrit-Change-Number: 20841 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>