<p>Alexander Chemeris has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9996">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">coding: Always initialize bit counters in gsm0503_pdtch_egprs_decode().<br><br>Previsouly there were a lot of valid code paths which returned from the function<br>before setting bit counters which led to bogus BER output in osmo-bts-trx logs<br>when those code paths were hit.<br><br>Change-Id: I4722cae3794ccbb12001113c991d9cf345a52a96<br>---<br>M src/coding/gsm0503_coding.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/96/9996/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/coding/gsm0503_coding.c b/src/coding/gsm0503_coding.c</span><br><span>index 2eb8cba..6be4001 100644</span><br><span>--- a/src/coding/gsm0503_coding.c</span><br><span>+++ b/src/coding/gsm0503_coding.c</span><br><span>@@ -938,6 +938,9 @@</span><br><span>   struct egprs_cps cps;</span><br><span>        union gprs_rlc_ul_hdr_egprs *hdr;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ if (n_errors) *n_errors = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+  if (n_bits_total) *n_bits_total = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>       if ((nbits != GSM0503_GPRS_BURSTS_NBITS) &&</span><br><span>          (nbits != GSM0503_EGPRS_BURSTS_NBITS)) {</span><br><span>             /* Invalid EGPRS bit length */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9996">change 9996</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/9996"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I4722cae3794ccbb12001113c991d9cf345a52a96 </div>
<div style="display:none"> Gerrit-Change-Number: 9996 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Chemeris <Alexander.Chemeris@gmail.com> </div>