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:
parent
c7dafdf9b0
commit
567098ec74
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue