diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-03-14 20:27:49 +0100 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-03-14 21:00:08 +0100 |
commit | 4be40b4f1d2a82cfcd39881ac8a23577369353e4 (patch) | |
tree | 8e0acccd827ed374a227028419f5a6e166261419 /openbsc | |
parent | 99805db3c30f5d9b1f6913407545a75ab41d7065 (diff) |
bts chan_load: ignore unusable BTS
For unconnected BTS, the channel load would report a "bogus channel load
sample" every second (on RLL debug). Instead, skip unusable BTS.
This follows up on commit 6cee893a0f2c4e53155a2631aff12a5f615b973d /
I57e38f6d6ba3b23cc6e1f9520b90261dbb1f1cec
'Make "waiting indicator" of IMMEDIATE ASSIGN REJECT dynamic.'
Port of omo-bsc commit f802f7fd7aec1d91084231a80bbce6f2ed7bd299
Change-Id: Icd50d101244641a6ffdde17e60d7a89719225c65
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/libbsc/chan_alloc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/chan_alloc.c b/openbsc/src/libbsc/chan_alloc.c index cf6b708fa..2fd197f60 100644 --- a/openbsc/src/libbsc/chan_alloc.c +++ b/openbsc/src/libbsc/chan_alloc.c @@ -554,6 +554,11 @@ bts_update_t3122_chan_load(struct gsm_bts *bts) static const uint8_t max_wait_ind = 128; /* max wait ~2 minutes */ int i; + /* Ignore BTS that are not in operation, in order to not flood the log with "bogus channel load" + * messages */ + if (!trx_is_usable(bts->c0)) + return; + /* Sum up current load across all channels. */ memset(&pl, 0, sizeof(pl)); bts_chan_load(&pl, bts); |