<p>fixeria <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18734">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-bts-trx/scheduler: properly handle NOPE.ind during handover<br><br>Looking at GSMTAP during handover, I've noticed many packets on<br>RACH looking pretty much like false positives, all with RA=0x00.<br>I correlated GSMTAP traces with TRXD traces, and figured out<br>that they all are triggered by NOPE indications from osmo-trx.<br><br>Since a NOPE.ind carries no valid burst, all its bits are set to<br>zero. Funny enough, this sequence is still decoded just fine as<br>a valid RACH, so that's why we see it on GSMTAP. Later on it<br>gets rejected by L1SAP due to bad RSSI, ToA, and/or C/I ratio.<br><br>The is a side effect of [1]. In order to ensure proper Uplink<br>measurement reporting during handover, including the time<br>before the handover RACH is received, let's treat and handle<br>NOPE indications as Normal Bursts.<br><br>[1] Ice45d5986610d9bcef2a7e41f0a395ec779e3928<br><br>Change-Id: Ic69f3bc2b776a23374c28a6884080a54bc16ef5f<br>Related: OS#4592<br>---<br>M src/osmo-bts-trx/scheduler_trx.c<br>1 file changed, 9 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c</span><br><span>index 8a2bb12..97b590d 100644</span><br><span>--- a/src/osmo-bts-trx/scheduler_trx.c</span><br><span>+++ b/src/osmo-bts-trx/scheduler_trx.c</span><br><span>@@ -917,8 +917,9 @@</span><br><span>    uint16_t ber10k;</span><br><span>     int rc;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-     /* handle RACH, if handover RACH detection is turned on */</span><br><span style="color: hsl(0, 100%, 40%);">-      if (chan_state->ho_rach_detect == 1)</span><br><span style="color: hsl(120, 100%, 40%);">+       /* If handover RACH detection is turned on, treat this burst as an Access Burst.</span><br><span style="color: hsl(120, 100%, 40%);">+       * Handle NOPE.ind as usually to ensure proper Uplink measurement reporting. */</span><br><span style="color: hsl(120, 100%, 40%);">+       if (chan_state->ho_rach_detect == 1 && ~bi->flags & TRX_BI_F_NOPE_IND)</span><br><span>             return rx_rach_fn(l1t, chan, bid, bi);</span><br><span> </span><br><span>   LOGL1S(DL1P, LOGL_DEBUG, l1t, bi->tn, chan, bi->fn,</span><br><span>@@ -1142,8 +1143,9 @@</span><br><span>    uint8_t is_sub = 0;</span><br><span>  uint8_t ft;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- /* handle rach, if handover rach detection is turned on */</span><br><span style="color: hsl(0, 100%, 40%);">-      if (chan_state->ho_rach_detect == 1)</span><br><span style="color: hsl(120, 100%, 40%);">+       /* If handover RACH detection is turned on, treat this burst as an Access Burst.</span><br><span style="color: hsl(120, 100%, 40%);">+       * Handle NOPE.ind as usually to ensure proper Uplink measurement reporting. */</span><br><span style="color: hsl(120, 100%, 40%);">+       if (chan_state->ho_rach_detect == 1 && ~bi->flags & TRX_BI_F_NOPE_IND)</span><br><span>             return rx_rach_fn(l1t, chan, bid, bi);</span><br><span> </span><br><span>   LOGL1S(DL1P, LOGL_DEBUG, l1t, bi->tn, chan, bi->fn,</span><br><span>@@ -1384,8 +1386,9 @@</span><br><span>    uint8_t is_sub = 0;</span><br><span>  uint8_t ft;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- /* handle RACH, if handover RACH detection is turned on */</span><br><span style="color: hsl(0, 100%, 40%);">-      if (chan_state->ho_rach_detect == 1)</span><br><span style="color: hsl(120, 100%, 40%);">+       /* If handover RACH detection is turned on, treat this burst as an Access Burst.</span><br><span style="color: hsl(120, 100%, 40%);">+       * Handle NOPE.ind as usually to ensure proper Uplink measurement reporting. */</span><br><span style="color: hsl(120, 100%, 40%);">+       if (chan_state->ho_rach_detect == 1 && ~bi->flags & TRX_BI_F_NOPE_IND)</span><br><span>             return rx_rach_fn(l1t, chan, bid, bi);</span><br><span> </span><br><span>   LOGL1S(DL1P, LOGL_DEBUG, l1t, bi->tn, chan, bi->fn,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/18734">change 18734</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/+/18734"/><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: Ic69f3bc2b776a23374c28a6884080a54bc16ef5f </div>
<div style="display:none"> Gerrit-Change-Number: 18734 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>