diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-03-24 18:36:24 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-03-24 18:41:45 +0100 |
commit | 679a8d0b75fe2db44cacdcd56b11aec3803ca521 (patch) | |
tree | 482f72354bc4705b2f7f202474dd0c76e32c0e18 /src/mtp_link.c | |
parent | bc4b0bbe123c673880be370162c25aabebbae15a (diff) |
mtp: Allow to skip SLTM on links (e.g. m3ua)
For M3UA links we can't send SLTM messages but we can
assume that the link is fine. Add a flag that a link
can set in case SLTM should be skipped. The linkset will
then directly wait for routable DPCs and bring the
SCCP part up.
Diffstat (limited to 'src/mtp_link.c')
-rw-r--r-- | src/mtp_link.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mtp_link.c b/src/mtp_link.c index 3a2683a..9b84e63 100644 --- a/src/mtp_link.c +++ b/src/mtp_link.c @@ -132,6 +132,15 @@ void mtp_link_start_link_test(struct mtp_link *link) return; } + if (link->skip_link_test) { + LOGP(DINP, LOGL_ERROR, "Skipping starting linktest on %d/%s of %d/%s.\n", + link->nr, link->name, link->set->nr, link->set->name); + link->sltm_pending = 0; + link->was_up = 1; + mtp_link_verified(link); + return; + } + mtp_sltm_t2_timeout(link); } |