<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/24601">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">l1sap: fix TDMA frame number arithmetic in fn_ms_adj()<br><br>Using the normal arithmetic for TDMA frame numbers is wrong.<br><br>Change-Id: Ie17670d150489014a4a2e140cede42086100bbc0<br>---<br>M src/common/l1sap.c<br>1 file changed, 2 insertions(+), 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/01/24601/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 cd2af57..1e302ce 100644</span><br><span>--- a/src/common/l1sap.c</span><br><span>+++ b/src/common/l1sap.c</span><br><span>@@ -139,7 +139,8 @@</span><br><span>              /* 12/13 frames usable for audio in TCH,</span><br><span>                160 samples per RTP packet,</span><br><span>                  1 RTP packet per 4 frames */</span><br><span style="color: hsl(0, 100%, 40%);">-         samples_passed = (fn - lchan->tch.last_fn) * 12 * 160 / (13 * 4);</span><br><span style="color: hsl(120, 100%, 40%);">+          samples_passed = GSM_TDMA_FN_SUB(fn, lchan->tch.last_fn);</span><br><span style="color: hsl(120, 100%, 40%);">+          samples_passed = samples_passed * 12 * 160 / (13 * 4);</span><br><span>               /* round number of samples to the nearest multiple of</span><br><span>                   GSM_RTP_DURATION */</span><br><span>               r = samples_passed + GSM_RTP_DURATION / 2;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/24601">change 24601</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/+/24601"/><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: Ie17670d150489014a4a2e140cede42086100bbc0 </div>
<div style="display:none"> Gerrit-Change-Number: 24601 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>