<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25653">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-bsc/+/25653/6/src/osmo-bsc/bsc_vty.c">File src/osmo-bsc/bsc_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-bsc/+/25653/6/src/osmo-bsc/bsc_vty.c@1888">Patch Set #6, Line 1888:</a> <code style="font-family:monospace,monospace">      "bts <0-255> trx <0-255> timeslot <0-7> sub-slot <0-7> ms-power <5-40>\n",</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">are you sure 4-50 is the correct range or ms power levels?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Oops, You're right, I principally work in the 850 band which has a minimum of 5 dB, but other bands have 0 dBm. As for the max, what I see in the spec is 39, for UE that supports it, in GSM 900 and GSM 850, but we have 0-40 in ms max power, so I shall use that range here.</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/+/25653/6/src/osmo-bsc/bsc_vty.c@1896">Patch Set #6, Line 1896:</a> <code style="font-family:monospace,monospace">  if (!ts)</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Add vty_out about wrong bts+trx+ts?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">OK, I was just following many other similar implementations. I think if one is running these<br>bts x trx x commands, one is expected to know what bts and trx exist in the configuration.</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/+/25653/6/src/osmo-bsc/bsc_vty.c@1908">Patch Set #6, Line 1908:</a> <code style="font-family:monospace,monospace">      lchan->ms_power = ms_pwr_ctl_lvl(ts->trx->bts->band, atoi(argv[4]));</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">What about reusing lchan_update_ms_power_ctrl_level() instead? You could extend that fucntion to ret […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Well, it is kind of designed for fuzzing, only to ever be executed by an operator who might expect things to break so yes, I'd say we don't want all those checks here.<br>But lets add it as an option.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25653">change 25653</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/+/25653"/><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: Ie2642299ea696358db5822571f1f722b5e8f76b9 </div>
<div style="display:none"> Gerrit-Change-Number: 25653 </div>
<div style="display:none"> Gerrit-PatchSet: 7 </div>
<div style="display:none"> Gerrit-Owner: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 01 Oct 2021 23:11:41 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>