<p style="white-space: pre-wrap; word-wrap: break-word;">Please add bts_model_get/unset/set_flag() or alike APIs.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18591">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18591/3/src/common/bts.c">File src/common/bts.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/osmo-bts/+/18591/3/src/common/bts.c@261">Patch Set #3, Line 261:</a> <code style="font-family:monospace,monospace">        if (~trx->bts->flags & BTS_IMPL_FLAG_MS_PWR_CTRL_DSP)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I would really welcome a function helper for this, in order to:</p><ul><li>Avoid boolean math in lots of places (and hence having to pay attention to it)</li><li>Easily finding where internal features are checked/used/set.</li></ul><p style="white-space: pre-wrap; word-wrap: break-word;">Also because it's something all bts_model are using, so it makes sense to have some sort of abstraction to make it easier when adding a new model.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18591/3/src/common/oml.c">File src/common/oml.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/osmo-bts/+/18591/3/src/common/oml.c@176">Patch Set #3, Line 176:</a> <code style="font-family:monospace,monospace">        msgb_tl16v_put(msg, NM_ATT_MANUF_ID, _NUM_BTS_FEAT/8 + 1, bts->features->data);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">isn't there an API to get the data pointer?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18591/3/src/common/vty.c">File src/common/vty.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/osmo-bts/+/18591/3/src/common/vty.c@845">Patch Set #3, Line 845:</a> <code style="font-family:monospace,monospace">    for (i = 0, no_features = true; i < sizeof(bts->flags) * 8; i++) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">features = false, then setting it to true and checking if (!features) is easier to understand :)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/18591">change 18591</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/+/18591"/><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: Icf792d02323bb73e3b8d46384c7890cb1eb4731e </div>
<div style="display:none"> Gerrit-Change-Number: 18591 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 02 Jun 2020 10:21:47 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>