aboutsummaryrefslogtreecommitdiffstats
path: root/src/mtp_layer3.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-19 10:51:44 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-20 11:37:49 +0100
commit101cd0bc83426676ce47477ac3ab9160c66e83b2 (patch)
treefecdfa63275ecbe32c60eaca179a71c0692fc875 /src/mtp_layer3.c
parentdf8597aeea856b30c5892c16b322986ec6065402 (diff)
mtp: Send the SSA/SSP for the apoc and assn of the request
Diffstat (limited to 'src/mtp_layer3.c')
-rw-r--r--src/mtp_layer3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mtp_layer3.c b/src/mtp_layer3.c
index be1c90d..c53000e 100644
--- a/src/mtp_layer3.c
+++ b/src/mtp_layer3.c
@@ -137,7 +137,7 @@ static struct msgb *mtp_tra_alloc(struct mtp_link_set *link)
}
static struct msgb *mtp_sccp_alloc_scmg(struct mtp_link_set *link,
- int type, int assn, int sls)
+ int type, int assn, int apoc, int sls)
{
struct sccp_data_unitdata *udt;
struct sccp_con_ctrl_prt_mgt *prt;
@@ -181,7 +181,7 @@ static struct msgb *mtp_sccp_alloc_scmg(struct mtp_link_set *link,
prt = (struct sccp_con_ctrl_prt_mgt *) msgb_put(out, sizeof(*prt));
prt->sst = type;
prt->assn = assn;
- prt->apoc = MTP_MAKE_APOC(link->sccp_opc);
+ prt->apoc = apoc;
prt->mul_ind = 0;
return out;
@@ -453,7 +453,7 @@ static int mtp_link_sccp_data(struct mtp_link_set *link, struct mtp_level_3_hdr
type = SCCP_SSA;
}
- out = mtp_sccp_alloc_scmg(link, type, prt->assn,
+ out = mtp_sccp_alloc_scmg(link, type, prt->assn, prt->apoc,
MTP_LINK_SLS(hdr->addr));
if (!out)
return -1;