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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">RES IND: allow empty Resource Information IE<br><br>If all channels of a BTS are in use and there are no interference<br>ratings to be reported, the Resource Information IE may be empty. Do not<br>log this as an error, it is not something that needs operator attention.<br><br>Related: SYS#5313<br>Change-Id: I75b851ef1269674f43db3fb3a48518e76182d7f0<br>---<br>M src/osmo-bsc/abis_rsl.c<br>1 file changed, 4 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/abis_rsl.c b/src/osmo-bsc/abis_rsl.c</span><br><span>index f6ae19a..02037e1 100644</span><br><span>--- a/src/osmo-bsc/abis_rsl.c</span><br><span>+++ b/src/osmo-bsc/abis_rsl.c</span><br><span>@@ -1492,7 +1492,7 @@</span><br><span>          }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   res_info_ie = TLVP_GET_MINLEN(&tp, RSL_IE_RESOURCE_INFO, 2);</span><br><span style="color: hsl(120, 100%, 40%);">+      res_info_ie = TLVP_GET(&tp, RSL_IE_RESOURCE_INFO);</span><br><span>       if (!res_info_ie) {</span><br><span>          LOGP(DRSL, LOGL_ERROR, "Rx Resource Indication: missing Resource Info IE\n");</span><br><span>              return -ENOENT;</span><br><span>@@ -1510,7 +1510,9 @@</span><br><span>              return -EINVAL;</span><br><span>      }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   /* Now iterate the reported levels and update corresponding lchans */</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Now iterate the reported levels and update corresponding lchans.</span><br><span style="color: hsl(120, 100%, 40%);">+    * Note that an empty res_info_ie can also make sense, if no lchans are idle and no interference ratings are</span><br><span style="color: hsl(120, 100%, 40%);">+   * present. The practical effect of the message then is to invalidate previous interference ratings. */</span><br><span>      for (i = 0; i < res_info_ie->len; i += 2) {</span><br><span>            struct gsm_bts *bts = trx->bts;</span><br><span>           uint8_t chan_nr = res_info_ie->val[i];</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25002">change 25002</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-bsc/+/25002"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I75b851ef1269674f43db3fb3a48518e76182d7f0 </div>
<div style="display:none"> Gerrit-Change-Number: 25002 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@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: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>