aboutsummaryrefslogtreecommitdiffstats
path: root/src/paging.c
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-02-11 01:02:45 +0000
committerHolger Freyther <zecke@selfish.org>2009-02-11 01:02:45 +0000
commitf6535bb444676e2109a1e5aa8353840ea13649b4 (patch)
tree65f4f1401e5e409a5591c5eab10906c1c71d9d5e /src/paging.c
parent3b91043caedb9322e34e9707945d9790ffc4a43f (diff)
[paging] Stop counting the requests... harald implemented sepc conform timer support
We do have a dispose timer, there is no need to discard the paging request this way... remove the code.
Diffstat (limited to 'src/paging.c')
-rw-r--r--src/paging.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/paging.c b/src/paging.c
index 5df8ef7a4..4b45ef844 100644
--- a/src/paging.c
+++ b/src/paging.c
@@ -90,7 +90,6 @@ static void page_ms(struct gsm_paging_request *request)
DEBUGP(DPAG, "Going to send paging commands: '%s'\n",
request->subscr->imsi);
- ++request->requests;
page_group = calculate_group(request->bts, request->subscr);
tmsi = strtoul(request->subscr->tmsi, NULL, 10);
@@ -116,15 +115,11 @@ static void paging_handle_pending_requests(void *data) {
request = paging_bts->last_request;
page_ms(request);
- if (request->requests > MAX_PAGING_REQUEST) {
- paging_remove_request(paging_bts, request);
- } else {
- /* move to the next item */
- paging_bts->last_request =
- (struct gsm_paging_request *)paging_bts->last_request->entry.next;
- if (&paging_bts->last_request->entry == &paging_bts->pending_requests)
- paging_bts->last_request = NULL;
- }
+ /* move to the next item */
+ paging_bts->last_request =
+ (struct gsm_paging_request *)paging_bts->last_request->entry.next;
+ if (&paging_bts->last_request->entry == &paging_bts->pending_requests)
+ paging_bts->last_request = NULL;
schedule_timer(&paging_bts->paging_timer, PAGING_TIMEOUT);
}