aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@qti.qualcomm.com>2017-05-16 10:42:38 (GMT)
committerJouni Malinen <j@w1.fi>2017-05-27 08:50:21 (GMT)
commit2d18ab40826ecaec26bfd82d42dcb08f2715e362 (patch)
tree1e42a579e505927cd3544599fbdd1b4a89a04156 /hostapd
parent3c2bd55f032be82dfacb81d270060beec702b0f2 (diff)
downloadhostap-2d18ab40826ecaec26bfd82d42dcb08f2715e362.zip
hostap-2d18ab40826ecaec26bfd82d42dcb08f2715e362.tar.gz
hostap-2d18ab40826ecaec26bfd82d42dcb08f2715e362.tar.bz2
Add a config parameter to exclude DFS channels from ACS
The new acs_exclude_dfs=1 parameter can be used to request hostapd to exclude all DFS channels from ACS consideration. This is mainly of use for cases where the driver supports DFS channels, but for some reason a non-DFS channel is desired when using automatic channel selection. Previously, the chanlist parameter could have been used for this, but that required listing all the acceptable channels. The new parameter allows this to be done without such a list. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
-rw-r--r--hostapd/hostapd.conf5
2 files changed, 7 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 900d811..3946589 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2745,6 +2745,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
line, pos);
return 1;
}
+ } else if (os_strcmp(buf, "acs_exclude_dfs") == 0) {
+ conf->acs_exclude_dfs = atoi(pos);
} else if (os_strcmp(buf, "channel") == 0) {
if (os_strcmp(pos, "acs_survey") == 0) {
#ifndef CONFIG_ACS
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index 135715e..9b9ab10 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -199,6 +199,11 @@ channel=1
#chanlist=100 104 108 112 116
#chanlist=1 6 11-13
+# Exclude DFS channels from ACS
+# This option can be used to exclude all DFS channels from the ACS channel list
+# in cases where the driver supports DFS channels.
+#acs_exclude_dfs=1
+
# Beacon interval in kus (1.024 ms) (default: 100; range 15..65535)
beacon_int=100