diff options
author | Simon Wunderlich <sw@simonwunderlich.de> | 2014-02-06 18:30:37 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2014-03-11 16:59:40 (GMT) |
commit | 70ee1be2486f96f9ce9290ed8827cc2f7d141dee (patch) | |
tree | 03cb327f0cfc4f3260d09cad6c1d4d2afe2f1d06 /hostapd | |
parent | 2ca47da4f7c85854be6463681462ac1eddf6b129 (diff) | |
download | hostap-70ee1be2486f96f9ce9290ed8827cc2f7d141dee.zip hostap-70ee1be2486f96f9ce9290ed8827cc2f7d141dee.tar.gz hostap-70ee1be2486f96f9ce9290ed8827cc2f7d141dee.tar.bz2 |
hostapd: Add config option chanlist for DFS channels
Different channels allow different transmission power, at least in ETSI
countries. Also, ETSI requires a "channel plan" for DFS operation, and
channels should be randomly choosen from these channels.
Add a channel list configuration option for users to add channels
hostapd may pick from.
Signed-hostap: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/config_file.c | 7 | ||||
-rw-r--r-- | hostapd/hostapd.conf | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c index b7d1f2f..b6f1d1b 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -2486,6 +2486,13 @@ static int hostapd_config_fill(struct hostapd_config *conf, conf->channel = 0; } else conf->channel = atoi(pos); + } else if (os_strcmp(buf, "chanlist") == 0) { + if (hostapd_parse_intlist(&conf->chanlist, pos)) { + wpa_printf(MSG_ERROR, + "Line %d: invalid channel list", + line); + errors++; + } } else if (os_strcmp(buf, "beacon_int") == 0) { int val = atoi(pos); /* MIB defines range as 1..65535, but very small values diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf index c745fe8..7ea186e 100644 --- a/hostapd/hostapd.conf +++ b/hostapd/hostapd.conf @@ -154,6 +154,14 @@ channel=1 # Defaults: #acs_num_scans=5 +# Channel list restriction. This option allows hostapd to select one of the +# provided channels when a channel should be automatically selected. This +# is currently only used for DFS when the current channels becomes unavailable +# due to radar interference, and is currently only useful when ieee80211h=1 is +# set. +# Default: not set (allow any enabled channel to be selected) +#chanlist=100 104 108 112 116 + # Beacon interval in kus (1.024 ms) (default: 100; range 15..65535) beacon_int=100 |