aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_11.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-17 15:05:57 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-17 15:05:57 +0800
commit86481c29d4cc9bed3010db466be6e0757458b031 (patch)
treea8b74f246eece8021115bce1b8c4f21bd97d5a2b /openbsc/src/gsm_04_11.c
parent7b4a53d537a1d6cb6bfff2c65e3252c2a4ac0aa7 (diff)
bsc_api: Make paging/silent call work with the subscriber_connection
Do not use the lchan for the paging but operate on the subscriber_connection, change the signals too to not carry the lchan but the subscriber connection... the silent call and vty code still assume there is a lchan inside the subscriber connection.
Diffstat (limited to 'openbsc/src/gsm_04_11.c')
-rw-r--r--openbsc/src/gsm_04_11.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index ee0aba59..a9eee837 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -1108,22 +1108,22 @@ static int gsm411_send_sms(struct gsm_subscriber_connection *conn, struct gsm_sm
/* paging callback. Here we get called if paging a subscriber has
* succeeded or failed. */
static int paging_cb_send_sms(unsigned int hooknum, unsigned int event,
- struct msgb *msg, void *_lchan, void *_sms)
+ struct msgb *msg, void *_conn, void *_sms)
{
- struct gsm_lchan *lchan = _lchan;
+ struct gsm_subscriber_connection *conn = _conn;
struct gsm_sms *sms = _sms;
int rc = 0;
DEBUGP(DSMS, "paging_cb_send_sms(hooknum=%u, event=%u, msg=%p,"
- "lchan=%p, sms=%p)\n", hooknum, event, msg, lchan, sms);
+ "conn=%p, sms=%p)\n", hooknum, event, msg, conn, sms);
if (hooknum != GSM_HOOK_RR_PAGING)
return -EINVAL;
switch (event) {
case GSM_PAGING_SUCCEEDED:
- use_subscr_con(&lchan->conn);
- gsm411_send_sms(&lchan->conn, sms);
+ use_subscr_con(conn);
+ gsm411_send_sms(conn, sms);
break;
case GSM_PAGING_EXPIRED:
case GSM_PAGING_OOM: