<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/20282">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sched_lchan_tchh: initialize meas_avg with zeros<br><br>in function rx_tchh_fn() the variable meas_avg is not initalized. This<br>is not always a problem, since most of the time trx_sched_meas_avg() is<br>populating the variable properly. In cases where a FACCH is transmitted<br>(chan_state->ul_ongoing_facch = true) the variable is left unpopulated.<br>In order to have at least stable values for those cases, make sure that<br>meas_avg contains zeros in the beginning.<br><br>Change-Id: I5c3c1c41d22f9edaaf6bd4478dd04f090dca12a9<br>Fixes: CID#214480<br>---<br>M src/osmo-bts-trx/sched_lchan_tchh.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/82/20282/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-trx/sched_lchan_tchh.c b/src/osmo-bts-trx/sched_lchan_tchh.c</span><br><span>index 2a561e1..75aeec4 100644</span><br><span>--- a/src/osmo-bts-trx/sched_lchan_tchh.c</span><br><span>+++ b/src/osmo-bts-trx/sched_lchan_tchh.c</span><br><span>@@ -66,7 +66,7 @@</span><br><span>     */</span><br><span>  int fn_is_odd = (((bi->fn + 26 - 10) % 26) >> 2) & 1;</span><br><span>   enum sched_meas_avg_mode meas_avg_mode = SCHED_MEAS_AVG_M_QUAD;</span><br><span style="color: hsl(0, 100%, 40%);">- struct l1sched_meas_set meas_avg;</span><br><span style="color: hsl(120, 100%, 40%);">+     struct l1sched_meas_set meas_avg = { };</span><br><span>      unsigned int fn_begin;</span><br><span>       uint16_t ber10k;</span><br><span>     uint8_t is_sub = 0;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/20282">change 20282</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/+/20282"/><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: I5c3c1c41d22f9edaaf6bd4478dd04f090dca12a9 </div>
<div style="display:none"> Gerrit-Change-Number: 20282 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>