From: Srinivasa Duvvuri Date: Fri, 15 May 2015 03:35:09 +0000 (-0700) Subject: ACS: Scan only channels specified in the channel list X-Git-Tag: hostap_2_5~717 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=567098ec7474a1539f294ae988d46706492b6414;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/acs.c b/src/ap/acs.c index 652d020d5..03d797fe8 100644 --- a/src/ap/acs.c +++ b/src/ap/acs.c @@ -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;