diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-12-02 14:22:53 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-12-09 08:59:29 +0100 |
commit | af792d6bb272e14585d26c6c488d592b20fcf9c4 (patch) | |
tree | a349db09e222a2235d3e8edd06aded648680cf08 /openbsc/src/libmsc/gsm_04_11.c | |
parent | 8ff3fb04f2e3ea192cb337c8a6dcee19fe40060a (diff) |
msc: Add net parameter to trans_alloc
The trans_alloc function still uses the subscr object to access the
network object.
This patch adds an explicit net parameter to this function and
removes the access to subscr to obtain it.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/libmsc/gsm_04_11.c')
-rw-r--r-- | openbsc/src/libmsc/gsm_04_11.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c index bc9d59e71..9941e6b2a 100644 --- a/openbsc/src/libmsc/gsm_04_11.c +++ b/openbsc/src/libmsc/gsm_04_11.c @@ -765,7 +765,8 @@ int gsm0411_rcv_sms(struct gsm_subscriber_connection *conn, if (!trans) { DEBUGP(DLSMS, " -> (new transaction)\n"); - trans = trans_alloc(conn->subscr, GSM48_PDISC_SMS, + trans = trans_alloc(conn->bts->network, conn->subscr, + GSM48_PDISC_SMS, transaction_id, new_callref++); if (!trans) { DEBUGP(DLSMS, " -> No memory for trans\n"); @@ -838,7 +839,8 @@ int gsm411_send_sms(struct gsm_subscriber_connection *conn, struct gsm_sms *sms) DEBUGP(DLSMS, "send_sms_lchan()\n"); /* FIXME: allocate transaction with message reference */ - trans = trans_alloc(conn->subscr, GSM48_PDISC_SMS, + trans = trans_alloc(conn->bts->network, conn->subscr, + GSM48_PDISC_SMS, transaction_id, new_callref++); if (!trans) { LOGP(DLSMS, LOGL_ERROR, "No memory for trans\n"); |