From 567098ec7474a1539f294ae988d46706492b6414 Mon Sep 17 00:00:00 2001 From: Srinivasa Duvvuri Date: Thu, 14 May 2015 20:35:09 -0700 Subject: [PATCH] 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 --- src/ap/acs.c | 3 +++ 1 file changed, 3 insertions(+) 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;