aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/paging.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-06-10 11:21:55 +0800
committerHarald Welte <laforge@gnumonks.org>2009-06-10 11:21:55 +0800
commitbe1431076d9397f009dc2596bd2320b346dcd163 (patch)
treefc4daf4aded318fed44df7cc641a425d1100fab6 /openbsc/src/paging.c
parent2d112adc3baeae6795c5f150468f95dd637d7f35 (diff)
use gsm_bts_by_lac() function to start paging of all bts with same lac
when paging is successfull, the paging_request_stop() function is called with the current lchan, so the callback function will be called. for all other bts', the paging_request_stop() function is called without lchan, so the paging is stopped, but the callback function is not called. this ensures that only one paging result is received when paging multiple BTS. (Andreas Eversberg)
Diffstat (limited to 'openbsc/src/paging.c')
-rw-r--r--openbsc/src/paging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index d777d6642..f3bdf6973 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -247,7 +247,7 @@ void paging_request_stop(struct gsm_bts *bts, struct gsm_subscriber *subscr,
llist_for_each_entry_safe(req, req2, &bts_entry->pending_requests,
entry) {
if (req->subscr == subscr) {
- if (req->cbfn)
+ if (lchan && req->cbfn)
req->cbfn(GSM_HOOK_RR_PAGING, GSM_PAGING_SUCCEEDED,
NULL, lchan, req->cbfn_param);
paging_remove_request(&bts->paging, req);