]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
ACS: Scan only channels specified in the channel list
authorSrinivasa Duvvuri <sduvvuri@chromium.org>
Fri, 15 May 2015 03:35:09 +0000 (20:35 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 24 May 2015 07:38:27 +0000 (10:38 +0300)
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>
src/ap/acs.c

index 652d020d56dd18e79c5a60be54177275bea19bf6..03d797fe8836a5e63c62d78bb76f5b629f492426 100644 (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;