<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25765">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bts: set ncc_permitted from bts_alloc<br><br>The value ncc_permitted is preset in osmo_bsc_main.c from<br>bootstrap_bts(). It is a constant value that also cannot be changed via<br>the VTY. Therefore it should be set from bts_alloc(). This also fixes<br>the problem that when the BTS is added at runtime from the VTY. BTSs<br>added at runtime would have an all zero ncc_permitted until the next<br>restart of osmo_bsc.<br><br>Change-Id: I9f02277d7b4b4bcb383e749435416a0b22efd5e8<br>Related: SYS#5369<br>---<br>M src/osmo-bsc/bts.c<br>M src/osmo-bsc/osmo_bsc_main.c<br>2 files changed, 1 insertion(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/65/25765/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/bts.c b/src/osmo-bsc/bts.c</span><br><span>index 598641e..54d6b04 100644</span><br><span>--- a/src/osmo-bsc/bts.c</span><br><span>+++ b/src/osmo-bsc/bts.c</span><br><span>@@ -273,6 +273,7 @@</span><br><span>     bts->si_common.chan_desc.t3212 = osmo_tdef_get(net->T_defs, 3212, OSMO_TDEF_CUSTOM, -1);</span><br><span>       bts->si_common.cell_options.pwrc = 0; /* PWRC not set */</span><br><span>  bts->si_common.cell_sel_par.acs = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+       bts->si_common.ncc_permitted = 0xff;</span><br><span>      gsm_bts_set_radio_link_timeout(bts, 32); /* Use RADIO LINK TIMEOUT of 32 */</span><br><span> </span><br><span>      INIT_LLIST_HEAD(&bts->abis_queue);</span><br><span>diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c</span><br><span>index 28a56a7..3a1a673 100644</span><br><span>--- a/src/osmo-bsc/osmo_bsc_main.c</span><br><span>+++ b/src/osmo-bsc/osmo_bsc_main.c</span><br><span>@@ -510,8 +510,6 @@</span><br><span>                 bts->si_common.chan_desc.ccch_conf = (n << 1);</span><br><span>      }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   bts->si_common.ncc_permitted = 0xff;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>      /* ACC ramping is initialized from vty/config */</span><br><span> </span><br><span>         /* Initialize the BTS state */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25765">change 25765</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/+/25765"/><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: I9f02277d7b4b4bcb383e749435416a0b22efd5e8 </div>
<div style="display:none"> Gerrit-Change-Number: 25765 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>