[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.
diff --git a/include/openbsc/gsm_data.h b/include/openbsc/gsm_data.h
index 753f112..58a7b44 100644
--- a/include/openbsc/gsm_data.h
+++ b/include/openbsc/gsm_data.h
@@ -185,7 +185,6 @@
struct llist_head entry;
struct gsm_subscriber *subscr;
struct gsm_bts *bts;
- int requests;
int chan_type;
/* Timer 3113: how long do we try to page? */
diff --git a/src/paging.c b/src/paging.c
index 5df8ef7..4b45ef8 100644
--- a/src/paging.c
+++ b/src/paging.c
@@ -90,7 +90,6 @@
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 @@
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);
}