9
0
Fork 0

mtp: Send the SLTM/SLTA on the link directly

For both the SLTM that the app is sending and the SLTM we
are receiving we don't want to go through the SLC.
This commit is contained in:
Holger Hans Peter Freyther 2011-01-20 19:00:44 +01:00
parent 1cc24561b0
commit 95057b9237
3 changed files with 2 additions and 8 deletions

View File

@ -134,6 +134,5 @@ void mtp_link_failure(struct mtp_link *fail);
/* internal routines */
struct msgb *mtp_msg_alloc(struct mtp_link_set *link);
void mtp_link_set_trasmit(struct mtp_link *link, int sls, struct msgb *msg);
#endif

View File

@ -352,7 +352,7 @@ static int mtp_link_regular_msg(struct mtp_link *link, struct mtp_level_3_hdr *h
out = mtp_create_slta(link->set, mng, l3_len);
if (!out)
return -1;
mtp_link_set_submit(link->set->slc[0], out);
mtp_link_set_submit(link, out);
return 0;
break;
case MTP_TST_MSG_SLTA:
@ -516,11 +516,6 @@ static int mtp_int_submit(struct mtp_link_set *link, int pc, int sls, int type,
return 0;
}
void mtp_link_set_trasmit(struct mtp_link *link, int sls, struct msgb *msg)
{
return mtp_link_set_submit(link->set->slc[sls % 16], msg);
}
static struct mtp_link *find_next_link(struct mtp_link_set *set,
struct mtp_link *data)
{

View File

@ -63,7 +63,7 @@ static void mtp_send_sltm(struct mtp_link *link)
return;
}
mtp_link_set_trasmit(link, 0, msg);
link->write(link, msg);
}
static void mtp_sltm_t1_timeout(void *_link)