aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-04-25 20:43:00 (GMT)
committerJouni Malinen <j@w1.fi>2014-04-29 09:52:10 (GMT)
commit9670f8773bd44de401d7782fe887aa581a5ebffc (patch)
tree34ff53dc5330bc6106a71f00731dbc61997f03a5 /hostapd
parentece88f7697af9918522799697d4ac991b235d2f8 (diff)
downloadhostap-9670f8773bd44de401d7782fe887aa581a5ebffc.zip
hostap-9670f8773bd44de401d7782fe887aa581a5ebffc.tar.gz
hostap-9670f8773bd44de401d7782fe887aa581a5ebffc.tar.bz2
ACS: Clean up ifdef CONFIG_ACS to avoid unreachable code
The conf->channel assignment was unreachable if CONFIG_ACS was not defined, so move that to be under #else. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 5f84281..c65d384 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2445,8 +2445,9 @@ static int hostapd_config_fill(struct hostapd_config *conf,
wpa_printf(MSG_ERROR, "Line %d: tries to enable ACS but CONFIG_ACS disabled",
line);
return 1;
-#endif /* CONFIG_ACS */
+#else /* CONFIG_ACS */
conf->channel = 0;
+#endif /* CONFIG_ACS */
} else
conf->channel = atoi(pos);
} else if (os_strcmp(buf, "chanlist") == 0) {