aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bsc/bts.c5
-rw-r--r--src/osmo-bsc/paging.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/src/osmo-bsc/bts.c b/src/osmo-bsc/bts.c
index 5489a3b88..45b4ebe7a 100644
--- a/src/osmo-bsc/bts.c
+++ b/src/osmo-bsc/bts.c
@@ -975,6 +975,7 @@ void gsm_bts_stats_reset(struct gsm_bts *bts)
osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_CHAN_SDCCH8_CBCH_TOTAL), 0);
osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_CHAN_OSMO_DYN_USED), 0);
osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_CHAN_OSMO_DYN_TOTAL), 0);
+ osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_T3113), 0);
}
const struct rate_ctr_desc bts_ctr_description[] = {
@@ -1620,6 +1621,10 @@ const struct osmo_stat_item_desc bts_stat_desc[] = {
{ "num_trx:total",
"Number of configured TRX in this BTS",
"" },
+ [BTS_STAT_T3113] = \
+ { "t3113",
+ "T3113 paging timer",
+ "s", 60, 0 },
};
const struct osmo_stat_item_group_desc bts_statg_desc = {
diff --git a/src/osmo-bsc/paging.c b/src/osmo-bsc/paging.c
index 55e11004a..11071ecad 100644
--- a/src/osmo-bsc/paging.c
+++ b/src/osmo-bsc/paging.c
@@ -363,8 +363,10 @@ static unsigned int calculate_timer_3113(struct gsm_paging_request *req, unsigne
* struct osmo_tdef gsm_network_T_defs. */
OSMO_ASSERT(d);
- if (!bts->T3113_dynamic)
- return d->val;
+ if (!bts->T3113_dynamic) {
+ to = d->val;
+ goto ret;
+ }
/* MFRMS defines repeat interval of paging messages for MSs that belong
* to same paging group across multiple 51 frame multiframes.
@@ -392,6 +394,8 @@ static unsigned int calculate_timer_3113(struct gsm_paging_request *req, unsigne
LOG_PAGING_BTS(req, bts, DPAG, LOGL_DEBUG,
"Paging request: T3113 expires in %u seconds (estimated %u)\n",
to, estimated_to);
+ret:
+ osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_T3113), to);
return to;
}