|
@@ -397,11 +397,10 @@ struct mesh_path *mesh_path_new(struct ieee80211_sub_if_data *sdata,
|
|
|
new_mpath->sdata = sdata;
|
|
|
new_mpath->flags = 0;
|
|
|
skb_queue_head_init(&new_mpath->frame_queue);
|
|
|
- new_mpath->timer.data = (unsigned long) new_mpath;
|
|
|
- new_mpath->timer.function = mesh_path_timer;
|
|
|
new_mpath->exp_time = jiffies;
|
|
|
spin_lock_init(&new_mpath->state_lock);
|
|
|
- init_timer(&new_mpath->timer);
|
|
|
+ setup_timer(&new_mpath->timer, mesh_path_timer,
|
|
|
+ (unsigned long) new_mpath);
|
|
|
|
|
|
return new_mpath;
|
|
|
}
|