ACS: Scan only channels specified in the channel list

The ACS code part of hostapd scans all the channels even if the channel
list is specified in the hostapd.conf. Limit the ACS scan channels to
the list specified in the config file.

Signed-off-by: Srinivasa Duvvuri<sduvvuri@chromium.org>
This commit is contained in:
Srinivasa Duvvuri 2015-05-14 20:35:09 -07:00 committed by Jouni Malinen
parent c7dafdf9b0
commit 567098ec74

View file

@ -894,6 +894,9 @@ static int acs_request_scan(struct hostapd_iface *iface)
if (chan->flag & HOSTAPD_CHAN_DISABLED)
continue;
if (!is_in_chanlist(iface, chan))
continue;
*freq++ = chan->freq;
}
*freq = 0;