aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/paging.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-12-01 21:41:35 +0100
committerSylvain Munaut <tnt@246tNt.com>2010-12-01 22:39:40 +0100
commitc7ff2572a723e6ace3006e6d7c77c0b19c0e0401 (patch)
tree3196b6c8f48814827d68e91df6271f22bb7f81f9 /openbsc/src/paging.c
parent1e24550d3dabd4da1bd9611222494a023ad054c4 (diff)
paging: Give the msgb that caused paging_stop up to the paging callback
The handler might need to know some info of the paging response Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/src/paging.c')
-rw-r--r--openbsc/src/paging.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index 18d41aa56..70f378a21 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -340,7 +340,8 @@ int paging_request(struct gsm_network *network, struct gsm_subscriber *subscr,
/* we consciously ignore the type of the request here */
static void _paging_request_stop(struct gsm_bts *bts, struct gsm_subscriber *subscr,
- struct gsm_subscriber_connection *conn)
+ struct gsm_subscriber_connection *conn,
+ struct msgb *msg)
{
struct gsm_bts_paging_state *bts_entry = &bts->paging;
struct gsm_paging_request *req, *req2;
@@ -351,7 +352,7 @@ static void _paging_request_stop(struct gsm_bts *bts, struct gsm_subscriber *sub
if (conn && req->cbfn) {
LOGP(DPAG, LOGL_DEBUG, "Stop paging on bts %d, calling cbfn.\n", bts->nr);
req->cbfn(GSM_HOOK_RR_PAGING, GSM_PAGING_SUCCEEDED,
- NULL, conn, req->cbfn_param);
+ msg, conn, req->cbfn_param);
} else
LOGP(DPAG, LOGL_DEBUG, "Stop paging on bts %d silently.\n", bts->nr);
paging_remove_request(&bts->paging, req);
@@ -362,12 +363,13 @@ static void _paging_request_stop(struct gsm_bts *bts, struct gsm_subscriber *sub
/* Stop paging on all other bts' */
void paging_request_stop(struct gsm_bts *_bts, struct gsm_subscriber *subscr,
- struct gsm_subscriber_connection *conn)
+ struct gsm_subscriber_connection *conn,
+ struct msgb *msg)
{
struct gsm_bts *bts = NULL;
if (_bts)
- _paging_request_stop(_bts, subscr, conn);
+ _paging_request_stop(_bts, subscr, conn, msg);
do {
/*
@@ -382,7 +384,7 @@ void paging_request_stop(struct gsm_bts *_bts, struct gsm_subscriber *subscr,
/* Stop paging */
if (bts != _bts)
- _paging_request_stop(bts, subscr, NULL);
+ _paging_request_stop(bts, subscr, NULL, NULL);
} while (1);
}