<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/23260">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pdch: Silently ignore DATA.ind with len=0<br><br>Since recently (see Depends below), BTS side submits DATA.ind with len=0<br>to announce nothing was received on that UL block FN. This will allow<br>osmo-pcu track time more accurately, and use this information to quickly<br>find out if a UL block was expected as requested by RRBP or USF poll and<br>increment counters such as N3101 (finally being able to properly<br>implement timers such as T3619).<br><br>Depends: osmo-bts.git Change-Id I343c7a721dab72411edbca816c8864926bc329fb<br>Related: OS#5020<br>Change-Id: I17c28abf63b153448b533971ac5cf2e48daadea8<br>---<br>M src/pdch.cpp<br>1 file changed, 9 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/60/23260/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/pdch.cpp b/src/pdch.cpp</span><br><span>index 46d1cae..374435c 100644</span><br><span>--- a/src/pdch.cpp</span><br><span>+++ b/src/pdch.cpp</span><br><span>@@ -794,6 +794,15 @@</span><br><span> int gprs_rlcmac_pdch::rcv_block(uint8_t *data, uint8_t len, uint32_t fn,</span><br><span>    struct pcu_l1_meas *meas)</span><br><span> {</span><br><span style="color: hsl(120, 100%, 40%);">+        /* No successfully UL block was received during this FN: */</span><br><span style="color: hsl(120, 100%, 40%);">+   if (len == 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+               /* TODO: Here, in the future, it can be checked whether a UL block was expected for:</span><br><span style="color: hsl(120, 100%, 40%);">+           * - UL/DL TBFs: RRBP poll pending (bts->pollController->expireTimedout)</span><br><span style="color: hsl(120, 100%, 40%);">+                 * - UL TBFs: USF poll pending (we don't store this info in ul_tbf yet) -> inc N3101 (OS#5033)</span><br><span style="color: hsl(120, 100%, 40%);">+          */</span><br><span style="color: hsl(120, 100%, 40%);">+           return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  enum CodingScheme cs = mcs_get_by_size_ul(len);</span><br><span>      if (!cs) {</span><br><span>           bts_do_rate_ctr_inc(bts(), CTR_DECODE_ERRORS);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/23260">change 23260</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-pcu/+/23260"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I17c28abf63b153448b533971ac5cf2e48daadea8 </div>
<div style="display:none"> Gerrit-Change-Number: 23260 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>