aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_data.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-06 10:11:25 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-06 10:13:23 +0800
commite66bf1fd465cc5d364d36ee1ea78419e29b2c4f7 (patch)
tree845b65a3653cbcf2e90238462b7c6aa601fa74bf /openbsc/src/gsm_data.c
parenteb241aa1d5720a36cf97f29390c2890cf3aecba7 (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. By default we are keeping the old behavior to always page and only by changing a setting one is using the new behavior.
Diffstat (limited to 'openbsc/src/gsm_data.c')
-rw-r--r--openbsc/src/gsm_data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/gsm_data.c b/openbsc/src/gsm_data.c
index 29b6d0722..526b1777f 100644
--- a/openbsc/src/gsm_data.c
+++ b/openbsc/src/gsm_data.c
@@ -239,6 +239,7 @@ struct gsm_bts *gsm_bts_alloc(struct gsm_network *net, enum gsm_bts_type type,
bts->rach_b_thresh = -1;
bts->rach_ldavg_slots = -1;
+ bts->paging.free_chans_need = -1;
llist_add_tail(&bts->list, &net->bts_list);
return bts;