<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24421">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/osmo-bsc/+/24421/6//COMMIT_MSG">Commit Message:</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-bsc/+/24421/6//COMMIT_MSG@9">Patch Set #6, Line 9:</a> <code style="font-family:monospace,monospace">dBm</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Should be dB, because it's relative to the full power, not Milliwatt.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24421/6//COMMIT_MSG@10">Patch Set #6, Line 10:</a> <code style="font-family:monospace,monospace">dBm</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same here and below.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24421/6/src/osmo-bsc/abis_rsl.c">File src/osmo-bsc/abis_rsl.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-bsc/+/24421/6/src/osmo-bsc/abis_rsl.c@1040">Patch Set #6, Line 1040:</a> <code style="font-family:monospace,monospace">ddBm</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">dB</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24421/6/src/osmo-bsc/abis_rsl.c@1129">Patch Set #6, Line 1129:</a> <code style="font-family:monospace,monospace">bs_power_enc</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I would use:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  const uint8_t bs_power_enc = *TLVP_VAL(&tp, RSL_IE_BS_POWER);</pre><p style="white-space: pre-wrap; word-wrap: break-word;">but this is not critical.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24421/6/src/osmo-bsc/abis_rsl.c@1130">Patch Set #6, Line 1130:</a> <code style="font-family:monospace,monospace">bs_power_enc</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Ideally, we should apply a mask here:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;"> (bs_power_enc & 0x0f) * 2;</pre><p style="white-space: pre-wrap; word-wrap: break-word;">because the 4 MSB bits may contain flags (FPC, EPC).</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24421">change 24421</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-bsc/+/24421"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I229db1d6bcf532af95aff56b2ad18b5ed9d81616 </div>
<div style="display:none"> Gerrit-Change-Number: 24421 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 27 May 2021 14:38:44 +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>