MAX_CHANNEL_NUM
if ((i >= 0) && (i <= MAX_CHANNEL_NUM))
if (*channel > MAX_CHANNEL_NUM)
#define WAIT_SCAN_MAX (200 * MAX_CHANNEL_NUM)