Parcourir la source

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>
Srinivasa Duvvuri il y a 10 ans
Parent
commit
567098ec74
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/ap/acs.c

+ 3 - 0
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;