<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/25691">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">load_indication.c: Avoid sending if CCCH is still not operational<br><br>It makes no sense to transmit load information if the channel is still<br>not operational. This solves errors messages seen in osmo-bsc.<br><br>Related: OS#4872<br>Change-Id: I7ddda9776158eed0694df9e458f3f91df90bf674<br>---<br>M src/common/load_indication.c<br>1 file changed, 5 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/91/25691/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/load_indication.c b/src/common/load_indication.c</span><br><span>index 69af9c6..d5b76ea 100644</span><br><span>--- a/src/common/load_indication.c</span><br><span>+++ b/src/common/load_indication.c</span><br><span>@@ -41,6 +41,10 @@</span><br><span>      struct gsm_bts *bts = data;</span><br><span>  unsigned int pch_percent, rach_percent;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   /* It makes no sense to send Load Indication if CCCH is still disabled...*/</span><br><span style="color: hsl(120, 100%, 40%);">+   if (bts->c0->ts[0].mo.nm_state.operational != NM_OPSTATE_ENABLED)</span><br><span style="color: hsl(120, 100%, 40%);">+               goto retry_later;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  /* compute percentages */</span><br><span>    if (bts->load.ccch.pch_total == 0)</span><br><span>                pch_percent = 0;</span><br><span>@@ -73,6 +77,7 @@</span><br><span>                                           bts->load.rach.access);</span><br><span>         }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+retry_later:</span><br><span>  reset_load_counters(bts);</span><br><span> </span><br><span>        /* re-schedule the timer */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/25691">change 25691</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/+/25691"/><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: I7ddda9776158eed0694df9e458f3f91df90bf674 </div>
<div style="display:none"> Gerrit-Change-Number: 25691 </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>