<p>Patch set 1:<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/c/osmo-pcu/+/20990">View Change</a></p><p>7 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20990/1/src/bts.h">File src/bts.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/osmo-pcu/+/20990/1/src/bts.h@113">Patch Set #1, Line 113:</a> <code style="font-family:monospace,monospace">      bool cs_supported[4];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Why not bit-masks?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20990/1/src/gprs_bssgp_pcu.cpp">File src/gprs_bssgp_pcu.cpp:</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/osmo-pcu/+/20990/1/src/gprs_bssgp_pcu.cpp@746">Patch Set #1, Line 746:</a> <code style="font-family:monospace,monospace">sizeof</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I would not make such assumptions that sizeof(bool) is always 1; it's safer to ARRAY_SIZE here. But using a bit-mask is even better, as I already pointed in another comment.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20990/1/src/gprs_bssgp_pcu.cpp@749">Patch Set #1, Line 749:</a> <code style="font-family:monospace,monospace">break</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Also, what if none of the MCS variants is supported? Would we leave 'num' uninitialized?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20990/1/src/gprs_bssgp_pcu.cpp@769">Patch Set #1, Line 769:</a> <code style="font-family:monospace,monospace">break</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same here, but in this case it's less likely given that CS-1 is mandatory AFAIR.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20990/1/src/pcu_l1_if.cpp">File src/pcu_l1_if.cpp:</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/osmo-pcu/+/20990/1/src/pcu_l1_if.cpp@619">Patch Set #1, Line 619:</a> <code style="font-family:monospace,monospace">             </code></p><p style="white-space: pre-wrap; word-wrap: break-word;">two tabs? why?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20990/1/src/pcu_l1_if.cpp@621">Patch Set #1, Line 621:</a> <code style="font-family:monospace,monospace">any_cs_supported</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">What is the motivation here? If the BTS indicates that none is supported, then it's a bug.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20990/1/src/pcu_l1_if.cpp@625">Patch Set #1, Line 625:</a> <code style="font-family:monospace,monospace">    if (!any_cs_supported) /* We need at least 1 CS, let's enable CS1 */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">What is the motivation here? If the BTS indicates that none is supported, then it's a bug.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20990">change 20990</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-pcu/+/20990"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie8f0215ba17da1e545e98bec9325c02f1e8efaea </div>
<div style="display:none"> Gerrit-Change-Number: 20990 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 31 Oct 2020 12:42:52 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>