chanlookup
if (chanlookup(avail->ic_chans, avail->ic_nchans, freq, flags) != NULL)
if (chanlookup(avail->ic_chans, avail->ic_nchans, freq,