<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/14874">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">l1sap: Don't discard fractional part of link_quality<br><br>When comparing the received link quality with the minimum threshold,<br>don't discard any fractional part by first converting to float and then<br>dividing by 10 (rather than the opposite order).<br><br>Change-Id: I1c365cf2b46fc8c5922e4e32fcc55d1f03b1e935<br>Closes: CID#171993<br>---<br>M src/common/l1sap.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/74/14874/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/l1sap.c b/src/common/l1sap.c</span><br><span>index b730b85..cd05955 100644</span><br><span>--- a/src/common/l1sap.c</span><br><span>+++ b/src/common/l1sap.c</span><br><span>@@ -1218,7 +1218,7 @@</span><br><span>         * the content is not available due to decoding issues. Content not</span><br><span>   * available is expected as empty payload. We also check if quality is</span><br><span>        * good enough. */</span><br><span style="color: hsl(0, 100%, 40%);">-      if (msg->len && tch_ind->lqual_cb / 10 >= bts->min_qual_norm) {</span><br><span style="color: hsl(120, 100%, 40%);">+   if (msg->len && (float) tch_ind->lqual_cb / 10.0f >= bts->min_qual_norm) {</span><br><span>               /* hand msg to RTP code for transmission */</span><br><span>          if (lchan->abis_ip.rtp_socket)</span><br><span>                    osmo_rtp_send_frame_ext(lchan->abis_ip.rtp_socket,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/14874">change 14874</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/+/14874"/><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: I1c365cf2b46fc8c5922e4e32fcc55d1f03b1e935 </div>
<div style="display:none"> Gerrit-Change-Number: 14874 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>