move tmp_flag into info.mode and del unused ag flags
del useless if else
del some unused code for finding max_of_max_speed min_of_max_speed
add multilink data accumulation