<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/23831">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-bts-trx: cosmetic: get rid of TRX_CHDR_LEN macro<br><br>The 'CHDR' stands for 'Common Header', but this does not apply to<br>TRXDv2 because TDMA frame number may not be present in the batched<br>PDUs.  Let's avoid potential confusion by removing it.<br><br>Change-Id: I80495df474c432f4c0a4cfa6f917821d7b35859a<br>---<br>M src/osmo-bts-trx/trx_if.c<br>1 file changed, 3 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/31/23831/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c</span><br><span>index 4364acf..a458fa6 100644</span><br><span>--- a/src/osmo-bts-trx/trx_if.c</span><br><span>+++ b/src/osmo-bts-trx/trx_if.c</span><br><span>@@ -718,11 +718,9 @@</span><br><span>  * TRX burst data socket</span><br><span>  */</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-/* Common header length: 1/2 VER + 1/2 TDMA TN + 4 TDMA FN */</span><br><span style="color: hsl(0, 100%, 40%);">-#define TRX_CHDR_LEN                (1 + 4)</span><br><span style="color: hsl(0, 100%, 40%);">-/* Uplink v0 header length: 1 RSSI + 2 ToA256 */</span><br><span style="color: hsl(0, 100%, 40%);">-#define TRX_UL_V0HDR_LEN (TRX_CHDR_LEN + 1 + 2)</span><br><span style="color: hsl(0, 100%, 40%);">-/* Uplink v1 header length: + 1 MTS + 2 C/I */</span><br><span style="color: hsl(120, 100%, 40%);">+/* Uplink TRXDv0 header length: TDMA TN + FN + RSSI + ToA256 */</span><br><span style="color: hsl(120, 100%, 40%);">+#define TRX_UL_V0HDR_LEN (1 + 4 + 1 + 2)</span><br><span style="color: hsl(120, 100%, 40%);">+/* Uplink TRXDv1 header length: additional MTS + C/I */</span><br><span> #define TRX_UL_V1HDR_LEN    (TRX_UL_V0HDR_LEN + 1 + 2)</span><br><span> </span><br><span> /* TRXD header dissector for version 0 */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/23831">change 23831</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/+/23831"/><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: I80495df474c432f4c0a4cfa6f917821d7b35859a </div>
<div style="display:none"> Gerrit-Change-Number: 23831 </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>