diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-02-23 17:57:13 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-27 07:03:56 +0000 |
commit | c9b0b262c367e29b6785ee994d741658841b1a5a (patch) | |
tree | 191ea7234f89be4bfad70433438894975f5ee860 /src/osmo-bsc/osmo_bsc_bssap.c | |
parent | 0063752ec5cd81b242209220a2a599ac31681339 (diff) |
paging: fix paging attemt rate counter
The rate counter BSC_CTR_PAGING_ATTEMPTED does not increment when
a paging request is sent to the BSC. The reson for this is that the
function call to rate_ctr_inc() is located in a dead code section.
- Move the function call to rate_ctr_inc() to osmo_bsc_bssmap.c.
incremanet on any paging attempt (valid or not) that is recived
on the A-Interface.
- Remove dead code from paging.c
Change-Id: Iec3eb6724bc655806c3ce3c28448069590d99f91
Diffstat (limited to 'src/osmo-bsc/osmo_bsc_bssap.c')
-rw-r--r-- | src/osmo-bsc/osmo_bsc_bssap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c index 573625e9d..d07cc558e 100644 --- a/src/osmo-bsc/osmo_bsc_bssap.c +++ b/src/osmo-bsc/osmo_bsc_bssap.c @@ -522,6 +522,8 @@ static int bssmap_handle_paging(struct bsc_msc_data *msc, cell_ident = data[0] & 0xf; remain -= 1; /* cell ident consumed */ + rate_ctr_inc(&msc->network->bsc_ctrs->ctr[BSC_CTR_PAGING_ATTEMPTED]); + switch (cell_ident) { case CELL_IDENT_NO_CELL: page_all_bts(msc, tmsi, mi_string, chan_needed); |