we use a new data structure "struct channel_info", and modify related
functions to use this structure, instead of int array channel[14].