aboutsummaryrefslogtreecommitdiffstats
path: root/src/paging.c
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-02-03 21:05:49 +0000
committerHolger Freyther <zecke@selfish.org>2009-02-03 21:05:49 +0000
commitdf892da697aa59ab64bb88555948afd1cb2cb472 (patch)
treed8fcff516201ce95b530196ace802529b390f14a /src/paging.c
parentf07768915d66d16c492bc99bd2cb0e80a4ce4427 (diff)
[paging] Cosmetic changes on the timer handling and max requests
Diffstat (limited to 'src/paging.c')
-rw-r--r--src/paging.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/paging.c b/src/paging.c
index da3dc28c6..6f21460c0 100644
--- a/src/paging.c
+++ b/src/paging.c
@@ -43,7 +43,8 @@
#include <openbsc/abis_rsl.h>
#include <openbsc/gsm_04_08.h>
-#define PAGING_TIMEOUT 1, 0
+#define PAGING_TIMEOUT 0, 75000
+#define MAX_PAGING_REQUEST 750
static LLIST_HEAD(managed_bts);
@@ -83,7 +84,7 @@ static void page_handle_pending_requests(void *data) {
mi_len = generate_mid_from_tmsi(mi, tmsi);
rsl_paging_cmd(paging_bts->bts, 1, mi_len, mi, RSL_CHANNEED_TCH_F);
- if (paging_bts->last_request->requests > 1500) {
+ if (paging_bts->last_request->requests > MAX_PAGING_REQUEST) {
page_remove_request(paging_bts);
} else {
/* move to the next item */