diff options
author | Kirill Zakharenko <earwin@gmail.com> | 2020-06-06 02:22:54 +0300 |
---|---|---|
committer | Kirill Zakharenko <earwin@gmail.com> | 2020-06-06 02:22:54 +0300 |
commit | cc871b5d2fe8357b2309787d2566fd129de9b090 (patch) | |
tree | 930ef9729b141f61810f2bc530b3abd6c616a3df /src/osmo-bsc/chan_alloc.c | |
parent | d3cb71b5510476f6f8aed1b3e9e5585dac317b5e (diff) | |
parent | f7e70b5228affca2dfa2ce1fac57195acd06d0b9 (diff) |
Merge fairwaves/stats-work into master
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, |