<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/19310">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">encoding: assert() presence of Downlink TBF<br><br>This is not something that should normally happen.  If it happens,<br>then it's definitely a bug, and we should not tolerate it.<br><br>Change-Id: I6e46ba42650f0db2399649b536a1d2b3f0fcbf04<br>---<br>M src/encoding.cpp<br>1 file changed, 1 insertion(+), 4 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/10/19310/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/encoding.cpp b/src/encoding.cpp</span><br><span>index 2564575..9dfd7c9 100644</span><br><span>--- a/src/encoding.cpp</span><br><span>+++ b/src/encoding.cpp</span><br><span>@@ -494,10 +494,7 @@</span><br><span>    /* 3GPP TS 44.018 ยง10.5.2.16 IA Rest Octets */</span><br><span>      dest->cur_bit = wp;</span><br><span>       if (downlink) {</span><br><span style="color: hsl(0, 100%, 40%);">-         if (!as_dl_tbf(tbf)) {</span><br><span style="color: hsl(0, 100%, 40%);">-                  LOGP(DRLCMACDL, LOGL_ERROR, "Cannot encode DL IMMEDIATE ASSIGNMENT without TBF\n");</span><br><span style="color: hsl(0, 100%, 40%);">-                   return -EINVAL;</span><br><span style="color: hsl(0, 100%, 40%);">-         }</span><br><span style="color: hsl(120, 100%, 40%);">+             OSMO_ASSERT(as_dl_tbf(tbf) != NULL);</span><br><span> </span><br><span>             rc = write_ia_rest_downlink(as_dl_tbf(tbf), dest, polling, gsm48_ta_is_valid(ta), fn, alpha, gamma,</span><br><span>                                      ta_idx);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/19310">change 19310</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/+/19310"/><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: I6e46ba42650f0db2399649b536a1d2b3f0fcbf04 </div>
<div style="display:none"> Gerrit-Change-Number: 19310 </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>