aboutsummaryrefslogtreecommitdiffstats
path: root/src/mtp_link.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-20 19:28:15 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-20 19:28:15 +0100
commit050577a088f6e8cfd02dca82fe47b4b34b53ae4e (patch)
tree226e9710faebb387f5d8e16175e4ac0775c8dcbf /src/mtp_link.c
parent95057b923710b3d1b4109f36ebed24011b294d97 (diff)
mtp: Return SLTA on the same SLS, send SLTM with a static sls
Derive the SLS from the static link_no we have assigned.
Diffstat (limited to 'src/mtp_link.c')
-rw-r--r--src/mtp_link.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mtp_link.c b/src/mtp_link.c
index efd49c9..5e5f418 100644
--- a/src/mtp_link.c
+++ b/src/mtp_link.c
@@ -37,6 +37,7 @@ static struct msgb *mtp_create_sltm(struct mtp_link *link)
hdr = (struct mtp_level_3_hdr *) msg->l2h;
hdr->ser_ind = MTP_SI_MNT_REG_MSG;
+ hdr->addr = MTP_ADDR(link->link_no % 16, link->set->dpc, link->set->opc);
mng = (struct mtp_level_3_mng *) msgb_put(msg, sizeof(*mng));
mng->cmn.h0 = MTP_TST_MSG_GRP;