aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_data.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-20 17:10:43 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-20 17:10:43 +0800
commit242faaafd170e4e81ff26af23e0e2ac5d13ad220 (patch)
treef4a65806a4a81536d872b7ae2ea9e3b82abffae1 /openbsc/src/gsm_data.c
parentf77c0cd428a0dd35231f17ec877269df3000d396 (diff)
[paging] Only page if we have some free channels right now
Only page if we have a load that is acceptable for paging. This option is off by default, and can be enabled per bts. The idea is that when we have no resources right now we will not page as it will only create more RACHs and increase the load.
Diffstat (limited to 'openbsc/src/gsm_data.c')
-rw-r--r--openbsc/src/gsm_data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/gsm_data.c b/openbsc/src/gsm_data.c
index 392f4ea96..99328aba0 100644
--- a/openbsc/src/gsm_data.c
+++ b/openbsc/src/gsm_data.c
@@ -222,6 +222,8 @@ struct gsm_bts *gsm_bts_alloc(struct gsm_network *net, enum gsm_bts_type type,
}
bts->c0->ts[0].pchan = GSM_PCHAN_CCCH_SDCCH4;
+ bts->paging.free_chans_need = -1;
+
llist_add_tail(&bts->list, &net->bts_list);
return bts;