aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_08.c
diff options
context:
space:
mode:
authorHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-14 11:41:12 +0200
committerHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-14 11:41:12 +0200
commitdaef606502373b642776325a5989a283858b78d2 (patch)
treecd61b8be347221e72bb74e1137f80e9548818270 /openbsc/src/gsm_04_08.c
parentc89a5116169174d54abe509f46368691f86d94de (diff)
respect the link_id, not only the SAPI from SMS code
SMS related messages are all sent over SAPI=3. But in addition to that, we also need to send it over the correct link identifier, i.e. SACCH or main signalling channel
Diffstat (limited to 'openbsc/src/gsm_04_08.c')
-rw-r--r--openbsc/src/gsm_04_08.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 3e6c149ae..dc2bd199b 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -3745,7 +3745,7 @@ static int gsm0408_rcv_cc(struct msgb *msg)
}
/* here we pass in a msgb from the RSL->RLL. We expect the l3 pointer to be set */
-int gsm0408_rcvmsg(struct msgb *msg)
+int gsm0408_rcvmsg(struct msgb *msg, u_int8_t link_id)
{
struct gsm48_hdr *gh = msgb_l3(msg);
u_int8_t pdisc = gh->proto_discr & 0x0f;
@@ -3762,7 +3762,7 @@ int gsm0408_rcvmsg(struct msgb *msg)
rc = gsm0408_rcv_rr(msg);
break;
case GSM48_PDISC_SMS:
- rc = gsm0411_rcv_sms(msg);
+ rc = gsm0411_rcv_sms(msg, link_id);
break;
case GSM48_PDISC_MM_GPRS:
case GSM48_PDISC_SM_GPRS: