<p style="white-space: pre-wrap; word-wrap: break-word;">I expect a similar patch for l23_api/l1 firmware as there's some similar code there, right?</p><p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/11138">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11138/2/src/host/trxcon/sched_prim.c">File src/host/trxcon/sched_prim.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11138/2/src/host/trxcon/sched_prim.c@180">Patch Set #2, Line 180:</a> <code style="font-family:monospace,monospace">  prim->payload[0] = trx->tx_power;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think this should be done (without if 0) in line 172, in the dummy meas rep case.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11138/2/src/host/trxcon/sched_prim.c@192">Patch Set #2, Line 192:</a> <code style="font-family:monospace,monospace">    LOGP(DSCHD, LOGL_NOTICE, "Transmitting a %s Measurement Report "</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">We are not transmitting here. Maybe Using? Retrieving?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11138/2/src/host/trxcon/sched_prim.c@234">Patch Set #2, Line 234:</a> <code style="font-family:monospace,monospace">      mr_now = !lchan->sacch.mr_tx_last;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">With this toggle and above coment from "sub-clause 3.4.1" I understand there's 2 SACCH slots per L2 frame. Am I right?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11138/2/src/host/trxcon/sched_prim.c@259">Patch Set #2, Line 259:</a> <code style="font-family:monospace,monospace">             if (mr_now && prim_mr)</code></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">This if-else clause can be merged into previous 2 ifs, and it's way clear imho.<br>if (!prim_mr && PRIM_IS_MR(prim)) {<br>    prim_mr = prim;<br>    if (mr_now)<br>        break;<br>}</pre><p style="white-space: pre-wrap; word-wrap: break-word;">I think you can even drop the prim_mr and !prim_nmr and directly ubreak and use prim after the loop.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11138/2/src/host/trxcon/sched_trx.h">File src/host/trxcon/sched_trx.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11138/2/src/host/trxcon/sched_trx.h@196">Patch Set #2, Line 196:</a> <code style="font-family:monospace,monospace">            uint8_t mr_tx_last; /*!< 0x01 - yes, 0x00 - no */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">why not using a bool here?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11138">change 11138</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/11138"/><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: comment </div>
<div style="display:none"> Gerrit-Change-Id: If1b8dc74ced746d6270676fdde75fcda32f91a3d </div>
<div style="display:none"> Gerrit-Change-Number: 11138 </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>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 28 Sep 2018 10:09:19 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>