aboutsummaryrefslogtreecommitdiffstats
path: root/src/mtp_layer3.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-20 15:08:57 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-20 15:08:57 +0100
commit1349584c26b5e9ebb6498dc910d55c52116e0f32 (patch)
treeb15944e7b07bf18fe2710fa02c0808cf7e148a4c /src/mtp_layer3.c
parent606eae8ece62fdc5e075ac88f70a02ffb9df27c4 (diff)
mtp: Start the linktest directly
No need for delaying the linktest, start it directly when the linkset should come up
Diffstat (limited to 'src/mtp_layer3.c')
-rw-r--r--src/mtp_layer3.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mtp_layer3.c b/src/mtp_layer3.c
index 40839c7..7cce467 100644
--- a/src/mtp_layer3.c
+++ b/src/mtp_layer3.c
@@ -257,11 +257,6 @@ static void mtp_sltm_t2_timeout(void *_link)
bsc_schedule_timer(&link->t2_timer, MTP_T2);
}
-static void mtp_delayed_start(void *link)
-{
- mtp_sltm_t2_timeout(link);
-}
-
struct mtp_link_set *mtp_link_set_alloc(void)
{
struct mtp_link_set *link;
@@ -275,8 +270,6 @@ struct mtp_link_set *mtp_link_set_alloc(void)
link->t1_timer.cb = mtp_sltm_t1_timeout;
link->t2_timer.data = link;
link->t2_timer.cb = mtp_sltm_t2_timeout;
- link->delay_timer.data = link;
- link->delay_timer.cb = mtp_delayed_start;
INIT_LLIST_HEAD(&link->links);
return link;
@@ -286,7 +279,6 @@ void mtp_link_set_stop(struct mtp_link_set *link)
{
bsc_del_timer(&link->t1_timer);
bsc_del_timer(&link->t2_timer);
- bsc_del_timer(&link->delay_timer);
link->sccp_up = 0;
link->running = 0;
link->linkset_up = 0;
@@ -299,7 +291,7 @@ void mtp_link_set_reset(struct mtp_link_set *link)
{
mtp_link_set_stop(link);
link->running = 1;
- bsc_schedule_timer(&link->delay_timer, START_DELAY);
+ mtp_sltm_t2_timeout(link);
}
static int send_tfp(struct mtp_link_set *link, int apoc)