aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorPeng Xu <pxu@qca.qualcomm.com>2015-05-08 17:53:08 (GMT)
committerJouni Malinen <j@w1.fi>2015-05-27 09:17:57 (GMT)
commit3784c0589e78666da2a4d5f638171f3df1d1c929 (patch)
tree5e904eb168d213576b196378445a4cbe1d5d4492 /hostapd/config_file.c
parent1b748e67aeedf90855331eef6ef837e90dc51a23 (diff)
downloadhostap-3784c0589e78666da2a4d5f638171f3df1d1c929.zip
hostap-3784c0589e78666da2a4d5f638171f3df1d1c929.tar.gz
hostap-3784c0589e78666da2a4d5f638171f3df1d1c929.tar.bz2
Extend hw_mode to support any band for offloaded ACS case
When device supports dual band operations with offloaded ACS, hw_mode can now be set to any band (hw_mode=any) in order to allow ACS to select the best channel from any band. After a channel is selected, the hw_mode is updated for hostapd. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 0c1f401..9800ab2 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2539,6 +2539,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
conf->hw_mode = HOSTAPD_MODE_IEEE80211G;
else if (os_strcmp(pos, "ad") == 0)
conf->hw_mode = HOSTAPD_MODE_IEEE80211AD;
+ else if (os_strcmp(pos, "any") == 0)
+ conf->hw_mode = HOSTAPD_MODE_IEEE80211ANY;
else {
wpa_printf(MSG_ERROR, "Line %d: unknown hw_mode '%s'",
line, pos);