diff options
Diffstat (limited to 'src/osmo-bsc/chan_alloc.c')
-rw-r--r-- | src/osmo-bsc/chan_alloc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/osmo-bsc/chan_alloc.c b/src/osmo-bsc/chan_alloc.c index f23a982a1..226984d56 100644 --- a/src/osmo-bsc/chan_alloc.c +++ b/src/osmo-bsc/chan_alloc.c @@ -45,7 +45,7 @@ void bts_chan_load(struct pchan_load *cl, const struct gsm_bts *bts) llist_for_each_entry(trx, &bts->trx_list, list) { int i; - /* skip administratively deactivated tranxsceivers */ + /* skip administratively deactivated transceivers */ if (!trx_is_usable(trx)) continue; @@ -58,6 +58,11 @@ void bts_chan_load(struct pchan_load *cl, const struct gsm_bts *bts) if (!nm_is_running(&ts->mo.nm_state)) continue; + /* skip timeslots which are not yet initialized or which + * have been de-initialized due to RSL link going down */ + if (ts->fi->state == TS_ST_NOT_INITIALIZED) + continue; + /* Dynamic timeslots have to be counted separately * when not in TCH/F or TCH/H mode because they don't * have an lchan's allocated to them. At the same time, |