<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/10817">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trxcon/trx_if.c: drop Timing Advance range limitation<br><br>Despite the correct range of Timing Advance value is [0..63],<br>there is a special feature in OsmocomBB which allows one to<br>simulate the distance between both MS and a BTS by playing<br>with the signal delay.<br><br>This is why a signed 'int8_t' type is used in L1CTL protocol.<br>No need to limit the range, just forward it to TRX.<br><br>Change-Id: I06774b315b8451bf14083da6b2849d6e8594abc8<br>---<br>M src/host/trxcon/trx_if.c<br>1 file changed, 3 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c</span><br><span>index b3735c2..19d8c75 100644</span><br><span>--- a/src/host/trxcon/trx_if.c</span><br><span>+++ b/src/host/trxcon/trx_if.c</span><br><span>@@ -380,7 +380,9 @@</span><br><span>  * advance calculated from requested TA value. This value is</span><br><span>  * normally between 0 and 63, with each step representing</span><br><span>  * an advance of one bit period (about 3.69 microseconds).</span><br><span style="color: hsl(0, 100%, 40%);">- * CMD SETTA <0-63></span><br><span style="color: hsl(120, 100%, 40%);">+ * Since OsmocomBB has a special feature, which allows one</span><br><span style="color: hsl(120, 100%, 40%);">+ * to spoof the distance from BTS, the range is extended.</span><br><span style="color: hsl(120, 100%, 40%);">+ * CMD SETTA <-128..127></span><br><span>  * RSP SETTA <status> <TA></span><br><span>  */</span><br><span> </span><br><span>@@ -390,12 +392,6 @@</span><br><span>   if (trx->ta == ta)</span><br><span>                return 0;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   /* Make sure that TA value is in valid range */</span><br><span style="color: hsl(0, 100%, 40%);">- if (ta < 0 || ta > 63) {</span><br><span style="color: hsl(0, 100%, 40%);">-          LOGP(DTRX, LOGL_ERROR, "TA value %d is out of allowed range\n", ta);</span><br><span style="color: hsl(0, 100%, 40%);">-          return -ENOTSUP;</span><br><span style="color: hsl(0, 100%, 40%);">-        }</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>    return trx_ctrl_cmd(trx, 0, "SETTA", "%d", ta);</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10817">change 10817</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/10817"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I06774b315b8451bf14083da6b2849d6e8594abc8 </div>
<div style="display:none"> Gerrit-Change-Number: 10817 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>