<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/14610">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-bts-trx/trx_if.c: rename and clarify TRX_MAX_BURST_LEN<br><br>This constant actually defines the maximum TRXD message length,<br>which includes the header and burst bits, not just burst.<br><br>Change-Id: I383125e1c4df039fc6b554833bc8736deacbe731<br>---<br>M src/osmo-bts-trx/trx_if.c<br>1 file changed, 5 insertions(+), 4 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/10/14610/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 0becdd5..9b1604c 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>@@ -52,8 +52,6 @@</span><br><span> </span><br><span> int transceiver_available = 0;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#define TRX_MAX_BURST_LEN 512</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> /*</span><br><span>  * socket helper functions</span><br><span>  */</span><br><span>@@ -587,10 +585,13 @@</span><br><span>  * TRX burst data socket</span><br><span>  */</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Maximum DATA message length (header + burst) */</span><br><span style="color: hsl(120, 100%, 40%);">+#define TRX_DATA_MSG_MAX_LEN 512</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> static int trx_data_read_cb(struct osmo_fd *ofd, unsigned int what)</span><br><span> {</span><br><span>    struct trx_l1h *l1h = ofd->data;</span><br><span style="color: hsl(0, 100%, 40%);">-     uint8_t buf[TRX_MAX_BURST_LEN];</span><br><span style="color: hsl(120, 100%, 40%);">+       uint8_t buf[TRX_DATA_MSG_MAX_LEN];</span><br><span>   int len;</span><br><span>     uint8_t tn;</span><br><span>  int8_t rssi;</span><br><span>@@ -661,7 +662,7 @@</span><br><span> int trx_if_send_burst(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr,</span><br><span>       const ubit_t *bits, uint16_t nbits)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-        uint8_t buf[TRX_MAX_BURST_LEN];</span><br><span style="color: hsl(120, 100%, 40%);">+       uint8_t buf[TRX_DATA_MSG_MAX_LEN];</span><br><span> </span><br><span>       if ((nbits != GSM_BURST_LEN) && (nbits != EGPRS_BURST_LEN)) {</span><br><span>                LOGPPHI(l1h->phy_inst, DTRX, LOGL_ERROR, "Tx burst length %u invalid\n", nbits);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/14610">change 14610</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/+/14610"/><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: I383125e1c4df039fc6b554833bc8736deacbe731 </div>
<div style="display:none"> Gerrit-Change-Number: 14610 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>