[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.
This commit is contained in:
parent
3b91043cae
commit
f6535bb444
|
@ -185,7 +185,6 @@ struct gsm_paging_request {
|
|||
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? */
|
||||
|
|
15
src/paging.c
15
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue