9
0
Fork 0

bsc: Stop using the bsc.link_set directly

This commit is contained in:
Holger Hans Peter Freyther 2011-02-10 16:12:16 +01:00
parent e86c02e107
commit bf5eada0aa
1 changed files with 7 additions and 5 deletions

View File

@ -85,8 +85,9 @@ void mtp_link_restart(struct mtp_link *link)
link->reset(link);
}
static void start_rest(void *start)
static void start_rest(void *_set)
{
struct mtp_link_set *set = _set;
struct mtp_link *data;
bsc.setup = 1;
@ -95,7 +96,7 @@ static void start_rest(void *start)
exit(3);
}
llist_for_each_entry(data, &bsc.link_set->links, entry)
llist_for_each_entry(data, &set->links, entry)
data->start(data);
}
@ -149,14 +150,15 @@ int link_init(struct bsc_data *bsc)
*/
snmp_mtp_deactivate(lnk->session,
lnk->link_index);
bsc->start_timer.cb = start_rest;
bsc->start_timer.data = &bsc;
bsc_schedule_timer(&bsc->start_timer, lnk->reset_timeout, 0);
LOGP(DMSC, LOGL_NOTICE,
"Forcing link alignment on %s/%d.\n",
lnk->base.set->name, lnk->base.link_no);
}
bsc->start_timer.cb = start_rest;
bsc->start_timer.data = bsc->link_set;
bsc_schedule_timer(&bsc->start_timer, lnk->reset_timeout, 0);
return 0;
}